Tests that in the graph created by `InitGraph`, exactly 2 control edges are added after calling `OrderCollectives`: c3_0 -> c2_0 and c3_1 -> c2_1.
| 139 | // Tests that in the graph created by `InitGraph`, exactly 2 control edges are |
| 140 | // added after calling `OrderCollectives`: c3_0 -> c2_0 and c3_1 -> c2_1. |
| 141 | TEST(CollectiveOrderTest, SimpleOrder) { |
| 142 | std::unique_ptr<Graph> graph = InitGraph(); |
| 143 | TF_EXPECT_OK(OrderCollectives(graph.get(), GraphCollectiveOrder::kEdges)); |
| 144 | VerifyGraph(*graph, {"c1_0", "c1_1", "c2_0", "c2_1", "c3_0", "c3_1"}, |
| 145 | {{"c3_0", "c2_0"}, {"c3_1", "c2_1"}}); |
| 146 | } |
| 147 | |
| 148 | TEST(CollectiveOrderTest, SimpleOrderAttr) { |
| 149 | std::unique_ptr<Graph> graph = InitGraph(); |
nothing calls this directly
no test coverage detected