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

Function TEST

common/ast_rewrite_test.cc:115–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113};
114
115TEST(AstCrawlerTest, CheckCrawlConstant) {
116 MockAstRewriter handler;
117
118 Expr expr;
119 auto& const_expr = expr.mutable_const_expr();
120
121 EXPECT_CALL(handler, PostVisitConst(Ref(expr), Ref(const_expr))).Times(1);
122
123 AstRewrite(expr, handler);
124}
125
126TEST(AstCrawlerTest, CheckCrawlIdent) {
127 MockAstRewriter handler;

Callers

nothing calls this directly

Calls 10

ExprFromProtoFunction · 0.85
mutable_valueMethod · 0.80
keyMethod · 0.80
set_fieldMethod · 0.80
AstRewriteFunction · 0.70
ASSERT_OK_AND_ASSIGNFunction · 0.70
CreateAstFromParsedExprFunction · 0.70
ParseFunction · 0.70
valueMethod · 0.45
set_nameMethod · 0.45

Tested by

no test coverage detected