MCPcopy Create free account
hub / github.com/bytedance/sonic-cpp / TEST

Function TEST

tests/skip_test.cpp:43–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43TEST(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
51TEST(GetOnDemand, SuccessNestedObject) {
52 TestGetOnDemand(R"({"a":{"b":{"c":1}}})", {"a", "b", "c"}, "1");

Callers

nothing calls this directly

Calls 3

TestGetOnDemandFunction · 0.85
TestGetOnDemandFailedFunction · 0.85
ParseResultClass · 0.50

Tested by

no test coverage detected