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

Function test_remove_file

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

Source from the content-addressed store, hash-verified

468
469#[test]
470fn test_remove_file() {
471 let (dir, fs) = temp_fs();
472 std::fs::write(dir.path().join("file.txt"), "content").unwrap();
473
474 fs.remove_path("file.txt", false).unwrap();
475 assert!(!dir.path().join("file.txt").exists());
476}
477
478#[test]
479fn test_remove_empty_directory() {

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected