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

Function test_atom_as_new_vertex

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

Source from the content-addressed store, hash-verified

513
514 #[test]
515 fn test_atom_as_new_vertex() {
516 let nv = Insertion {
517 predecessors: vec![],
518 successors: vec![],
519 flag: EdgeFlags::BLOCK,
520 start: ChangePosition::new(0),
521 end: ChangePosition::new(10),
522 inode: test_hash_position(0),
523 };
524 let atom: Atom<Hash> = Atom::Insertion(nv.clone());
525
526 assert!(atom.as_new_vertex().is_some());
527 assert!(atom.as_edge_map().is_none());
528 }
529
530 #[test]
531 fn test_atom_inode() {

Callers

nothing calls this directly

Calls 3

InsertionClass · 0.85
test_hash_positionFunction · 0.70
cloneMethod · 0.45

Tested by

no test coverage detected