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

Function test_edge_map_push

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

Source from the content-addressed store, hash-verified

694
695 #[test]
696 fn test_edge_map_push() {
697 let inode = test_hash_position(42);
698 let mut em = EdgeUpdate::<Hash>::new(inode);
699
700 em.push(NewEdge {
701 previous: EdgeFlags::BLOCK,
702 flag: EdgeFlags::BLOCK | EdgeFlags::DELETED,
703 from: test_hash_position(0),
704 to: GraphNode::new(
705 Hash::of(b"test"),
706 ChangePosition::new(0),
707 ChangePosition::new(10),
708 ),
709 introduced_by: Hash::of(b"intro"),
710 });
711
712 assert!(!em.is_empty());
713 assert_eq!(em.len(), 1);
714 }
715
716 #[test]
717 fn test_edge_map_concat() {

Callers

nothing calls this directly

Calls 2

test_hash_positionFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected