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

Function testLogEntryWithCV

db/change_cache_test.go:77–93  ·  view source on GitHub ↗
(seq uint64, docid string, revid string, channelNames []string, collectionID uint32, sourceID string, version uint64)

Source from the content-addressed store, hash-verified

75}
76
77func testLogEntryWithCV(seq uint64, docid string, revid string, channelNames []string, collectionID uint32, sourceID string, version uint64) *LogEntry {
78 entry := &LogEntry{
79 Sequence: seq,
80 DocID: docid,
81 RevID: revid,
82 TimeReceived: channels.NewFeedTimestampFromNow(),
83 CollectionID: collectionID,
84 SourceID: sourceID,
85 Version: version,
86 }
87 channelMap := make(channels.ChannelMap)
88 for _, channelName := range channelNames {
89 channelMap[channelName] = nil
90 }
91 entry.Channels = channelMap
92 return entry
93}
94
95func TestLateSequenceHandling(t *testing.T) {
96

Callers 1

Calls 1

NewFeedTimestampFromNowFunction · 0.92

Tested by

no test coverage detected