AssertAppNotExist asserts that the app does not exist.
(id uint)
| 178 | |
| 179 | // AssertAppNotExist asserts that the app does not exist. |
| 180 | func (d *Database) AssertAppNotExist(id uint) { |
| 181 | if app, err := d.GetApplicationByID(id); assert.NoError(d.t, err) { |
| 182 | assert.True(d.t, app == nil, "app %d must not exist", id) |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | // AssertUserNotExist asserts that the user does not exist. |
| 187 | func (d *Database) AssertUserNotExist(id uint) { |