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

Function test_file_metadata_directory

atomic-core/src/output/memory.rs:832–838  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

830
831 #[test]
832 fn test_file_metadata_directory() {
833 let wc = Memory::new();
834 wc.add_directory("mydir");
835
836 let meta = wc.file_metadata("mydir").unwrap();
837 assert!(meta.is_dir);
838 }
839
840 #[test]
841 fn test_file_metadata_not_found() {

Callers

nothing calls this directly

Calls 3

add_directoryMethod · 0.45
unwrapMethod · 0.45
file_metadataMethod · 0.45

Tested by

no test coverage detected