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

Function test_new_vertex_display

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

Source from the content-addressed store, hash-verified

632
633 #[test]
634 fn test_new_vertex_display() {
635 let nv = Insertion {
636 predecessors: vec![test_hash_position(0)],
637 successors: vec![test_hash_position(10)],
638 flag: EdgeFlags::BLOCK,
639 start: ChangePosition::new(100),
640 end: ChangePosition::new(200),
641 inode: test_hash_position(0),
642 };
643
644 let display = format!("{}", nv);
645 assert!(display.contains("100"));
646 assert!(display.contains("200"));
647 assert!(display.contains("1 up"));
648 assert!(display.contains("1 down"));
649 }
650
651 #[test]
652 fn test_new_vertex_json_roundtrip() {

Callers

nothing calls this directly

Calls 1

test_hash_positionFunction · 0.70

Tested by

no test coverage detected