()
| 363 | |
| 364 | #[test] |
| 365 | fn test_file_writer_finish() { |
| 366 | let (dir, fs) = temp_fs(); |
| 367 | |
| 368 | let mut writer = fs.write_file("test.txt", Inode::new(1)).unwrap(); |
| 369 | writer.write_all(b"content").unwrap(); |
| 370 | writer.finish().unwrap(); |
| 371 | |
| 372 | let contents = std::fs::read_to_string(dir.path().join("test.txt")).unwrap(); |
| 373 | assert_eq!(contents, "content"); |
| 374 | } |
| 375 | |
| 376 | // ------------------------------------------------------------------------ |
| 377 | // Directory Operations |
nothing calls this directly
no test coverage detected