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:368–381  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

make_positionFunction · 0.70

Tested by

no test coverage detected