()
| 445 | |
| 446 | #[test] |
| 447 | fn test_new_vertex_folder_flag() { |
| 448 | let hash = Hash::of(b"test"); |
| 449 | let insertion = Insertion { |
| 450 | predecessors: vec![], |
| 451 | successors: vec![], |
| 452 | flag: EdgeFlags::FOLDER | EdgeFlags::BLOCK, |
| 453 | start: ChangePosition::new(0), |
| 454 | end: ChangePosition::new(0), |
| 455 | inode: make_position(Some(hash), 0), |
| 456 | }; |
| 457 | |
| 458 | assert!(insertion.flag.is_folder()); |
| 459 | assert!(insertion.flag.contains(EdgeFlags::BLOCK)); |
| 460 | } |
| 461 | |
| 462 | // GraphNode Creation Tests |
| 463 |
nothing calls this directly
no test coverage detected