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

Function test_record_item_clone

atomic-core/src/record/context.rs:1162–1174  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1160
1161 #[test]
1162 fn test_record_item_clone() {
1163 let item = RecordItem::new(
1164 "test.txt",
1165 Inode::new(1),
1166 Inode::ROOT,
1167 crate::output::FileMetadata::file(),
1168 );
1169
1170 let cloned = item.clone();
1171
1172 assert_eq!(cloned.full_path, item.full_path);
1173 assert_eq!(cloned.inode, item.inode);
1174 }
1175
1176 #[test]
1177 fn test_record_item_debug() {

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected