()
| 598 | |
| 599 | #[test] |
| 600 | fn test_walk_files_nested() { |
| 601 | let (dir, fs) = temp_fs(); |
| 602 | std::fs::create_dir_all(dir.path().join("a/b")).unwrap(); |
| 603 | std::fs::write(dir.path().join("root.txt"), "").unwrap(); |
| 604 | std::fs::write(dir.path().join("a/middle.txt"), "").unwrap(); |
| 605 | std::fs::write(dir.path().join("a/b/deep.txt"), "").unwrap(); |
| 606 | |
| 607 | let files = fs.walk_files("").unwrap(); |
| 608 | |
| 609 | assert_eq!(files.len(), 3); |
| 610 | assert!(files.contains(&"root.txt".to_string())); |
| 611 | assert!( |
| 612 | files.contains(&"a/middle.txt".to_string()) || files.contains(&"a\\middle.txt".to_string()) |
| 613 | ); // Windows compat |
| 614 | } |
| 615 | |
| 616 | #[test] |
| 617 | fn test_walk_files_excludes_atomic_dir() { |
nothing calls this directly
no test coverage detected