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

Function ExpectHasSubstr

tensorflow/core/util/reporter_test.cc:31–34  ·  view source on GitHub ↗

Tests of all the error paths in log_reader.cc follow:

Source from the content-addressed store, hash-verified

29
30// Tests of all the error paths in log_reader.cc follow:
31static void ExpectHasSubstr(StringPiece s, StringPiece expected) {
32 EXPECT_TRUE(absl::StrContains(s, expected))
33 << s << " does not contain " << expected;
34}
35
36TEST(TestReporter, NoLogging) {
37 TestReporter test_reporter("b1");

Callers 1

TESTFunction · 0.70

Calls 1

StrContainsFunction · 0.50

Tested by

no test coverage detected