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

Function test_atom_from_new_vertex

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

Source from the content-addressed store, hash-verified

544
545 #[test]
546 fn test_atom_from_new_vertex() {
547 let nv = Insertion {
548 predecessors: vec![],
549 successors: vec![],
550 flag: EdgeFlags::BLOCK,
551 start: ChangePosition::new(0),
552 end: ChangePosition::new(10),
553 inode: test_hash_position(0),
554 };
555 let atom: Atom<Hash> = nv.into();
556 assert!(atom.is_new_vertex());
557 }
558
559 #[test]
560 fn test_atom_from_edge_map() {

Callers

nothing calls this directly

Calls 1

test_hash_positionFunction · 0.70

Tested by

no test coverage detected