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

Function allDocIDs

db/database_test.go:1735–1744  ·  view source on GitHub ↗
(ctx context.Context, collection *DatabaseCollection)

Source from the content-addressed store, hash-verified

1733var options ForEachDocIDOptions
1734
1735func allDocIDs(ctx context.Context, collection *DatabaseCollection) (docs []AllDocsEntry, err error) {
1736 err = collection.ForEachDocID(ctx, func(doc IDRevAndSequence, channels []string) (bool, error) {
1737 docs = append(docs, AllDocsEntry{
1738 IDRevAndSequence: doc,
1739 Channels: channels,
1740 })
1741 return true, nil
1742 }, options)
1743 return
1744}
1745
1746func TestAllDocsOnly(t *testing.T) {
1747

Callers 1

TestAllDocsOnlyFunction · 0.85

Calls 1

ForEachDocIDMethod · 0.80

Tested by

no test coverage detected