()
| 620 | |
| 621 | #[test] |
| 622 | fn test_walk_files_nested() { |
| 623 | let (dir, fs) = temp_fs(); |
| 624 | std::fs::create_dir_all(dir.path().join("a/b")).unwrap(); |
| 625 | std::fs::write(dir.path().join("root.txt"), "").unwrap(); |
| 626 | std::fs::write(dir.path().join("a/middle.txt"), "").unwrap(); |
| 627 | std::fs::write(dir.path().join("a/b/deep.txt"), "").unwrap(); |
| 628 | |
| 629 | let files = fs.walk_files("").unwrap(); |
| 630 | |
| 631 | assert_eq!(files.len(), 3); |
| 632 | assert!(files.contains(&"root.txt".to_string())); |
| 633 | assert!( |
| 634 | files.contains(&"a/middle.txt".to_string()) || files.contains(&"a\\middle.txt".to_string()) |
| 635 | ); // Windows compat |
| 636 | } |
| 637 | |
| 638 | #[test] |
| 639 | fn test_walk_files_excludes_atomic_dir() { |
nothing calls this directly
no test coverage detected