()
| 388 | |
| 389 | #[test] |
| 390 | fn test_path_with_alternative_field() { |
| 391 | // Test that "path" field also works (not just "file_path") |
| 392 | let matcher = HookMatcher::path("*.txt"); |
| 393 | |
| 394 | let event = make_pre_tool_event("s1", "Read", serde_json::json!({"path": "readme.txt"})); |
| 395 | |
| 396 | assert!(matcher.matches(&event)); |
| 397 | } |
| 398 | |
| 399 | fn make_skill_load_event(skill_name: &str) -> HookEvent { |
| 400 | HookEvent::SkillLoad(crate::hooks::events::SkillLoadEvent { |
nothing calls this directly
no test coverage detected