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

Method CreateDocument

topologytest/peer_test.go:52–52  ·  view source on GitHub ↗

CreateDocument creates a document on the peer. The test will fail if the document already exists.

(dsName sgbucket.DataStoreName, docID string, body []byte)

Source from the content-addressed store, hash-verified

50
51 // CreateDocument creates a document on the peer. The test will fail if the document already exists.
52 CreateDocument(dsName sgbucket.DataStoreName, docID string, body []byte) BodyAndVersion
53 // WriteDocument upserts a document to the peer. The test will fail if the write does not succeed. Reasons for failure might be sync function rejections for Sync Gateway rejections.
54 WriteDocument(dsName sgbucket.DataStoreName, docID string, body []byte) BodyAndVersion
55 // DeleteDocument deletes a document on the peer. The test will fail if the document does not exist.

Callers 9

TestSingleActorCreateFunction · 0.65
TestSingleActorUpdateFunction · 0.65
TestSingleActorDeleteFunction · 0.65
TestSingleActorResurrectFunction · 0.65
createConflictingDocsFunction · 0.65
TestPeerImplementationFunction · 0.65
TestMultiActorUpdateFunction · 0.65
TestMultiActorDeleteFunction · 0.65
TestMultiActorResurrectFunction · 0.65

Implementers 3

CouchbaseLiteMockPeertopologytest/couchbase_lite_mock_peer_
SyncGatewayPeertopologytest/sync_gateway_peer_test.go
CouchbaseServerPeertopologytest/couchbase_server_peer_tes

Calls

no outgoing calls

Tested by 9

TestSingleActorCreateFunction · 0.52
TestSingleActorUpdateFunction · 0.52
TestSingleActorDeleteFunction · 0.52
TestSingleActorResurrectFunction · 0.52
createConflictingDocsFunction · 0.52
TestPeerImplementationFunction · 0.52
TestMultiActorUpdateFunction · 0.52
TestMultiActorDeleteFunction · 0.52
TestMultiActorResurrectFunction · 0.52