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

Function TestGetOnDemand

tests/skip_test.cpp:26–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24using namespace sonic_json;
25
26void 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
34void TestGetOnDemandFailed(StringView json, const JsonPointer& path,
35 ParseResult expect) {

Callers 1

TESTFunction · 0.85

Calls 2

GetOnDemandFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected