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

Function test_edge_map_creation

atomic-core/src/apply/edge.rs:711–726  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

709
710 #[test]
711 fn test_edge_map_creation() {
712 let hash = Hash::of(b"test");
713 let edge = NewEdge {
714 previous: EdgeFlags::BLOCK,
715 flag: EdgeFlags::BLOCK | EdgeFlags::DELETED,
716 from: make_position(Some(hash), 0),
717 to: make_external_vertex(Some(hash), 10, 20),
718 introduced_by: Some(hash),
719 };
720
721 let mut edge_update = EdgeUpdate::new(make_position(Some(hash), 0));
722 edge_update.push(edge);
723
724 assert_eq!(edge_update.len(), 1);
725 assert!(!edge_update.is_empty());
726 }
727
728 #[test]
729 fn test_edge_map_multiple_edges() {

Callers

nothing calls this directly

Calls 3

make_positionFunction · 0.70
make_external_vertexFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected