MCPcopy Create free account
hub / github.com/BryanMwangi/pine / TestNewClient

Function TestNewClient

client_test.go:12–20  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func 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
22func TestNewClientWithTimeout(t *testing.T) {
23 timeout := 2 * time.Second

Callers

nothing calls this directly

Calls 1

NewClientFunction · 0.85

Tested by

no test coverage detected