| 908 | } |
| 909 | |
| 910 | fn make_fork_graph() -> (AliveGraph, OrderResult) { |
| 911 | let edge = SerializedGraphEdge::new(EdgeFlags::BLOCK, Position::ROOT, NodeId::ROOT); |
| 912 | let mut graph = AliveGraph::new(); |
| 913 | graph.push_vertex(AliveVertex::DUMMY); |
| 914 | graph.push_vertex(AliveVertex::new(make_vertex(1, 0, 1))); |
| 915 | graph.set_last_children_start(); |
| 916 | graph.push_child_to_last(Some(edge), VertexId::new(2)); |
| 917 | graph.push_child_to_last(Some(edge), VertexId::new(3)); |
| 918 | graph.push_vertex(AliveVertex::new(make_vertex(2, 0, 1))); |
| 919 | graph.push_vertex(AliveVertex::new(make_vertex(3, 0, 1))); |
| 920 | |
| 921 | let order = OrderResult { |
| 922 | sccs: vec![ |
| 923 | vec![VertexId::new(1)], |
| 924 | vec![VertexId::new(2)], |
| 925 | vec![VertexId::new(3)], |
| 926 | ], |
| 927 | conflict_tree: Default::default(), |
| 928 | cyclic_conflicts: 0, |
| 929 | forward_edges: Vec::new(), |
| 930 | }; |
| 931 | (graph, order) |
| 932 | } |
| 933 | |
| 934 | // ------------------------------------------------------------------------ |
| 935 | // Basic Output Tests |