| 41 | namespace { |
| 42 | |
| 43 | void ExpectErrorContains(const Status& status, absl::string_view str) { |
| 44 | EXPECT_NE(Status::OK(), status); |
| 45 | EXPECT_TRUE(absl::StrContains(status.error_message(), str)) |
| 46 | << "expected error: " << status.error_message() << " to contain: " << str; |
| 47 | } |
| 48 | |
| 49 | TEST(ValidateConfig, Good) { |
| 50 | tf2xla::Config config; |