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

Function TestClient_Loop

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

Source from the content-addressed store, hash-verified

83}
84
85func TestClient_Loop(t *testing.T) {
86 c := NewClient()
87 c.run = noRun
88
89 if c.Loop() {
90 t.Error("should not run if noRun")
91 }
92
93 // immitate connection
94 c.conn.Store(&amqp.Connection{})
95 c.run = run
96
97 if !c.Loop() {
98 t.Error("should tell loop to run")
99 }
100}
101
102func TestClient_reportErr(t *testing.T) {
103 c := NewClient()

Callers

nothing calls this directly

Calls 2

LoopMethod · 0.95
NewClientFunction · 0.85

Tested by

no test coverage detected