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

Function test_remove_path_file

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

Source from the content-addressed store, hash-verified

944
945 #[test]
946 fn test_remove_path_file() {
947 let wc = Memory::new();
948 wc.add_file("test.txt", b"");
949
950 wc.remove_path("test.txt", false).unwrap();
951 assert!(!wc.exists("test.txt"));
952 }
953
954 #[test]
955 fn test_remove_path_not_found() {

Callers

nothing calls this directly

Calls 3

add_fileMethod · 0.45
unwrapMethod · 0.45
remove_pathMethod · 0.45

Tested by

no test coverage detected