()
| 1264 | |
| 1265 | #[test] |
| 1266 | fn test_walk_files_nested() { |
| 1267 | let wc = Memory::new(); |
| 1268 | wc.add_file("root.txt", b""); |
| 1269 | wc.add_file("src/main.rs", b""); |
| 1270 | wc.add_file("src/lib.rs", b""); |
| 1271 | wc.add_file("src/utils/helper.rs", b""); |
| 1272 | |
| 1273 | let files = wc.walk_files("").unwrap(); |
| 1274 | |
| 1275 | assert_eq!(files.len(), 4); |
| 1276 | assert!(files.contains(&"root.txt".to_string())); |
| 1277 | assert!(files.contains(&"src/main.rs".to_string())); |
| 1278 | assert!(files.contains(&"src/lib.rs".to_string())); |
| 1279 | assert!(files.contains(&"src/utils/helper.rs".to_string())); |
| 1280 | } |
| 1281 | |
| 1282 | #[test] |
| 1283 | fn test_walk_files_with_prefix() { |
nothing calls this directly
no test coverage detected