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

Function TestClient_Declare

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

Source from the content-addressed store, hash-verified

18}
19
20func TestClient_Declare(t *testing.T) {
21 c := &Client{}
22
23 if len(c.declarations) != 0 {
24 t.Error("declarations should be empty")
25 }
26
27 q := &Queue{}
28 c.Declare([]Declaration{DeclareQueue(q)})
29
30 if len(c.declarations) != 1 {
31 t.Error("declarations should have 1 declaration")
32 }
33}
34
35func TestClient_Consume(t *testing.T) {
36 c := NewClient()

Callers

nothing calls this directly

Calls 2

DeclareMethod · 0.95
DeclareQueueFunction · 0.85

Tested by

no test coverage detected