()
| 366 | |
| 367 | #[test] |
| 368 | fn test_new_vertex_folder_flag() { |
| 369 | let hash = Hash::of(b"test"); |
| 370 | let insertion = Insertion { |
| 371 | predecessors: vec![], |
| 372 | successors: vec![], |
| 373 | flag: EdgeFlags::FOLDER | EdgeFlags::BLOCK, |
| 374 | start: ChangePosition::new(0), |
| 375 | end: ChangePosition::new(0), |
| 376 | inode: make_position(Some(hash), 0), |
| 377 | }; |
| 378 | |
| 379 | assert!(insertion.flag.is_folder()); |
| 380 | assert!(insertion.flag.contains(EdgeFlags::BLOCK)); |
| 381 | } |
| 382 | |
| 383 | // GraphNode Creation Tests |
| 384 |
nothing calls this directly
no test coverage detected