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

Function test_new_vertex_len

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

Source from the content-addressed store, hash-verified

570
571 #[test]
572 fn test_new_vertex_len() {
573 let nv = Insertion {
574 predecessors: vec![],
575 successors: vec![],
576 flag: EdgeFlags::BLOCK,
577 start: ChangePosition::new(10),
578 end: ChangePosition::new(50),
579 inode: test_hash_position(0),
580 };
581
582 assert_eq!(nv.len(), 40);
583 assert!(!nv.is_empty());
584 }
585
586 #[test]
587 fn test_new_vertex_empty() {

Callers

nothing calls this directly

Calls 1

test_hash_positionFunction · 0.70

Tested by

no test coverage detected