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

Function test_remove_file

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

Source from the content-addressed store, hash-verified

446
447#[test]
448fn test_remove_file() {
449 let (dir, fs) = temp_fs();
450 std::fs::write(dir.path().join("file.txt"), "content").unwrap();
451
452 fs.remove_path("file.txt", false).unwrap();
453 assert!(!dir.path().join("file.txt").exists());
454}
455
456#[test]
457fn test_remove_empty_directory() {

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