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

Function TEST_F

tensorflow/core/grappler/graph_analyzer/graph_analyzer_test.cc:79–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77};
78
79TEST_F(GraphAnalyzerTest, BuildMap) {
80 gran_ = absl::make_unique<GraphAnalyzer>(graph_3n_self_control_, 1);
81 Status st = BuildMap();
82 EXPECT_THAT(st, Eq(Status::OK()));
83
84 auto& map = GetNodes();
85 EXPECT_THAT(map.find("node1"), Ne(map.end()));
86 EXPECT_THAT(map.find("node2"), Ne(map.end()));
87 EXPECT_THAT(map.find("node3"), Ne(map.end()));
88}
89
90TEST_F(GraphAnalyzerTest, BuildMapError) {
91 // A duplicate node.

Callers

nothing calls this directly

Calls 10

MakeNodeConstFunction · 0.85
IdentityClass · 0.70
PortClass · 0.70
EqClass · 0.50
NeClass · 0.50
StatusClass · 0.50
findMethod · 0.45
endMethod · 0.45
getMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected