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

Function CreateTestProto

tensorflow/core/platform/env_test.cc:43–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43GraphDef CreateTestProto() {
44 GraphDef g;
45 NodeDef* node = g.add_node();
46 node->set_name("name1");
47 node->set_op("op1");
48 node = g.add_node();
49 node->set_name("name2");
50 node->set_op("op2");
51 return g;
52}
53
54static void ExpectHasSubstr(StringPiece s, StringPiece expected) {
55 EXPECT_TRUE(absl::StrContains(s, expected))

Callers 1

TEST_FFunction · 0.85

Calls 2

set_opMethod · 0.80
set_nameMethod · 0.45

Tested by

no test coverage detected