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

Function test_item_with_metadata

atomic-core/src/output/repo/tree.rs:1174–1179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1172
1173 #[test]
1174 fn test_item_with_metadata() {
1175 let item = TreeItem::file("script.sh", Inode::ROOT, Position::ROOT)
1176 .with_metadata(FileMetadata::executable());
1177
1178 assert!(item.metadata.is_executable());
1179 }
1180
1181 #[test]
1182 fn test_item_filename() {

Callers

nothing calls this directly

Calls 1

with_metadataMethod · 0.45

Tested by

no test coverage detected