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

Function test_file_metadata

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

Source from the content-addressed store, hash-verified

820
821 #[test]
822 fn test_file_metadata() {
823 let wc = Memory::new();
824 wc.add_file("test.txt", b"");
825
826 let meta = wc.file_metadata("test.txt").unwrap();
827 assert!(!meta.is_dir);
828 assert_eq!(meta.permissions, 0o644);
829 }
830
831 #[test]
832 fn test_file_metadata_directory() {

Callers

nothing calls this directly

Calls 3

add_fileMethod · 0.45
unwrapMethod · 0.45
file_metadataMethod · 0.45

Tested by

no test coverage detected