| 143 | }; |
| 144 | |
| 145 | TEST(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 | |
| 158 | TEST(AstCrawlerTest, CheckCrawlIdent) { |
| 159 | SourceInfo source_info; |
nothing calls this directly
no test coverage detected