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

Function test_remove_path_recursive

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

Source from the content-addressed store, hash-verified

978
979 #[test]
980 fn test_remove_path_recursive() {
981 let wc = Memory::new();
982 wc.add_file("dir/a.txt", b"");
983 wc.add_file("dir/sub/b.txt", b"");
984
985 wc.remove_path("dir", true).unwrap();
986 assert!(!wc.exists("dir"));
987 assert!(!wc.exists("dir/a.txt"));
988 assert!(!wc.exists("dir/sub"));
989 assert!(!wc.exists("dir/sub/b.txt"));
990 }
991
992 #[test]
993 fn test_rename_file() {

Callers

nothing calls this directly

Calls 3

add_fileMethod · 0.45
unwrapMethod · 0.45
remove_pathMethod · 0.45

Tested by

no test coverage detected