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

Function test_read_file_not_found

atomic-core/src/output/filesystem/tests.rs:185–190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

183
184#[test]
185fn test_read_file_not_found() {
186 let (_dir, fs) = temp_fs();
187 let mut buffer = Vec::new();
188 let result = fs.read_file("nonexistent.txt", &mut buffer);
189 assert!(result.is_err());
190}
191
192#[test]
193fn test_read_file_is_directory() {

Callers

nothing calls this directly

Calls 2

temp_fsFunction · 0.85
read_fileMethod · 0.45

Tested by

no test coverage detected