| 69 | : public testing::TestWithParam<StandardLibraryConfigTestCase> {}; |
| 70 | |
| 71 | TEST_P(StandardLibraryConfigTest, StandardLibraryConfig) { |
| 72 | const StandardLibraryConfigTestCase& param = GetParam(); |
| 73 | |
| 74 | Config config; |
| 75 | absl::Status status = |
| 76 | config.SetStandardLibraryConfig(param.standard_library_config); |
| 77 | if (param.expected_error.empty()) { |
| 78 | EXPECT_THAT(status, IsOk()); |
| 79 | } else { |
| 80 | EXPECT_THAT(status, StatusIs(absl::StatusCode::kInvalidArgument, |
| 81 | HasSubstr(param.expected_error))); |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | INSTANTIATE_TEST_SUITE_P( |
| 86 | StandardLibraryConfigTest, StandardLibraryConfigTest, |
nothing calls this directly
no test coverage detected