(t *testing.T)
| 309 | } |
| 310 | |
| 311 | func 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 | |
| 319 | func newTestConsumer(opts ...ConsumerOpt) *Consumer { |
| 320 | q := &Queue{} |
nothing calls this directly
no test coverage detected