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

Function check_insert_or_assign

test/jsonpointer/src/jsonpointer_tests.cpp:51–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void check_insert_or_assign(json& example, const std::string& path, const json& value, const json& expected)
52{
53 std::error_code ec;
54 jsonpointer::add(example, path, value, ec);
55 CHECK_FALSE(ec);
56 CHECK(expected == example);
57}
58
59void check_replace(json& example, const std::string& path, const json& value, const json& expected)
60{

Callers 1

Calls 1

addFunction · 0.85

Tested by

no test coverage detected