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

Function test_deeply_nested_path

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

Source from the content-addressed store, hash-verified

1209
1210 #[test]
1211 fn test_deeply_nested_path() {
1212 let wc = Memory::new();
1213 let deep_path = "a/b/c/d/e/f/g/h/i/j/file.txt";
1214 wc.add_file(deep_path, b"deep");
1215
1216 assert!(wc.exists(deep_path));
1217 assert!(wc.is_directory("a/b/c/d/e/f/g/h/i/j"));
1218 }
1219
1220 #[test]
1221 fn test_get_contents_of_directory_returns_none() {

Callers

nothing calls this directly

Calls 1

add_fileMethod · 0.45

Tested by

no test coverage detected