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:652–656  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

650 /// Test CleanupGuard disable.
651 #[test]
652 fn test_cleanup_guard_disable() {
653 let guard = CleanupGuard::new(PathBuf::from("/tmp/test"));
654 guard.disable();
655 // Can't check is_disabled() after disable() since it consumes self
656 }
657
658 /// Test CleanupGuard actually cleans up on drop.
659 #[test]

Callers

nothing calls this directly

Calls 1

disableMethod · 0.80

Tested by

no test coverage detected