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

Function test_result_clone

atomic-core/src/output/repo/tree.rs:1350–1358  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1348
1349 #[test]
1350 fn test_result_clone() {
1351 let mut result = TreeCollectResult::new();
1352 result.add_file(TreeItem::file("test.rs", Inode::ROOT, Position::ROOT));
1353
1354 let cloned = result.clone();
1355
1356 assert_eq!(result.files_count, cloned.files_count);
1357 assert_eq!(result.items.len(), cloned.items.len());
1358 }
1359
1360 #[test]
1361 fn test_result_debug() {

Callers

nothing calls this directly

Calls 2

add_fileMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected