()
| 607 | |
| 608 | #[test] |
| 609 | fn test_walk_files_simple() { |
| 610 | let (dir, fs) = temp_fs(); |
| 611 | std::fs::write(dir.path().join("file1.txt"), "").unwrap(); |
| 612 | std::fs::write(dir.path().join("file2.txt"), "").unwrap(); |
| 613 | |
| 614 | let files = fs.walk_files("").unwrap(); |
| 615 | |
| 616 | assert_eq!(files.len(), 2); |
| 617 | assert!(files.contains(&"file1.txt".to_string())); |
| 618 | assert!(files.contains(&"file2.txt".to_string())); |
| 619 | } |
| 620 | |
| 621 | #[test] |
| 622 | fn test_walk_files_nested() { |
nothing calls this directly
no test coverage detected