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

Function TestDocLifecycle

rest/api_test.go:221–230  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

219}
220
221func TestDocLifecycle(t *testing.T) {
222 rt := NewRestTester(t, nil)
223 defer rt.Close()
224
225 version := rt.CreateTestDoc("doc")
226 assert.Equal(t, "1-45ca73d819d5b1c9b8eea95290e79004", version.RevTreeID)
227
228 response := rt.SendAdminRequest("DELETE", "/{{.keyspace}}/doc?rev="+version.RevTreeID, "")
229 RequireStatus(t, response, 200)
230}
231
232func TestDocumentUpdateWithNullBody(t *testing.T) {
233 rt := NewRestTester(t, nil)

Callers

nothing calls this directly

Calls 6

CloseMethod · 0.95
CreateTestDocMethod · 0.95
SendAdminRequestMethod · 0.95
NewRestTesterFunction · 0.85
RequireStatusFunction · 0.85
EqualMethod · 0.45

Tested by

no test coverage detected