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

Function TestRevTreeIsLeaf

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

Source from the content-addressed store, hash-verified

421}
422
423func TestRevTreeIsLeaf(t *testing.T) {
424 assert.True(t, branchymap.isLeaf("3-three"), "isLeaf failed on 3-three")
425 assert.True(t, branchymap.isLeaf("3-drei"), "isLeaf failed on 3-drei")
426 assert.False(t, branchymap.isLeaf("2-two"), "isLeaf failed on 2-two")
427 assert.False(t, branchymap.isLeaf("bogus"), "isLeaf failed on 'bogus")
428 assert.False(t, branchymap.isLeaf(""), "isLeaf failed on ''")
429}
430
431func TestRevTreeWinningRev(t *testing.T) {
432 ctx := base.TestCtx(t)

Callers

nothing calls this directly

Calls 1

isLeafMethod · 0.80

Tested by

no test coverage detected