| 19 | |
| 20 | template <typename Json> |
| 21 | void check_patch(Json& target, const Json& patch, const std::error_code& expected_ec, const Json& expected) |
| 22 | { |
| 23 | std::error_code ec; |
| 24 | jsonpatch::apply_patch(target, patch, ec); |
| 25 | if (ec != expected_ec || expected != target) |
| 26 | { |
| 27 | std::cout << "target:\n" << target << '\n'; |
| 28 | } |
| 29 | CHECK(ec == expected_ec); //-V521 |
| 30 | CHECK(expected == target); //-V521 |
| 31 | } |
| 32 | |
| 33 | TEST_CASE("testing_a_value_success") |
| 34 | { |
no test coverage detected