()
| 581 | |
| 582 | #[test] |
| 583 | fn test_is_writable_file() { |
| 584 | let (dir, fs) = temp_fs(); |
| 585 | std::fs::write(dir.path().join("file.txt"), "content").unwrap(); |
| 586 | |
| 587 | assert!(fs.is_writable("file.txt").unwrap()); |
| 588 | } |
| 589 | |
| 590 | #[test] |
| 591 | fn test_is_writable_nonexistent() { |