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

Method AssertClientExist

test/testdb/database.go:231–235  ·  view source on GitHub ↗

AssertClientExist asserts that the client does exist.

(id uint)

Source from the content-addressed store, hash-verified

229
230// AssertClientExist asserts that the client does exist.
231func (d *Database) AssertClientExist(id uint) {
232 if client, err := d.GetClientByID(id); assert.NoError(d.t, err) {
233 assert.False(d.t, client == nil, "client %d must exist", id)
234 }
235}
236
237// AssertMessageExist asserts that the message does exist.
238func (d *Database) AssertMessageExist(id uint) {

Implementers 1

GormDatabasedatabase/database.go

Calls 1

GetClientByIDMethod · 0.65