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

Function TestRevTreeAddRevisionWithMissingParent

db/revtree_test.go:365–371  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

363}
364
365func TestRevTreeAddRevisionWithMissingParent(t *testing.T) {
366 tempmap := testmap.copy()
367 assert.Equal(t, testmap, tempmap)
368
369 err := tempmap.addRevision("testdoc", RevInfo{ID: "5-five", Parent: "4-four"})
370 assert.Equal(t, fmt.Sprintf("doc: %v, RevTree addRevision, parent id %q is missing", "testdoc", "4-four"), err.Error())
371}
372
373func TestRevTreeCompareRevIDs(t *testing.T) {
374 ctx := base.TestCtx(t)

Callers

nothing calls this directly

Calls 4

addRevisionMethod · 0.80
copyMethod · 0.45
EqualMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected