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

Function AssertHasSubstr

tensorflow/core/lib/io/recordio_test.cc:302–305  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

300
301// Tests of all the error paths in log_reader.cc follow:
302void AssertHasSubstr(StringPiece s, StringPiece expected) {
303 EXPECT_TRUE(absl::StrContains(s, expected))
304 << s << " does not contain " << expected;
305}
306
307void TestReadError(const RecordWriterOptions& writer_options,
308 const RecordReaderOptions& reader_options) {

Callers 1

TEST_FFunction · 0.70

Calls 1

StrContainsFunction · 0.50

Tested by

no test coverage detected