()
| 304 | |
| 305 | #[test] |
| 306 | fn test_uninstall_removes_section() { |
| 307 | let dir = TempDir::new().unwrap(); |
| 308 | let path = dir.path().join("post-commit"); |
| 309 | install_single_hook(&path, "post-commit").unwrap(); |
| 310 | assert!(remove_atomic_section(&path).unwrap()); |
| 311 | // File should be deleted (only had shebang + atomic section) |
| 312 | assert!(!path.exists()); |
| 313 | } |
| 314 | |
| 315 | #[test] |
| 316 | fn test_uninstall_preserves_other_content() { |
nothing calls this directly
no test coverage detected