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

Function test_result_add_change_moved

atomic-core/src/record/detect.rs:1163–1175  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1161
1162 #[test]
1163 fn test_result_add_change_moved() {
1164 let mut result = DetectResult::new();
1165 result.add_change(FileChange::moved(
1166 "new.rs",
1167 "old.rs",
1168 Inode::ROOT,
1169 Position::ROOT,
1170 false,
1171 None,
1172 ));
1173
1174 assert_eq!(result.moved_count, 1);
1175 }
1176
1177 #[test]
1178 fn test_result_add_change_metadata_only() {

Callers

nothing calls this directly

Calls 1

add_changeMethod · 0.45

Tested by

no test coverage detected