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:806–812  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

804
805 #[test]
806 fn test_common_affixes_all_equal() {
807 let old = vec![1, 2, 3];
808 let new = vec![1, 2, 3];
809 let (prefix, suffix) = common_affixes(&old, &new);
810 assert_eq!(prefix, 3);
811 assert_eq!(suffix, 0); // All consumed by prefix
812 }
813
814 #[test]
815 fn test_common_affixes_none() {

Callers

nothing calls this directly

Calls 1

common_affixesFunction · 0.85

Tested by

no test coverage detected