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

Function test_missing_context_with_expected

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

Source from the content-addressed store, hash-verified

578
579 #[test]
580 fn test_missing_context_with_expected() {
581 let pos = make_position(42, 100);
582 let change = NodeId::new(50);
583 let expected = Hash::of(b"expected change");
584 let conflict = MissingContextConflict::new(pos, true, change).with_expected(expected);
585
586 assert_eq!(conflict.expected_change, Some(expected));
587 }
588
589 // Order Conflict Tests
590

Callers

nothing calls this directly

Calls 2

with_expectedMethod · 0.80
make_positionFunction · 0.70

Tested by

no test coverage detected