()
| 642 | |
| 643 | #[test] |
| 644 | fn test_parse_post_task() { |
| 645 | let hook = make_hook(); |
| 646 | let input = br#"{ |
| 647 | "session_id": "kiro-20260521-153000", |
| 648 | "tool_name": "spec-task", |
| 649 | "cwd": "/path/to/project" |
| 650 | }"#; |
| 651 | // post-task maps to PostToolUse via verb_to_hook_type |
| 652 | let event = hook.parse_event(HookType::PostToolUse, input).unwrap(); |
| 653 | assert_eq!(event.session_id, "kiro-20260521-153000"); |
| 654 | assert_eq!(event.event_type, HookType::PostToolUse); |
| 655 | assert_eq!(event.tool_name.as_deref(), Some("spec-task")); |
| 656 | } |
| 657 | |
| 658 | // --- detect_presence --- |
| 659 |
nothing calls this directly
no test coverage detected