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