()
| 662 | |
| 663 | #[test] |
| 664 | fn test_graph_add_extra_child() { |
| 665 | let mut graph = AliveGraph::new(); |
| 666 | graph.push_vertex(AliveVertex::DUMMY); |
| 667 | |
| 668 | let v = GraphNode::ROOT; |
| 669 | graph.push_vertex(AliveVertex::new(v)); |
| 670 | |
| 671 | graph.add_extra_child(VertexId::new(1), None, VertexId::new(5)); |
| 672 | graph.add_extra_child(VertexId::new(1), None, VertexId::new(6)); |
| 673 | |
| 674 | assert_eq!(graph.get_vertex(VertexId::new(1)).extra.len(), 2); |
| 675 | assert_eq!(graph.child_count(VertexId::new(1)), 2); |
| 676 | } |
| 677 | |
| 678 | #[test] |
| 679 | fn test_graph_child_count() { |
nothing calls this directly
no test coverage detected