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

Function test_record_item_clone

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

Source from the content-addressed store, hash-verified

1179
1180 #[test]
1181 fn test_record_item_clone() {
1182 let item = RecordItem::new(
1183 "test.txt",
1184 Inode::new(1),
1185 Inode::ROOT,
1186 crate::output::FileMetadata::file(),
1187 );
1188
1189 let cloned = item.clone();
1190
1191 assert_eq!(cloned.full_path, item.full_path);
1192 assert_eq!(cloned.inode, item.inode);
1193 }
1194
1195 #[test]
1196 fn test_record_item_debug() {

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected