()
| 624 | |
| 625 | #[test] |
| 626 | fn test_parse_post_tool_use() { |
| 627 | let hook = make_hook(); |
| 628 | let input = br#"{ |
| 629 | "session_id": "kiro-20260521-153000", |
| 630 | "tool_name": "read", |
| 631 | "tool_call_id": "tc_456", |
| 632 | "cwd": "/path/to/project" |
| 633 | }"#; |
| 634 | let event = hook.parse_event(HookType::PostToolUse, input).unwrap(); |
| 635 | assert_eq!(event.session_id, "kiro-20260521-153000"); |
| 636 | assert_eq!(event.event_type, HookType::PostToolUse); |
| 637 | assert_eq!(event.tool_name.as_deref(), Some("read")); |
| 638 | assert_eq!(event.tool_use_id.as_deref(), Some("tc_456")); |
| 639 | } |
| 640 | |
| 641 | // --- parse_event: post-task (PostToolUse) --- |
| 642 |
nothing calls this directly
no test coverage detected