MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ExpectErrorContains

Function ExpectErrorContains

tensorflow/compiler/tf2xla/tf2xla_util_test.cc:43–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41namespace {
42
43void 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
49TEST(ValidateConfig, Good) {
50 tf2xla::Config config;

Callers 1

TESTFunction · 0.70

Calls 1

StrContainsFunction · 0.50

Tested by

no test coverage detected