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

Function verifyChannelDocIDs

db/channel_cache_single_test.go:939–952  ·  view source on GitHub ↗
(entries []*LogEntry, docIDs []string)

Source from the content-addressed store, hash-verified

937}
938
939func verifyChannelDocIDs(entries []*LogEntry, docIDs []string) bool {
940 if len(entries) != len(docIDs) {
941 log.Printf("verifyChannelDocIDs: entries size (%v) not equals to DocIDs size (%v)",
942 len(entries), len(docIDs))
943 return false
944 }
945 for index, docID := range docIDs {
946 if entries[index].DocID != docID {
947 log.Printf("verifyChannelDocIDs: DocID mismatch at index %v, entries=%s, DocIDs=%s", index, entries[index].DocID, docID)
948 return false
949 }
950 }
951 return true
952}
953
954type cvValues struct {
955 source string

Callers 6

TestDuplicateDocIDFunction · 0.85
TestLateArrivingSequenceFunction · 0.85
TestLateSequenceAsFirstFunction · 0.85
TestChannelCacheRemoveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected