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

Function test_result_clone

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

Source from the content-addressed store, hash-verified

1254
1255 #[test]
1256 fn test_result_clone() {
1257 let mut result = DetectResult::new();
1258 result.add_change(FileChange::added("test.rs", Encoding::Utf8));
1259
1260 let cloned = result.clone();
1261
1262 assert_eq!(result.change_count(), cloned.change_count());
1263 }
1264
1265 #[test]
1266 fn test_result_debug() {

Callers

nothing calls this directly

Calls 3

addedFunction · 0.85
add_changeMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected