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

Function TEST

eval/public/ast_traverse_test.cc:145–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143};
144
145TEST(AstCrawlerTest, CheckCrawlConstant) {
146 SourceInfo source_info;
147 MockAstVisitor handler;
148
149 Expr expr;
150 auto const_expr = expr.mutable_const_expr();
151
152 EXPECT_CALL(handler, PreVisitConst(const_expr, &expr, _)).Times(1);
153 EXPECT_CALL(handler, PostVisitConst(const_expr, &expr, _)).Times(1);
154
155 AstTraverse(&expr, &source_info, &handler);
156}
157
158TEST(AstCrawlerTest, CheckCrawlIdent) {
159 SourceInfo source_info;

Callers

nothing calls this directly

Calls 3

mutable_valueMethod · 0.80
AstTraverseFunction · 0.70
valueMethod · 0.45

Tested by

no test coverage detected