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

Function TestTag

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

Source from the content-addressed store, hash-verified

309}
310
311func TestTag(t *testing.T) {
312 c := newTestConsumer(Tag("hello"))
313
314 if c.tag != "hello" {
315 t.Error("tag should be set to `hello`")
316 }
317}
318
319func newTestConsumer(opts ...ConsumerOpt) *Consumer {
320 q := &Queue{}

Callers

nothing calls this directly

Calls 2

newTestConsumerFunction · 0.85
TagFunction · 0.85

Tested by

no test coverage detected