MCPcopy
hub / github.com/gotify/server / AssertAppNotExist

Method AssertAppNotExist

test/testdb/database.go:180–184  ·  view source on GitHub ↗

AssertAppNotExist asserts that the app does not exist.

(id uint)

Source from the content-addressed store, hash-verified

178
179// AssertAppNotExist asserts that the app does not exist.
180func (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.
187func (d *Database) AssertUserNotExist(id uint) {

Callers 2

Test_AppsMethod · 0.80

Implementers 1

GormDatabasedatabase/database.go

Calls 1

GetApplicationByIDMethod · 0.65

Tested by 2

Test_AppsMethod · 0.64