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

Function test_walk_files_nested

atomic-core/src/output/memory.rs:1266–1280  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1264
1265 #[test]
1266 fn test_walk_files_nested() {
1267 let wc = Memory::new();
1268 wc.add_file("root.txt", b"");
1269 wc.add_file("src/main.rs", b"");
1270 wc.add_file("src/lib.rs", b"");
1271 wc.add_file("src/utils/helper.rs", b"");
1272
1273 let files = wc.walk_files("").unwrap();
1274
1275 assert_eq!(files.len(), 4);
1276 assert!(files.contains(&"root.txt".to_string()));
1277 assert!(files.contains(&"src/main.rs".to_string()));
1278 assert!(files.contains(&"src/lib.rs".to_string()));
1279 assert!(files.contains(&"src/utils/helper.rs".to_string()));
1280 }
1281
1282 #[test]
1283 fn test_walk_files_with_prefix() {

Callers

nothing calls this directly

Calls 3

add_fileMethod · 0.45
unwrapMethod · 0.45
walk_filesMethod · 0.45

Tested by

no test coverage detected