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

Method checkReadBool

Tests/EncoderTests.cc:71–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 }
70
71 void checkReadBool(bool b) {
72 auto v = Value::fromData(result);
73 REQUIRE(v != nullptr);
74 REQUIRE(v->type() == kBoolean);
75 REQUIRE(v->asBool() == b);
76 REQUIRE(v->asInt() == (int64_t)b);
77 }
78
79 void checkRead(int64_t i) {
80 auto v = Value::fromData(result);

Callers

nothing calls this directly

Calls 3

typeMethod · 0.45
asBoolMethod · 0.45
asIntMethod · 0.45

Tested by

no test coverage detected