()
| 354 | |
| 355 | #[test] |
| 356 | fn test_command_pattern_not_bash() { |
| 357 | // Command pattern should only apply to Bash tool |
| 358 | let matcher = HookMatcher::command("echo"); |
| 359 | |
| 360 | let read_event = make_pre_tool_event("s1", "Read", serde_json::json!({"path": "echo.txt"})); |
| 361 | |
| 362 | assert!(!matcher.matches(&read_event)); |
| 363 | } |
| 364 | |
| 365 | #[test] |
| 366 | fn test_builder_pattern() { |
nothing calls this directly
no test coverage detected