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

Function test_output_item_with_zombie

atomic-core/src/output/mod.rs:548–554  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

546
547 #[test]
548 fn test_output_item_with_zombie() {
549 let hash = Hash::of(b"deleter");
550 let item = OutputItem::file(Inode::ROOT, "deleted.txt".to_string(), Position::ROOT)
551 .with_zombie(vec![hash]);
552 assert!(item.is_zombie());
553 assert_eq!(item.is_zombie.unwrap().len(), 1);
554 }
555
556 #[test]
557 fn test_output_item_with_metadata() {

Callers

nothing calls this directly

Calls 1

with_zombieMethod · 0.80

Tested by

no test coverage detected