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:609–619  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

607
608#[test]
609fn 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]
622fn test_walk_files_nested() {

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected