MCPcopy Create free account
hub / github.com/apache/tvm-ffi / TEST

Function TEST

tests/cpp/extra/test_json_parser.cc:62–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62TEST(JSONParser, BoolNull) {
63 // boolean value
64 EXPECT_EQ(json::Parse("true").cast<bool>(), true);
65 EXPECT_EQ(json::Parse("false").cast<bool>(), false);
66 EXPECT_EQ(json::Parse("null"), nullptr);
67}
68
69TEST(JSONParser, WrongBoolNull) {
70 String error_msg;

Callers

nothing calls this directly

Calls 6

ParseFunction · 0.85
FastMathSafeIsNaNFunction · 0.85
FastMathSafeIsInfFunction · 0.85
StructuralEqualFunction · 0.50
push_backMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected