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

Function TestNewConsumer

consumer_test.go:283–293  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

281}
282
283func TestNewConsumer(t *testing.T) {
284 var called bool
285
286 NewConsumer(&Queue{}, func(*Consumer) {
287 called = true
288 })
289
290 if !called {
291 t.Error("NewConsumer should call input functional options")
292 }
293}
294
295func TestNoLocal(t *testing.T) {
296 c := newTestConsumer(NoLocal())

Callers

nothing calls this directly

Calls 1

NewConsumerFunction · 0.85

Tested by

no test coverage detected