diff --git a/core/http_client_builder_test.go b/core/http_client_builder_test.go index 874a37d..c48ff71 100644 --- a/core/http_client_builder_test.go +++ b/core/http_client_builder_test.go @@ -25,6 +25,11 @@ func (t *HTTPClientBuilderTest) Test_SetTimeout() { assert.Equal(t.T(), 90*time.Second, t.builder.httpClient.Timeout) } +func (t *HTTPClientBuilderTest) Test_EnableLogging() { + t.builder.EnableLogging() + assert.Equal(t.T(), true, t.builder.logging) +} + func (t *HTTPClientBuilderTest) Test_SetMockAddress() { addr := "mock.local:3004" t.builder.SetMockAddress(addr) @@ -56,6 +61,13 @@ func (t *HTTPClientBuilderTest) Test_SetSSLVerification() { assert.True(t.T(), t.builder.httpTransport.TLSClientConfig.InsecureSkipVerify) } +func (t *HTTPClientBuilderTest) Test_FromConfigNil() { + defer func() { + assert.Nil(t.T(), recover()) + }() + t.builder.FromConfig(nil) +} + func (t *HTTPClientBuilderTest) Test_FromConfig() { config := &HTTPClientConfig{ SSLVerification: boolPtr(true),