| 41 | } |
| 42 | |
| 43 | TEST(GetOnDemand, SuccessBasic) { |
| 44 | TestGetOnDemand("{}", {}, "{}"); |
| 45 | TestGetOnDemand("1", {}, "1"); |
| 46 | TestGetOnDemand(R"({"a":1})", {"a"}, "1"); |
| 47 | TestGetOnDemand(R"({"a":"1"})", {"a"}, "\"1\""); |
| 48 | TestGetOnDemand("[1, 2, 3, null]", {3}, "null"); |
| 49 | } |
| 50 | |
| 51 | TEST(GetOnDemand, SuccessNestedObject) { |
| 52 | TestGetOnDemand(R"({"a":{"b":{"c":1}}})", {"a", "b", "c"}, "1"); |
nothing calls this directly
no test coverage detected