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

Function test_missing_context_new

atomic-core/src/apply/conflict.rs:550–559  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

548
549 #[test]
550 fn test_missing_context_new() {
551 let pos = make_position(42, 100);
552 let change = NodeId::new(50);
553 let conflict = MissingContextConflict::new(pos, true, change);
554
555 assert_eq!(conflict.position, pos);
556 assert!(conflict.is_predecessor);
557 assert_eq!(conflict.during_change, change);
558 assert!(conflict.expected_change.is_none());
559 }
560
561 #[test]
562 fn test_missing_context_up_context() {

Callers

nothing calls this directly

Calls 1

make_positionFunction · 0.70

Tested by

no test coverage detected