()
| 1039 | |
| 1040 | #[test] |
| 1041 | fn test_is_installed() { |
| 1042 | let dir = tempfile::tempdir().unwrap(); |
| 1043 | let hook = make_hook(); |
| 1044 | |
| 1045 | assert!(!hook.is_installed(dir.path())); |
| 1046 | |
| 1047 | hook.install(dir.path()).unwrap(); |
| 1048 | |
| 1049 | assert!(hook.is_installed(dir.path())); |
| 1050 | } |
| 1051 | |
| 1052 | #[test] |
| 1053 | fn test_uninstall_removes_atomic_hooks() { |