| 148 | class FormatBaselineTypeSpecTest : public testing::TestWithParam<TestCase> {}; |
| 149 | |
| 150 | TEST_P(FormatBaselineTypeSpecTest, Runner) { |
| 151 | Ast ast; |
| 152 | ast.mutable_root_expr().set_id(1); |
| 153 | ast.mutable_root_expr().mutable_ident_expr().set_name("x"); |
| 154 | ast.mutable_type_map()[1] = GetParam().type; |
| 155 | |
| 156 | EXPECT_EQ(FormatBaselineAst(ast), GetParam().expected_string); |
| 157 | } |
| 158 | |
| 159 | INSTANTIATE_TEST_SUITE_P( |
| 160 | Types, FormatBaselineTypeSpecTest, |
nothing calls this directly
no test coverage detected