| 49 | }; |
| 50 | |
| 51 | TEST(ExprPrinterTest, Identifier) { |
| 52 | Expr expr; |
| 53 | expr.mutable_ident_expr().set_name("foo"); |
| 54 | expr.set_id(1); |
| 55 | ExprPrinter printer(TestAdorner::Get()); |
| 56 | EXPECT_EQ(printer.Print(expr), ("foo#1")); |
| 57 | } |
| 58 | |
| 59 | TEST(ExprPrinterTest, ConstantString) { |
| 60 | Expr expr; |
nothing calls this directly
no test coverage detected