()
| 501 | |
| 502 | #[test] |
| 503 | fn test_new_edge_is_deletion() { |
| 504 | let hash = Hash::of(b"test"); |
| 505 | let deletion_edge = NewEdge { |
| 506 | previous: EdgeFlags::BLOCK, |
| 507 | flag: EdgeFlags::BLOCK | EdgeFlags::DELETED, |
| 508 | from: make_position(Some(hash), 0), |
| 509 | to: make_external_vertex(Some(hash), 10, 20), |
| 510 | introduced_by: Some(hash), |
| 511 | }; |
| 512 | |
| 513 | assert!(deletion_edge.is_deletion()); |
| 514 | } |
| 515 | |
| 516 | #[test] |
| 517 | fn test_new_edge_is_undeletion() { |
nothing calls this directly
no test coverage detected