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

Function test_only_right_changes

atomic-core/src/merge/three_way.rs:456–463  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

454
455 #[test]
456 fn test_only_right_changes() {
457 let base = tokenize(b"x = 1");
458 let left = tokenize(b"x = 1");
459 let right = tokenize(b"x = 2");
460 let result = three_way_merge(&base, &left, &right);
461 assert!(matches!(result, ThreeWayResult::Merged(_)));
462 assert_eq!(merged_string(&result).unwrap(), "x = 2");
463 }
464
465 #[test]
466 fn test_non_overlapping_token_edits() {

Callers

nothing calls this directly

Calls 2

three_way_mergeFunction · 0.85
tokenizeFunction · 0.70

Tested by

no test coverage detected