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

Function test_remove_recursive

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

Source from the content-addressed store, hash-verified

474
475#[test]
476fn test_remove_recursive() {
477 let (dir, fs) = temp_fs();
478 std::fs::create_dir_all(dir.path().join("a/b/c")).unwrap();
479 std::fs::write(dir.path().join("a/b/c/file.txt"), "").unwrap();
480 std::fs::write(dir.path().join("a/b/other.txt"), "").unwrap();
481
482 fs.remove_path("a", true).unwrap();
483 assert!(!dir.path().join("a").exists());
484}
485
486#[test]
487fn test_remove_not_found() {

Callers

nothing calls this directly

Calls 5

temp_fsFunction · 0.85
writeFunction · 0.85
unwrapMethod · 0.45
pathMethod · 0.45
remove_pathMethod · 0.45

Tested by

no test coverage detected