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

Function test_atom_is_new_vertex

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

Source from the content-addressed store, hash-verified

487
488 #[test]
489 fn test_atom_is_new_vertex() {
490 let atom: Atom<Hash> = Atom::Insertion(Insertion {
491 predecessors: vec![],
492 successors: vec![],
493 flag: EdgeFlags::BLOCK,
494 start: ChangePosition::new(0),
495 end: ChangePosition::new(10),
496 inode: test_hash_position(0),
497 });
498
499 assert!(atom.is_new_vertex());
500 assert!(!atom.is_edge_map());
501 }
502
503 #[test]
504 fn test_atom_is_edge_map() {

Callers

nothing calls this directly

Calls 2

InsertionClass · 0.85
test_hash_positionFunction · 0.70

Tested by

no test coverage detected