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

Method CollectionChannelViewForTest

db/util_testing.go:476–478  ·  view source on GitHub ↗
(tb testing.TB, collection *DatabaseCollection, channelName string, startSeq, endSeq uint64)

Source from the content-addressed store, hash-verified

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)
478}
479
480// Test-only version of GetPrincipal that doesn't trigger channel/role recalculation
481func (dbc *DatabaseContext) GetPrincipalForTest(tb testing.TB, name string, isUser bool) (info *auth.PrincipalConfig, err error) {

Callers 2

ChannelViewForTestMethod · 0.95

Calls 2

TestCtxFunction · 0.92

Tested by 1