| 40 | }; |
| 41 | |
| 42 | TEST(ExecutorTest, RunSimple) { |
| 43 | DAG dag("simple_graph"); |
| 44 | dag.add_node("a", 0, std::unique_ptr<SimpleOp>(new SimpleOp("a"))); |
| 45 | dag.add_node("b", 1, std::unique_ptr<SimpleOp>(new SimpleOp("b"))); |
| 46 | dag.add_node("c", 2, std::unique_ptr<SimpleOp>(new SimpleOp("c"))); |
| 47 | dag.add_edge(0, 0, 1, 0); |
| 48 | dag.add_edge(1, 0, 2, 0); |
| 49 | |
| 50 | Executor executor(&dag, nullptr); |
| 51 | executor.Run(); |
| 52 | } |
| 53 | |
| 54 | |
| 55 | } // namespace |