()
| 740 | |
| 741 | #[test] |
| 742 | fn test_edge_map_display() { |
| 743 | let mut em = EdgeUpdate::<Hash>::new(test_hash_position(0)); |
| 744 | em.push(NewEdge { |
| 745 | previous: EdgeFlags::BLOCK, |
| 746 | flag: EdgeFlags::DELETED, |
| 747 | from: test_hash_position(0), |
| 748 | to: GraphNode::new( |
| 749 | Hash::of(b"test"), |
| 750 | ChangePosition::new(0), |
| 751 | ChangePosition::new(10), |
| 752 | ), |
| 753 | introduced_by: Hash::of(b"intro"), |
| 754 | }); |
| 755 | |
| 756 | let display = format!("{}", em); |
| 757 | assert!(display.contains("1 edges")); |
| 758 | } |
| 759 | |
| 760 | #[test] |
| 761 | fn test_edge_map_json_roundtrip() { |
nothing calls this directly
no test coverage detected