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

Function TEST

eval/compiler/cel_expression_builder_flat_impl_test.cc:78–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76using ::testing::NotNull;
77
78TEST(CelExpressionBuilderFlatImplTest, Error) {
79 Expr expr;
80 SourceInfo source_info;
81 CelExpressionBuilderFlatImpl builder(NewTestingRuntimeEnv());
82 EXPECT_THAT(builder.CreateExpression(&expr, &source_info).status(),
83 StatusIs(absl::StatusCode::kInvalidArgument,
84 HasSubstr("Invalid empty expression")));
85}
86
87TEST(CelExpressionBuilderFlatImplTest, ParsedExpr) {
88 ASSERT_OK_AND_ASSIGN(ParsedExpr parsed_expr, Parse("1 + 2"));

Callers

nothing calls this directly

Calls 9

RegisterBuiltinFunctionsFunction · 0.85
IsCelInt64Function · 0.85
IsCelErrorFunction · 0.85
GetRegistryMethod · 0.80
source_infoMethod · 0.80
ASSERT_OK_AND_ASSIGNFunction · 0.70
CreateExpressionMethod · 0.45
exprMethod · 0.45
EvaluateMethod · 0.45

Tested by

no test coverage detected