MCPcopy Create free account
hub / github.com/assembla/cony / TestNewClient

Function TestNewClient

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

Source from the content-addressed store, hash-verified

8)
9
10func TestNewClient(t *testing.T) {
11 c := NewClient(func(c *Client) {
12 c.addr = "test1"
13 })
14
15 if c.addr != "test1" {
16 t.Error("should call functional opts")
17 }
18}
19
20func TestClient_Declare(t *testing.T) {
21 c := &Client{}

Callers

nothing calls this directly

Calls 1

NewClientFunction · 0.85

Tested by

no test coverage detected