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

Function test_common_affixes_all_equal

atomic-core/src/diff/mod.rs:867–873  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

865
866 #[test]
867 fn test_common_affixes_all_equal() {
868 let old = vec![1, 2, 3];
869 let new = vec![1, 2, 3];
870 let (prefix, suffix) = common_affixes(&old, &new);
871 assert_eq!(prefix, 3);
872 assert_eq!(suffix, 0); // All consumed by prefix
873 }
874
875 #[test]
876 fn test_common_affixes_none() {

Callers

nothing calls this directly

Calls 1

common_affixesFunction · 0.85

Tested by

no test coverage detected