MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / TEST

Function TEST

checker/validation_result_test.cc:39–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37using Severity = TypeCheckIssue::Severity;
38
39TEST(ValidationResultTest, IsValidWithAst) {
40 ValidationResult result(std::make_unique<Ast>(), {});
41 EXPECT_TRUE(result.IsValid());
42 EXPECT_THAT(result.GetAst(), NotNull());
43 EXPECT_THAT(result.ReleaseAst(), IsOkAndHolds(NotNull()));
44}
45
46TEST(ValidationResultTest, IsNotValidWithoutAst) {
47 ValidationResult result({});

Callers

nothing calls this directly

Calls 11

TypeCheckIssueClass · 0.85
IsValidMethod · 0.80
GetAstMethod · 0.80
ReleaseAstMethod · 0.80
GetIssuesMethod · 0.80
messageMethod · 0.80
SetSourceMethod · 0.80
FormatErrorMethod · 0.80
CreateErrorFunction · 0.50
ASSERT_OK_AND_ASSIGNFunction · 0.50
severityMethod · 0.45

Tested by

no test coverage detected