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

Function test_remove_path_empty_directory

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

Source from the content-addressed store, hash-verified

960
961 #[test]
962 fn test_remove_path_empty_directory() {
963 let wc = Memory::new();
964 wc.add_directory("empty");
965
966 wc.remove_path("empty", false).unwrap();
967 assert!(!wc.exists("empty"));
968 }
969
970 #[test]
971 fn test_remove_path_non_empty_directory_error() {

Callers

nothing calls this directly

Calls 3

add_directoryMethod · 0.45
unwrapMethod · 0.45
remove_pathMethod · 0.45

Tested by

no test coverage detected