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

Function TEST_P

testutil/baseline_tests_test.cc:150–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148class FormatBaselineTypeSpecTest : public testing::TestWithParam<TestCase> {};
149
150TEST_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
159INSTANTIATE_TEST_SUITE_P(
160 Types, FormatBaselineTypeSpecTest,

Callers

nothing calls this directly

Calls 3

FormatBaselineAstFunction · 0.85
set_idMethod · 0.45
set_nameMethod · 0.45

Tested by

no test coverage detected