| 22 | |
| 23 | template <typename CharT,typename Policy,typename Allocator> |
| 24 | void 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 | |
| 36 | template <typename CharT,typename Policy,typename Allocator> |
| 37 | void check_get(const basic_json<CharT,Policy,Allocator>& example, const std::string& pointer, const basic_json<CharT,Policy,Allocator>& expected) |
no test coverage detected