| 24 | using namespace sonic_json; |
| 25 | |
| 26 | void TestGetOnDemand(StringView json, const JsonPointer& path, |
| 27 | StringView expect) { |
| 28 | StringView target; |
| 29 | auto result = GetOnDemand(json, path, target); |
| 30 | EXPECT_EQ(result.Error(), sonic_json::kErrorNone) << json; |
| 31 | EXPECT_EQ(target, expect) << json; |
| 32 | } |
| 33 | |
| 34 | void TestGetOnDemandFailed(StringView json, const JsonPointer& path, |
| 35 | ParseResult expect) { |
no test coverage detected