()
| 579 | |
| 580 | #[test] |
| 581 | fn test_graph_index_operator() { |
| 582 | let mut graph = AliveGraph::new(); |
| 583 | graph.push_vertex(AliveVertex::DUMMY); |
| 584 | |
| 585 | let v = GraphNode::new( |
| 586 | NodeId::new(1), |
| 587 | ChangePosition::new(0), |
| 588 | ChangePosition::new(10), |
| 589 | ); |
| 590 | graph.push_vertex(AliveVertex::new(v)); |
| 591 | |
| 592 | assert!(graph[VertexId::DUMMY].is_dummy()); |
| 593 | assert_eq!(graph[VertexId::new(1)].len(), 10); |
| 594 | } |
| 595 | |
| 596 | #[test] |
| 597 | fn test_graph_index_mut_operator() { |
nothing calls this directly
no test coverage detected