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

Method checkArray

Tests/EncoderTests.cc:130–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128 }
129
130 const Array* checkArray(uint32_t count) {
131 auto v = Value::fromData(result);
132 REQUIRE(v != nullptr);
133 REQUIRE(v->type() == kArray);
134 auto a = v->asArray();
135 REQUIRE(a != nullptr);
136 REQUIRE(a->count() == count);
137 return a;
138 }
139
140 const Dict* checkDict(uint32_t count) {
141 auto v = Value::fromData(result);

Callers

nothing calls this directly

Calls 3

typeMethod · 0.45
asArrayMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected