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

Function test_up_context_structure

atomic-core/src/apply/position.rs:506–514  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

504
505 #[test]
506 fn test_up_context_structure() {
507 // Up context: vertices that come BEFORE new content
508 // We connect FROM predecessors TO new span
509 let hash = Hash::of(b"parent");
510 let up_ctx = make_external_position(Some(hash), 50);
511
512 // The position points to the END of the parent content
513 assert_eq!(up_ctx.pos, ChangePosition::new(50));
514 }
515
516 #[test]
517 fn test_down_context_structure() {

Callers

nothing calls this directly

Calls 1

make_external_positionFunction · 0.85

Tested by

no test coverage detected