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

Function test_uninstall_removes_everything

atomic-agent/src/hooks/agy.rs:1658–1674  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1656
1657 #[test]
1658 fn test_uninstall_removes_everything() {
1659 let config = temp_config();
1660
1661 AgyHook::install_to(config.path(), false).unwrap();
1662 assert!(AgyHook::is_installed_in(config.path()));
1663
1664 AgyHook::uninstall_from(config.path()).unwrap();
1665 assert!(!AgyHook::is_installed_in(config.path()));
1666
1667 // hooks.json, plugin.json, skills, the plugin dir, and the registry
1668 // are all gone.
1669 assert!(!config.path().join("plugins/atomic/hooks.json").exists());
1670 assert!(!config.path().join("plugins/atomic/plugin.json").exists());
1671 assert!(!config.path().join("plugins/atomic/skills").exists());
1672 assert!(!config.path().join("plugins/atomic").exists());
1673 assert!(!config.path().join("import_manifest.json").exists());
1674 }
1675
1676 #[test]
1677 fn test_install_preserves_other_groups() {

Callers

nothing calls this directly

Calls 3

temp_configFunction · 0.85
unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected