Lines Matching refs:Root
464 static std::string errorContext(const Value &V, const Path::Root &R) { in errorContext()
488 Path::Root Root("CustomStruct"); in TEST() local
489 ASSERT_TRUE(fromJSON(J, R, Root)); in TEST()
493 ASSERT_FALSE(fromJSON(J, R, Root)); in TEST()
495 toString(Root.getError())); in TEST()
503 EXPECT_EQ(ExpectedDump, errorContext(J, Root)); in TEST()
506 EXPECT_FALSE(fromJSON(nullptr, V, Root)); in TEST()
508 toString(Root.getError())); in TEST()
510 EXPECT_FALSE(fromJSON(Object{}, V, Root)); in TEST()
511 EXPECT_EQ("missing value at CustomStruct.str", toString(Root.getError())); in TEST()
513 EXPECT_FALSE(fromJSON(Object{{"str", 1}}, V, Root)); in TEST()
514 EXPECT_EQ("expected string at CustomStruct.str", toString(Root.getError())); in TEST()
517 EXPECT_FALSE(fromJSON(Object{{"str", "1"}, {"int", "string"}}, V, Root)); in TEST()
518 EXPECT_EQ("expected integer at CustomStruct.int", toString(Root.getError())); in TEST()
521 EXPECT_FALSE(fromJSON(Object{{"str", "1"}, {"bool", "string"}}, V, Root)); in TEST()
522 EXPECT_EQ("expected boolean at CustomStruct.bool", toString(Root.getError())); in TEST()
596 Path::Root R("foo"); in TEST()