()
| 865 | |
| 866 | #[test] |
| 867 | fn test_new_edge_display() { |
| 868 | let edge = NewEdge { |
| 869 | previous: EdgeFlags::BLOCK, |
| 870 | flag: EdgeFlags::BLOCK | EdgeFlags::DELETED, |
| 871 | from: test_hash_position(0), |
| 872 | to: GraphNode::new( |
| 873 | Hash::of(b"x"), |
| 874 | ChangePosition::new(0), |
| 875 | ChangePosition::new(5), |
| 876 | ), |
| 877 | introduced_by: Hash::of(b"intro"), |
| 878 | }; |
| 879 | |
| 880 | let display = format!("{}", edge); |
| 881 | assert!(display.contains("BLOCK")); |
| 882 | assert!(display.contains("DELETED")); |
| 883 | } |
| 884 | |
| 885 | #[test] |
| 886 | fn test_new_edge_json_roundtrip() { |
nothing calls this directly
no test coverage detected