| 109 | }; |
| 110 | |
| 111 | TEST_F(PartitioningUtilsTest, GraphWithoutAssignedDevicesFails) { |
| 112 | std::unique_ptr<Graph> graph = absl::make_unique<Graph>(OpRegistry::Global()); |
| 113 | SwapGraph(graph.get()); |
| 114 | |
| 115 | std::unordered_map<string, std::unique_ptr<Graph>> subgraphs; |
| 116 | Status status = |
| 117 | PartitionFunctionGraph(device_set_, std::move(graph), &subgraphs); |
| 118 | ASSERT_TRUE(errors::IsInvalidArgument(status)) << status.ToString(); |
| 119 | } |
| 120 | |
| 121 | TEST_F(PartitioningUtilsTest, OneDevice) { |
| 122 | std::unique_ptr<Graph> graph = absl::make_unique<Graph>(OpRegistry::Global()); |
nothing calls this directly
no test coverage detected