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

Function testLogEntry

db/change_cache_test.go:29–36  ·  view source on GitHub ↗
(seq uint64, docid string, revid string)

Source from the content-addressed store, hash-verified

27)
28
29func testLogEntry(seq uint64, docid string, revid string) *LogEntry {
30 return &LogEntry{
31 Sequence: seq,
32 DocID: docid,
33 RevID: revid,
34 TimeReceived: channels.NewFeedTimestampFromNow(),
35 }
36}
37
38// Creates a log entry with key "doc_[sequence]", rev="1-abc" with the specified channels
39func testLogEntryForChannels(seq int, channelNames []string) *LogEntry {

Calls 1

NewFeedTimestampFromNowFunction · 0.92

Tested by

no test coverage detected