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

Function TestGetOnDemandFailed

tests/skip_test.cpp:34–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34void TestGetOnDemandFailed(StringView json, const JsonPointer& path,
35 ParseResult expect) {
36 StringView target;
37 auto result = GetOnDemand(json, path, target);
38 EXPECT_EQ(result.Error(), expect.Error()) << json << expect.Error();
39 EXPECT_EQ(result.Offset(), expect.Offset()) << json << expect.Error();
40 EXPECT_EQ(target, "");
41}
42
43TEST(GetOnDemand, SuccessBasic) {
44 TestGetOnDemand("{}", {}, "{}");

Callers 1

TESTFunction · 0.85

Calls 3

GetOnDemandFunction · 0.85
ErrorMethod · 0.80
OffsetMethod · 0.80

Tested by

no test coverage detected