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

Function test_output_item_with_metadata

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

Source from the content-addressed store, hash-verified

548
549 #[test]
550 fn test_output_item_with_metadata() {
551 let meta = FileMetadata::executable();
552 let item = OutputItem::file(Inode::ROOT, "script.sh".to_string(), Position::ROOT)
553 .with_metadata(meta);
554 assert!(item.metadata.is_executable());
555 }
556
557 // -------------------------------------------------------------------------
558 // OutputStats Tests

Callers

nothing calls this directly

Calls 1

with_metadataMethod · 0.45

Tested by

no test coverage detected