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

Function test_read_file_is_directory

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

Source from the content-addressed store, hash-verified

874
875 #[test]
876 fn test_read_file_is_directory() {
877 let wc = Memory::new();
878 wc.add_directory("mydir");
879
880 let mut buffer = Vec::new();
881 let result = wc.read_file("mydir", &mut buffer);
882 assert!(matches!(result, Err(MemoryError::IsADirectory { .. })));
883 }
884
885 #[test]
886 fn test_modified_time() {

Callers

nothing calls this directly

Calls 2

add_directoryMethod · 0.45
read_fileMethod · 0.45

Tested by

no test coverage detected