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

Function TEST_P

common/ast/expr_proto_test.cc:42–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40using ExprRoundTripTest = ::testing::TestWithParam<ExprRoundtripTestCase>;
41
42TEST_P(ExprRoundTripTest, RoundTrip) {
43 const auto& test_case = GetParam();
44 ExprProto original_proto;
45 ASSERT_TRUE(
46 google::protobuf::TextFormat::ParseFromString(test_case.input, &original_proto));
47 Expr expr;
48 ASSERT_THAT(ExprFromProto(original_proto, expr), IsOk());
49 ExprProto proto;
50 ASSERT_THAT(ExprToProto(expr, &proto), IsOk());
51 EXPECT_THAT(proto, EqualsProto(original_proto));
52}
53
54INSTANTIATE_TEST_SUITE_P(
55 ExprRoundTripTest, ExprRoundTripTest,

Callers

nothing calls this directly

Calls 3

ExprFromProtoFunction · 0.85
ExprToProtoFunction · 0.85
EqualsProtoFunction · 0.85

Tested by

no test coverage detected