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

Function TEST

testutil/baseline_tests_test.cc:29–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27using ::cel::expr::CheckedExpr;
28
29TEST(FormatBaselineAst, Basic) {
30 Ast ast;
31 ast.mutable_root_expr().mutable_ident_expr().set_name("foo");
32 ast.mutable_root_expr().set_id(1);
33 ast.mutable_type_map()[1] = TypeSpec(PrimitiveType::kInt64);
34 ast.mutable_reference_map()[1].set_name("foo");
35
36 EXPECT_EQ(FormatBaselineAst(ast), "foo~int^foo");
37}
38
39TEST(FormatBaselineAst, NoType) {
40 Ast ast;

Callers

nothing calls this directly

Calls 7

TypeSpecClass · 0.85
FormatBaselineAstFunction · 0.85
DynTypeSpecClass · 0.85
set_functionMethod · 0.80
set_nameMethod · 0.45
set_idMethod · 0.45

Tested by

no test coverage detected