(t *testing.T)
| 120 | func TestClient_channel(t *testing.T) {} |
| 121 | |
| 122 | func TestClient_connection(t *testing.T) { |
| 123 | c := NewClient() |
| 124 | |
| 125 | if _, err := c.connection(); err != ErrNoConnection { |
| 126 | t.Error("error should be", ErrNoConnection) |
| 127 | } |
| 128 | |
| 129 | c.conn.Store(&amqp.Connection{}) |
| 130 | |
| 131 | con, err := c.connection() |
| 132 | if con == nil { |
| 133 | t.Error("should return existing connection") |
| 134 | } |
| 135 | |
| 136 | if err != nil { |
| 137 | t.Error("should be no errors") |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | func TestURL(t *testing.T) { |
| 142 | c := &Client{} |
nothing calls this directly
no test coverage detected