InitChannel is a test-only function to initialize a channel in the channel cache.
(ctx context.Context, t *testing.T, chanName string)
| 818 | |
| 819 | // InitChannel is a test-only function to initialize a channel in the channel cache. |
| 820 | func (db *DatabaseContext) InitChannel(ctx context.Context, t *testing.T, chanName string) error { |
| 821 | _, err := db.channelCache.getSingleChannelCache(ctx, channels.NewID(chanName, base.DefaultCollectionID)) |
| 822 | return err |
| 823 | } |
| 824 | |
| 825 | func CreateTestDocument(docID string, revID string, body Body, deleted bool, expiry uint32) (newDoc *Document) { |
| 826 | newDoc = &Document{ |
no test coverage detected