()
| 709 | |
| 710 | #[test] |
| 711 | fn test_edge_map_creation() { |
| 712 | let hash = Hash::of(b"test"); |
| 713 | let edge = NewEdge { |
| 714 | previous: EdgeFlags::BLOCK, |
| 715 | flag: EdgeFlags::BLOCK | EdgeFlags::DELETED, |
| 716 | from: make_position(Some(hash), 0), |
| 717 | to: make_external_vertex(Some(hash), 10, 20), |
| 718 | introduced_by: Some(hash), |
| 719 | }; |
| 720 | |
| 721 | let mut edge_update = EdgeUpdate::new(make_position(Some(hash), 0)); |
| 722 | edge_update.push(edge); |
| 723 | |
| 724 | assert_eq!(edge_update.len(), 1); |
| 725 | assert!(!edge_update.is_empty()); |
| 726 | } |
| 727 | |
| 728 | #[test] |
| 729 | fn test_edge_map_multiple_edges() { |
nothing calls this directly
no test coverage detected