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

Function test_edge_map_display

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

Source from the content-addressed store, hash-verified

740
741 #[test]
742 fn test_edge_map_display() {
743 let mut em = EdgeUpdate::<Hash>::new(test_hash_position(0));
744 em.push(NewEdge {
745 previous: EdgeFlags::BLOCK,
746 flag: EdgeFlags::DELETED,
747 from: test_hash_position(0),
748 to: GraphNode::new(
749 Hash::of(b"test"),
750 ChangePosition::new(0),
751 ChangePosition::new(10),
752 ),
753 introduced_by: Hash::of(b"intro"),
754 });
755
756 let display = format!("{}", em);
757 assert!(display.contains("1 edges"));
758 }
759
760 #[test]
761 fn test_edge_map_json_roundtrip() {

Callers

nothing calls this directly

Calls 2

test_hash_positionFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected