(t *testing.T)
| 18 | } |
| 19 | |
| 20 | func TestClient_Declare(t *testing.T) { |
| 21 | c := &Client{} |
| 22 | |
| 23 | if len(c.declarations) != 0 { |
| 24 | t.Error("declarations should be empty") |
| 25 | } |
| 26 | |
| 27 | q := &Queue{} |
| 28 | c.Declare([]Declaration{DeclareQueue(q)}) |
| 29 | |
| 30 | if len(c.declarations) != 1 { |
| 31 | t.Error("declarations should have 1 declaration") |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | func TestClient_Consume(t *testing.T) { |
| 36 | c := NewClient() |
nothing calls this directly
no test coverage detected