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

Function check_replace

test/jsonpointer/src/jsonpointer_tests.cpp:59–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void check_replace(json& example, const std::string& path, const json& value, const json& expected)
60{
61 std::error_code ec;
62 jsonpointer::replace(example, path, value, ec);
63 CHECK_FALSE(ec);
64 CHECK(expected == example);
65}
66
67void check_remove(json& example, const std::string& path, const json& expected)
68{

Callers 1

Calls 1

replaceFunction · 0.50

Tested by

no test coverage detected