()
| 283 | |
| 284 | #[test] |
| 285 | fn test_uninstall_removes_section() { |
| 286 | let dir = TempDir::new().unwrap(); |
| 287 | let path = dir.path().join("post-commit"); |
| 288 | install_single_hook(&path, "post-commit").unwrap(); |
| 289 | assert!(remove_atomic_section(&path).unwrap()); |
| 290 | // File should be deleted (only had shebang + atomic section) |
| 291 | assert!(!path.exists()); |
| 292 | } |
| 293 | |
| 294 | #[test] |
| 295 | fn test_uninstall_preserves_other_content() { |
nothing calls this directly
no test coverage detected