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

Function test_new_edge_display

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

Source from the content-addressed store, hash-verified

865
866 #[test]
867 fn test_new_edge_display() {
868 let edge = NewEdge {
869 previous: EdgeFlags::BLOCK,
870 flag: EdgeFlags::BLOCK | EdgeFlags::DELETED,
871 from: test_hash_position(0),
872 to: GraphNode::new(
873 Hash::of(b"x"),
874 ChangePosition::new(0),
875 ChangePosition::new(5),
876 ),
877 introduced_by: Hash::of(b"intro"),
878 };
879
880 let display = format!("{}", edge);
881 assert!(display.contains("BLOCK"));
882 assert!(display.contains("DELETED"));
883 }
884
885 #[test]
886 fn test_new_edge_json_roundtrip() {

Callers

nothing calls this directly

Calls 1

test_hash_positionFunction · 0.70

Tested by

no test coverage detected