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

Method AssertClientNotExist

test/testdb/database.go:201–205  ·  view source on GitHub ↗

AssertClientNotExist asserts that the client does not exist.

(id uint)

Source from the content-addressed store, hash-verified

199
200// AssertClientNotExist asserts that the client does not exist.
201func (d *Database) AssertClientNotExist(id uint) {
202 if client, err := d.GetClientByID(id); assert.NoError(d.t, err) {
203 assert.True(d.t, client == nil, "client %d must not exist", id)
204 }
205}
206
207// AssertMessageNotExist asserts that the messages does not exist.
208func (d *Database) AssertMessageNotExist(ids ...uint) {

Callers 2

Test_ClientsMethod · 0.80
Test_DeleteClientMethod · 0.80

Implementers 1

GormDatabasedatabase/database.go

Calls 1

GetClientByIDMethod · 0.65

Tested by 2

Test_ClientsMethod · 0.64
Test_DeleteClientMethod · 0.64