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

Function CreateTestDocument

db/util_testing.go:825–834  ·  view source on GitHub ↗
(docID string, revID string, body Body, deleted bool, expiry uint32)

Source from the content-addressed store, hash-verified

823}
824
825func CreateTestDocument(docID string, revID string, body Body, deleted bool, expiry uint32) (newDoc *Document) {
826 newDoc = &Document{
827 ID: docID,
828 Deleted: deleted,
829 DocExpiry: expiry,
830 RevID: revID,
831 _body: body,
832 }
833 return newDoc
834}
835
836// requireCurrentVersion fetches the document by key, and validates that cv matches.
837func (c *DatabaseCollection) RequireCurrentVersion(t *testing.T, key string, source string, version uint64) {

Calls

no outgoing calls