(t *testing.T)
| 7 | ) |
| 8 | |
| 9 | func TestNewHTTPClient(t *testing.T) { |
| 10 | a := assert.NewAssertion(t) |
| 11 | |
| 12 | client := NewHTTPClient(1 * time.Second) |
| 13 | a.IsTrue(client.Timeout == 1*time.Second) |
| 14 | |
| 15 | client2 := NewHTTPClient(1 * time.Second) |
| 16 | a.IsTrue(client != client2) |
| 17 | } |
| 18 | |
| 19 | func TestSharedHTTPClient(t *testing.T) { |
| 20 | a := assert.NewAssertion(t) |
nothing calls this directly
no test coverage detected