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