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:557–562  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

555
556 #[test]
557 fn test_output_item_with_metadata() {
558 let meta = FileMetadata::executable();
559 let item = OutputItem::file(Inode::ROOT, "script.sh".to_string(), Position::ROOT)
560 .with_metadata(meta);
561 assert!(item.metadata.is_executable());
562 }
563
564 // -------------------------------------------------------------------------
565 // OutputStats Tests

Callers

nothing calls this directly

Calls 1

with_metadataMethod · 0.45

Tested by

no test coverage detected