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