()
| 600 | |
| 601 | #[test] |
| 602 | fn test_new_vertex_context() { |
| 603 | let nv = Insertion { |
| 604 | predecessors: vec![test_hash_position(0)], |
| 605 | successors: vec![test_hash_position(10), test_hash_position(20)], |
| 606 | flag: EdgeFlags::BLOCK, |
| 607 | start: ChangePosition::new(0), |
| 608 | end: ChangePosition::new(10), |
| 609 | inode: test_hash_position(0), |
| 610 | }; |
| 611 | |
| 612 | assert!(nv.has_predecessors()); |
| 613 | assert!(nv.has_successors()); |
| 614 | assert_eq!(nv.predecessors.len(), 1); |
| 615 | assert_eq!(nv.successors.len(), 2); |
| 616 | } |
| 617 | |
| 618 | #[test] |
| 619 | fn test_new_vertex_no_context() { |
nothing calls this directly
no test coverage detected