MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_walk_files_simple

Function test_walk_files_simple

atomic-core/src/output/filesystem/tests.rs:587–597  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

585
586#[test]
587fn 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]
600fn test_walk_files_nested() {

Callers

nothing calls this directly

Calls 5

temp_fsFunction · 0.85
writeFunction · 0.85
unwrapMethod · 0.45
pathMethod · 0.45
walk_filesMethod · 0.45

Tested by

no test coverage detected