()
| 694 | |
| 695 | #[test] |
| 696 | fn test_edge_map_push() { |
| 697 | let inode = test_hash_position(42); |
| 698 | let mut em = EdgeUpdate::<Hash>::new(inode); |
| 699 | |
| 700 | em.push(NewEdge { |
| 701 | previous: EdgeFlags::BLOCK, |
| 702 | flag: EdgeFlags::BLOCK | EdgeFlags::DELETED, |
| 703 | from: test_hash_position(0), |
| 704 | to: GraphNode::new( |
| 705 | Hash::of(b"test"), |
| 706 | ChangePosition::new(0), |
| 707 | ChangePosition::new(10), |
| 708 | ), |
| 709 | introduced_by: Hash::of(b"intro"), |
| 710 | }); |
| 711 | |
| 712 | assert!(!em.is_empty()); |
| 713 | assert_eq!(em.len(), 1); |
| 714 | } |
| 715 | |
| 716 | #[test] |
| 717 | fn test_edge_map_concat() { |
nothing calls this directly
no test coverage detected