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

Function HasSubstr

tensorflow/contrib/session_bundle/signature_test.cc:37–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35namespace {
36
37static bool HasSubstr(StringPiece base, StringPiece substr) {
38 bool ok = absl::StrContains(base, substr);
39 EXPECT_TRUE(ok) << base << ", expected substring " << substr;
40 return ok;
41}
42
43TEST(GetClassificationSignature, Basic) {
44 tensorflow::MetaGraphDef meta_graph_def;

Callers 1

TESTFunction · 0.70

Calls 1

StrContainsFunction · 0.50

Tested by

no test coverage detected