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

Method checkIterator

Tests/HashTreeTests.cc:84–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 }
83
84 void checkIterator(size_t N) {
85 set<slice> keysSeen;
86 for (MutableHashTree::iterator i(tree); i; ++i) {
87 //cerr << "--> " << i.key().asString() << "\n";
88 CHECK(keysSeen.insert(i.key()).second); // insert, and make sure it's unique
89 REQUIRE(i.value() != nullptr);
90 CHECK(i.value().type() == kFLNumber);
91 }
92 CHECK(keysSeen.size() == N);
93 }
94
95 alloc_slice encodeTree() {
96 Encoder enc;

Callers

nothing calls this directly

Calls 5

insertMethod · 0.45
keyMethod · 0.45
valueMethod · 0.45
typeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected