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

Function TEST_P

common/ast_proto_test.cc:566–577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

564};
565
566TEST_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
579INSTANTIATE_TEST_SUITE_P(
580 Types, CheckedExprToAstTypesTest,

Callers

nothing calls this directly

Calls 6

AstToCheckedExprFunction · 0.85
EqualsProtoFunction · 0.85
AstToParsedExprFunction · 0.85
ASSERT_OK_AND_ASSIGNFunction · 0.70
CreateAstFromParsedExprFunction · 0.70
CreateAstFromCheckedExprFunction · 0.70

Tested by

no test coverage detected