MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / ChannelViewForTest

Method ChannelViewForTest

db/util_testing.go:468–474  ·  view source on GitHub ↗

Public channel view call - for unit test support

(tb testing.TB, channelName string, startSeq, endSeq uint64)

Source from the content-addressed store, hash-verified

466
467// Public channel view call - for unit test support
468func (dbc *DatabaseContext) ChannelViewForTest(tb testing.TB, channelName string, startSeq, endSeq uint64) (LogEntries, error) {
469 collection, err := dbc.GetDefaultDatabaseCollection()
470 if err != nil {
471 return nil, err
472 }
473 return dbc.CollectionChannelViewForTest(tb, collection, channelName, startSeq, endSeq)
474}
475
476func (dbc *DatabaseContext) CollectionChannelViewForTest(tb testing.TB, collection *DatabaseCollection, channelName string, startSeq, endSeq uint64) (LogEntries, error) {
477 return collection.getChangesInChannelFromQuery(base.TestCtx(tb), channelName, startSeq, endSeq, 0, false)

Callers

nothing calls this directly

Tested by

no test coverage detected