MCPcopy Create free account
hub / github.com/couchbase/fleece / checkTree

Method checkTree

Tests/HashTreeTests.cc:74–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 }
73
74 void checkTree(size_t N) {
75 CHECK(tree.count() == N);
76 for (size_t i = 0; i < N; i++) {
77 auto value = tree.get(keys[i]);
78 REQUIRE(value);
79 CHECK(value.isInteger());
80 CHECK(value.asInt() == values.get(uint32_t(i)).asInt());
81 }
82 }
83
84 void checkIterator(size_t N) {
85 set<slice> keysSeen;

Callers

nothing calls this directly

Calls 4

countMethod · 0.45
getMethod · 0.45
isIntegerMethod · 0.45
asIntMethod · 0.45

Tested by

no test coverage detected