AssertMessageNotExist asserts that the messages does not exist.
(ids ...uint)
| 206 | |
| 207 | // AssertMessageNotExist asserts that the messages does not exist. |
| 208 | func (d *Database) AssertMessageNotExist(ids ...uint) { |
| 209 | for _, id := range ids { |
| 210 | if msg, err := d.GetMessageByID(id); assert.NoError(d.t, err) { |
| 211 | assert.True(d.t, msg == nil, "message %d must not exist", id) |
| 212 | } |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | // AssertAppExist asserts that the app does exist. |
| 217 | func (d *Database) AssertAppExist(id uint) { |