()
| 648 | |
| 649 | #[test] |
| 650 | fn test_new_edge_creation() { |
| 651 | let hash = Hash::of(b"test"); |
| 652 | let edge = NewEdge { |
| 653 | previous: EdgeFlags::BLOCK, |
| 654 | flag: EdgeFlags::BLOCK | EdgeFlags::DELETED, |
| 655 | from: make_position(Some(hash), 10), |
| 656 | to: make_external_vertex(Some(hash), 20, 30), |
| 657 | introduced_by: Some(hash), |
| 658 | }; |
| 659 | |
| 660 | assert_eq!(edge.previous, EdgeFlags::BLOCK); |
| 661 | assert!(edge.flag.contains(EdgeFlags::DELETED)); |
| 662 | assert_eq!(edge.introduced_by, Some(hash)); |
| 663 | } |
| 664 | |
| 665 | #[test] |
| 666 | fn test_new_edge_self_reference() { |
nothing calls this directly
no test coverage detected