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

Function test_atom_inode

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

Source from the content-addressed store, hash-verified

529
530 #[test]
531 fn test_atom_inode() {
532 let inode = test_hash_position(42);
533 let atom: Atom<Hash> = Atom::Insertion(Insertion {
534 predecessors: vec![],
535 successors: vec![],
536 flag: EdgeFlags::BLOCK,
537 start: ChangePosition::new(0),
538 end: ChangePosition::new(10),
539 inode,
540 });
541
542 assert_eq!(atom.inode().pos, inode.pos);
543 }
544
545 #[test]
546 fn test_atom_from_new_vertex() {

Callers

nothing calls this directly

Calls 2

InsertionClass · 0.85
test_hash_positionFunction · 0.70

Tested by

no test coverage detected