()
| 585 | |
| 586 | #[test] |
| 587 | fn test_walk_files_simple() { |
| 588 | let (dir, fs) = temp_fs(); |
| 589 | std::fs::write(dir.path().join("file1.txt"), "").unwrap(); |
| 590 | std::fs::write(dir.path().join("file2.txt"), "").unwrap(); |
| 591 | |
| 592 | let files = fs.walk_files("").unwrap(); |
| 593 | |
| 594 | assert_eq!(files.len(), 2); |
| 595 | assert!(files.contains(&"file1.txt".to_string())); |
| 596 | assert!(files.contains(&"file2.txt".to_string())); |
| 597 | } |
| 598 | |
| 599 | #[test] |
| 600 | fn test_walk_files_nested() { |
nothing calls this directly
no test coverage detected