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

Function RawDocWithInlineSyncData

db/util_testing.go:701–718  ·  view source on GitHub ↗
(_ testing.TB)

Source from the content-addressed store, hash-verified

699}
700
701func RawDocWithInlineSyncData(_ testing.TB) string {
702 return `
703{
704 "_sync": {
705 "rev": "1-ca9ad22802b66f662ff171f226211d5c",
706 "sequence": 1,
707 "recent_sequences": [1],
708 "history": {
709 "revs": ["1-ca9ad22802b66f662ff171f226211d5c"],
710 "parents": [-1],
711 "channels": [null]
712 },
713 "cas": "",
714 "time_saved": "2017-11-29T12:46:13.456631-08:00"
715 }
716}
717`
718}
719
720// DisableSequenceWaitOnDbStart disables the release sequence wait on db start. Appropriate for tests
721// that make changes to database config after first startup, and don't assert/require on sequence correctness

Calls

no outgoing calls