| 27 | using IsValidRelativeNameTest = testing::TestWithParam<NamesTestCase>; |
| 28 | |
| 29 | TEST_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 | |
| 38 | INSTANTIATE_TEST_SUITE_P(IsValidRelativeNameTest, IsValidRelativeNameTest, |
| 39 | testing::ValuesIn<NamesTestCase>({{"foo", true}, |
nothing calls this directly
no test coverage detected