()
| 443 | |
| 444 | #[test] |
| 445 | fn test_hook_with_matcher() { |
| 446 | let hook = Hook::new("test-hook", HookEventType::PreToolUse) |
| 447 | .with_matcher(HookMatcher::tool("Bash")); |
| 448 | |
| 449 | assert!(hook.matcher.is_some()); |
| 450 | assert_eq!(hook.matcher.unwrap().tool, Some("Bash".to_string())); |
| 451 | } |
| 452 | |
| 453 | #[test] |
| 454 | fn test_hook_matches_event_type() { |
nothing calls this directly
no test coverage detected