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

Function ExpectHasSubstr

tensorflow/cc/framework/cc_op_gen_test.cc:64–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62)";
63
64void ExpectHasSubstr(StringPiece s, StringPiece expected) {
65 EXPECT_TRUE(absl::StrContains(s, expected))
66 << "'" << s << "' does not contain '" << expected << "'";
67}
68
69void ExpectDoesNotHaveSubstr(StringPiece s, StringPiece expected) {
70 EXPECT_FALSE(absl::StrContains(s, expected))

Callers 1

TESTFunction · 0.70

Calls 1

StrContainsFunction · 0.50

Tested by

no test coverage detected