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

Function test_walk_files_single_file

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

Source from the content-addressed store, hash-verified

1238
1239 #[test]
1240 fn test_walk_files_single_file() {
1241 let wc = Memory::new();
1242 wc.add_file("test.txt", b"content");
1243
1244 let files = wc.walk_files("").unwrap();
1245
1246 assert_eq!(files.len(), 1);
1247 assert_eq!(files[0], "test.txt");
1248 }
1249
1250 #[test]
1251 fn test_walk_files_multiple_files_sorted() {

Callers

nothing calls this directly

Calls 3

add_fileMethod · 0.45
unwrapMethod · 0.45
walk_filesMethod · 0.45

Tested by

no test coverage detected