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

Function test_vertex_positions

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

Source from the content-addressed store, hash-verified

394
395 #[test]
396 fn test_vertex_positions() {
397 let change = NodeId::new(42);
398 let node = make_internal_vertex(change, 10, 20);
399
400 let start_pos = node.start_pos();
401 let end_pos = node.end_pos();
402
403 assert_eq!(start_pos.change, change);
404 assert_eq!(start_pos.pos, ChangePosition::new(10));
405 assert_eq!(end_pos.change, change);
406 assert_eq!(end_pos.pos, ChangePosition::new(20));
407 }
408
409 #[test]
410 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