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

Function test_cleanup_guard_new

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

Source from the content-addressed store, hash-verified

802 /// Test CleanupGuard creation.
803 #[test]
804 fn test_cleanup_guard_new() {
805 let guard = CleanupGuard::new(PathBuf::from("/tmp/test"));
806 assert!(!guard.is_disabled());
807 assert_eq!(guard.path(), Path::new("/tmp/test"));
808 }
809
810 /// Test CleanupGuard disable.
811 #[test]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected