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

Function ExpectErrorContains

tensorflow/compiler/aot/codegen_test.cc:40–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38using ::xla::cpu_function_runtime::BufferInfo;
39
40void ExpectErrorContains(const Status& status, absl::string_view str) {
41 EXPECT_NE(Status::OK(), status);
42 EXPECT_TRUE(absl::StrContains(status.error_message(), str))
43 << "expected error: " << status.error_message() << " to contain: " << str;
44}
45
46TEST(ValidateCppIdent, Simple) {
47 TF_EXPECT_OK(ValidateCppIdent("a", ""));

Callers 1

TESTFunction · 0.70

Calls 1

StrContainsFunction · 0.50

Tested by

no test coverage detected