| 474 | } |
| 475 | |
| 476 | func (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 |
| 481 | func (dbc *DatabaseContext) GetPrincipalForTest(tb testing.TB, name string, isUser bool) (info *auth.PrincipalConfig, err error) { |