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

Method checkDict

Tests/EncoderTests.cc:140–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138 }
139
140 const Dict* checkDict(uint32_t count) {
141 auto v = Value::fromData(result);
142 REQUIRE(v != nullptr);
143 REQUIRE(v->type() == kDict);
144 auto d = v->asDict();
145 REQUIRE(d != nullptr);
146 REQUIRE(d->count() == count);
147 return d;
148 }
149
150 void testArrayOfLength(unsigned length) {
151 enc.beginArray();

Callers

nothing calls this directly

Calls 3

typeMethod · 0.45
asDictMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected