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

Function test_read_file_not_found

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

Source from the content-addressed store, hash-verified

866
867 #[test]
868 fn test_read_file_not_found() {
869 let wc = Memory::new();
870 let mut buffer = Vec::new();
871 let result = wc.read_file("nonexistent", &mut buffer);
872 assert!(matches!(result, Err(MemoryError::NotFound { .. })));
873 }
874
875 #[test]
876 fn test_read_file_is_directory() {

Callers

nothing calls this directly

Calls 1

read_fileMethod · 0.45

Tested by

no test coverage detected