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

Function TEST_P

internal/names_test.cc:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27using IsValidRelativeNameTest = testing::TestWithParam<NamesTestCase>;
28
29TEST_P(IsValidRelativeNameTest, Compliance) {
30 const NamesTestCase& test_case = GetParam();
31 if (test_case.ok) {
32 EXPECT_TRUE(IsValidRelativeName(test_case.text));
33 } else {
34 EXPECT_FALSE(IsValidRelativeName(test_case.text));
35 }
36}
37
38INSTANTIATE_TEST_SUITE_P(IsValidRelativeNameTest, IsValidRelativeNameTest,
39 testing::ValuesIn<NamesTestCase>({{"foo", true},

Callers

nothing calls this directly

Calls 1

IsValidRelativeNameFunction · 0.85

Tested by

no test coverage detected