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

Method AssertMessageExist

test/testdb/database.go:238–242  ·  view source on GitHub ↗

AssertMessageExist asserts that the message does exist.

(id uint)

Source from the content-addressed store, hash-verified

236
237// AssertMessageExist asserts that the message does exist.
238func (d *Database) AssertMessageExist(id uint) {
239 if msg, err := d.GetMessageByID(id); assert.NoError(d.t, err) {
240 assert.False(d.t, msg == nil, "message %d must exist", id)
241 }
242}

Implementers 1

GormDatabasedatabase/database.go

Calls 1

GetMessageByIDMethod · 0.65