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

Function test_edge_map_creation

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

Source from the content-addressed store, hash-verified

531
532 #[test]
533 fn test_edge_map_creation() {
534 let hash = Hash::of(b"test");
535 let edge = NewEdge {
536 previous: EdgeFlags::BLOCK,
537 flag: EdgeFlags::BLOCK | EdgeFlags::DELETED,
538 from: make_position(Some(hash), 0),
539 to: make_external_vertex(Some(hash), 10, 20),
540 introduced_by: Some(hash),
541 };
542
543 let mut edge_update = EdgeUpdate::new(make_position(Some(hash), 0));
544 edge_update.push(edge);
545
546 assert_eq!(edge_update.len(), 1);
547 assert!(!edge_update.is_empty());
548 }
549
550 #[test]
551 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