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

Function test_record_item_clone

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected