| 27 | using ::cel::expr::CheckedExpr; |
| 28 | |
| 29 | TEST(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 | |
| 39 | TEST(FormatBaselineAst, NoType) { |
| 40 | Ast ast; |
nothing calls this directly
no test coverage detected