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

Function test_vertex_positions

atomic-core/src/apply/insertion.rs:475–486  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

473
474 #[test]
475 fn test_vertex_positions() {
476 let change = NodeId::new(42);
477 let node = make_internal_vertex(change, 10, 20);
478
479 let start_pos = node.start_pos();
480 let end_pos = node.end_pos();
481
482 assert_eq!(start_pos.change, change);
483 assert_eq!(start_pos.pos, ChangePosition::new(10));
484 assert_eq!(end_pos.change, change);
485 assert_eq!(end_pos.pos, ChangePosition::new(20));
486 }
487
488 #[test]
489 fn test_root_vertex() {

Callers

nothing calls this directly

Calls 3

make_internal_vertexFunction · 0.70
start_posMethod · 0.45
end_posMethod · 0.45

Tested by

no test coverage detected