| 564 | }; |
| 565 | |
| 566 | TEST_P(CheckedExprToAstTypesTest, CheckedExprToAstTypes) { |
| 567 | TypePb test_type; |
| 568 | ASSERT_TRUE(google::protobuf::TextFormat::ParseFromString(GetParam().type, &test_type)); |
| 569 | (*checked_expr_.mutable_type_map())[1] = test_type; |
| 570 | |
| 571 | ASSERT_OK_AND_ASSIGN(auto ast, CreateAstFromCheckedExpr(checked_expr_)); |
| 572 | |
| 573 | CheckedExpr checked_expr; |
| 574 | ASSERT_THAT(AstToCheckedExpr(*ast, &checked_expr), IsOk()); |
| 575 | |
| 576 | EXPECT_THAT(checked_expr, EqualsProto(checked_expr_)); |
| 577 | } |
| 578 | |
| 579 | INSTANTIATE_TEST_SUITE_P( |
| 580 | Types, CheckedExprToAstTypesTest, |
nothing calls this directly
no test coverage detected