(t *testing.T)
| 10 | ) |
| 11 | |
| 12 | func TestNewClient(t *testing.T) { |
| 13 | client := NewClient() |
| 14 | if client == nil { |
| 15 | t.Fatal("expected non-nil client") |
| 16 | } |
| 17 | if client.Client == nil { |
| 18 | t.Fatal("expected default http client") |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | func TestNewClientWithTimeout(t *testing.T) { |
| 23 | timeout := 2 * time.Second |
nothing calls this directly
no test coverage detected