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

Function test_diff_tokens_identical

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

Source from the content-addressed store, hash-verified

635
636 #[test]
637 fn test_diff_tokens_identical() {
638 let tokens = tokenize(b"hello world");
639 let ops = diff_tokens(&tokens, &tokens);
640 // All operations should be Keep.
641 for op in &ops {
642 assert!(matches!(op, EditOp::Keep(_)), "expected Keep, got {:?}", op,);
643 }
644 }
645
646 #[test]
647 fn test_diff_tokens_all_new() {

Callers

nothing calls this directly

Calls 2

diff_tokensFunction · 0.85
tokenizeFunction · 0.70

Tested by

no test coverage detected