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

Function test_new_vertex_empty

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

Source from the content-addressed store, hash-verified

585
586 #[test]
587 fn test_new_vertex_empty() {
588 let nv = Insertion {
589 predecessors: vec![],
590 successors: vec![],
591 flag: EdgeFlags::BLOCK,
592 start: ChangePosition::new(10),
593 end: ChangePosition::new(10),
594 inode: test_hash_position(0),
595 };
596
597 assert!(nv.is_empty());
598 assert_eq!(nv.len(), 0);
599 }
600
601 #[test]
602 fn test_new_vertex_context() {

Callers

nothing calls this directly

Calls 1

test_hash_positionFunction · 0.70

Tested by

no test coverage detected