MCPcopy Create free account
hub / github.com/danielaparker/jsoncons / check_equal

Function check_equal

test/bson/src/bson_encoder_tests.cpp:29–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27 }
28
29 void check_equal(const std::vector<uint8_t>& v, const std::vector<uint8_t>& expected)
30 {
31 test_equal(v, expected);
32 auto result = bson::try_decode_bson<json>(v);
33 REQUIRE(result);
34 json& j(*result);
35 std::vector<uint8_t> u;
36 bson::encode_bson(j, u);
37 test_equal(v,u);
38 }
39}
40
41TEST_CASE("bson_options tests")

Callers 1

Calls 2

test_equalFunction · 0.85
encode_bsonFunction · 0.85

Tested by

no test coverage detected