(t *testing.T)
| 33 | } |
| 34 | |
| 35 | func TestClient_Consume(t *testing.T) { |
| 36 | c := NewClient() |
| 37 | cons := &Consumer{} |
| 38 | c.Consume(cons) |
| 39 | |
| 40 | if _, ok := c.consumers[cons]; !ok { |
| 41 | t.Error("should save consumer") |
| 42 | } |
| 43 | |
| 44 | c.deleteConsumer(cons) |
| 45 | |
| 46 | if _, ok := c.consumers[cons]; ok { |
| 47 | t.Error("should remove consumer") |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | func TestClient_Publish(t *testing.T) { |
| 52 | c := NewClient() |
nothing calls this directly
no test coverage detected