MCPcopy Index your code
hub / github.com/gotify/server / hasIDInclusiveBetween

Function hasIDInclusiveBetween

database/message_test.go:226–235  ·  view source on GitHub ↗
(t *testing.T, msgs []*model.Message, from, to, decrement int)

Source from the content-addressed store, hash-verified

224}
225
226func hasIDInclusiveBetween(t *testing.T, msgs []*model.Message, from, to, decrement int) {
227 index := 0
228 for expectedID := from; expectedID >= to; expectedID -= decrement {
229 if !assert.Equal(t, uint(expectedID), msgs[index].ID) {
230 break
231 }
232 index++
233 }
234 assert.Equal(t, index, len(msgs), "not all entries inside msgs were checked")
235}
236
237// assertEquals compares messages and correctly check dates.
238func assertEquals(t *testing.T, left, right *model.Message) {

Callers 1

TestGetMessagesSinceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…