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

Function verifyCVEntries

db/channel_cache_single_test.go:959–969  ·  view source on GitHub ↗
(entries []*LogEntry, cvs []cvValues)

Source from the content-addressed store, hash-verified

957}
958
959func verifyCVEntries(entries []*LogEntry, cvs []cvValues) bool {
960 for index, cv := range cvs {
961 if entries[index].SourceID != cv.source {
962 return false
963 }
964 if entries[index].Version != cv.version {
965 return false
966 }
967 }
968 return true
969}
970
971func writeEntries(entries []*LogEntry) {
972 for index, entry := range entries {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected