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

Function check_contains

test/jsonpointer/src/jsonpointer_tests.cpp:24–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23template <typename CharT,typename Policy,typename Allocator>
24void check_contains(const basic_json<CharT,Policy,Allocator>& example, const std::string& pointer, bool expected)
25{
26 bool result = jsonpointer::contains(example,pointer);
27 if (result != expected)
28 {
29 std::cout << "contains failed\n";
30 std::cout << " given: " << example << "\n";
31 std::cout << " pointer: " << pointer << "\n";
32 }
33 CHECK(expected == result);
34}
35
36template <typename CharT,typename Policy,typename Allocator>
37void check_get(const basic_json<CharT,Policy,Allocator>& example, const std::string& pointer, const basic_json<CharT,Policy,Allocator>& expected)

Callers 1

Calls 1

containsFunction · 0.50

Tested by

no test coverage detected