Public channel view call - for unit test support
(tb testing.TB, channelName string, startSeq, endSeq uint64)
| 466 | |
| 467 | // Public channel view call - for unit test support |
| 468 | func (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 | |
| 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) |
nothing calls this directly
no test coverage detected