()
| 97 | |
| 98 | #[test] |
| 99 | fn test_exists_file() { |
| 100 | let (dir, fs) = temp_fs(); |
| 101 | let path = dir.path().join("test.txt"); |
| 102 | std::fs::write(&path, "content").unwrap(); |
| 103 | |
| 104 | assert!(fs.exists("test.txt")); |
| 105 | assert!(!fs.exists("nonexistent.txt")); |
| 106 | } |
| 107 | |
| 108 | #[test] |
| 109 | fn test_exists_directory() { |