MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_new_vertex_folder_flag

Function test_new_vertex_folder_flag

atomic-core/src/apply/insertion.rs:447–460  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

make_positionFunction · 0.70

Tested by

no test coverage detected