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

Method AssertMessageNotExist

test/testdb/database.go:208–214  ·  view source on GitHub ↗

AssertMessageNotExist asserts that the messages does not exist.

(ids ...uint)

Source from the content-addressed store, hash-verified

206
207// AssertMessageNotExist asserts that the messages does not exist.
208func (d *Database) AssertMessageNotExist(ids ...uint) {
209 for _, id := range ids {
210 if msg, err := d.GetMessageByID(id); assert.NoError(d.t, err) {
211 assert.True(d.t, msg == nil, "message %d must not exist", id)
212 }
213 }
214}
215
216// AssertAppExist asserts that the app does exist.
217func (d *Database) AssertAppExist(id uint) {

Callers 4

Test_MessagesMethod · 0.80
Test_DeleteMessageMethod · 0.80
Test_DeleteMessagesMethod · 0.80

Implementers 1

GormDatabasedatabase/database.go

Calls 1

GetMessageByIDMethod · 0.65

Tested by 4

Test_MessagesMethod · 0.64
Test_DeleteMessageMethod · 0.64
Test_DeleteMessagesMethod · 0.64