()
| 531 | |
| 532 | #[test] |
| 533 | fn test_edge_map_creation() { |
| 534 | let hash = Hash::of(b"test"); |
| 535 | let edge = NewEdge { |
| 536 | previous: EdgeFlags::BLOCK, |
| 537 | flag: EdgeFlags::BLOCK | EdgeFlags::DELETED, |
| 538 | from: make_position(Some(hash), 0), |
| 539 | to: make_external_vertex(Some(hash), 10, 20), |
| 540 | introduced_by: Some(hash), |
| 541 | }; |
| 542 | |
| 543 | let mut edge_update = EdgeUpdate::new(make_position(Some(hash), 0)); |
| 544 | edge_update.push(edge); |
| 545 | |
| 546 | assert_eq!(edge_update.len(), 1); |
| 547 | assert!(!edge_update.is_empty()); |
| 548 | } |
| 549 | |
| 550 | #[test] |
| 551 | fn test_edge_map_multiple_edges() { |
nothing calls this directly
no test coverage detected