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

Function test_cleanup_guard_disable

atomic-cli/src/commands/clone/helpers.rs:812–816  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

810 /// Test CleanupGuard disable.
811 #[test]
812 fn test_cleanup_guard_disable() {
813 let guard = CleanupGuard::new(PathBuf::from("/tmp/test"));
814 guard.disable();
815 // Can't check is_disabled() after disable() since it consumes self
816 }
817
818 /// Test CleanupGuard actually cleans up on drop.
819 #[test]

Callers

nothing calls this directly

Calls 1

disableMethod · 0.80

Tested by

no test coverage detected