()
| 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() { |
nothing calls this directly
no test coverage detected