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

Function TestRevTreeAddRevision

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

Source from the content-addressed store, hash-verified

338}
339
340func TestRevTreeAddRevision(t *testing.T) {
341 tempmap := testmap.copy()
342 assert.Equal(t, testmap, tempmap)
343
344 err := tempmap.addRevision("testdoc", RevInfo{ID: "4-four", Parent: "3-three"})
345 require.NoError(t, err)
346 assert.Equal(t, "3-three", tempmap.getParent("4-four"))
347}
348
349func TestRevTreeAddRevisionWithEmptyID(t *testing.T) {
350 tempmap := testmap.copy()

Callers

nothing calls this directly

Calls 4

addRevisionMethod · 0.80
getParentMethod · 0.80
copyMethod · 0.45
EqualMethod · 0.45

Tested by

no test coverage detected