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

Function test_new_vertex_context

atomic-core/src/change/atom.rs:602–616  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

test_hash_positionFunction · 0.70

Tested by

no test coverage detected