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

Function TestRevTreeAccess

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

Source from the content-addressed store, hash-verified

302}
303
304func TestRevTreeAccess(t *testing.T) {
305 assert.True(t, testmap.contains("3-three"), "contains 3 failed")
306 assert.True(t, testmap.contains("1-one"), "contains 1 failed")
307 assert.False(t, testmap.contains("foo"), "contains false positive")
308}
309
310func TestRevTreeParentAccess(t *testing.T) {
311 parent := testmap.getParent("3-three")

Callers

nothing calls this directly

Calls 1

containsMethod · 0.80

Tested by

no test coverage detected