()
| 564 | |
| 565 | #[test] |
| 566 | fn test_parse_agent_stop() { |
| 567 | let hook = make_hook(); |
| 568 | let input = br#"{ |
| 569 | "session_id": "abc123-kilo", |
| 570 | "cwd": "/tmp/project", |
| 571 | "timestamp": "2026-07-15T12:01:00Z" |
| 572 | }"#; |
| 573 | let event = hook.parse_event(HookType::TurnEnd, input).unwrap(); |
| 574 | assert_eq!(event.session_id, "abc123-kilo"); |
| 575 | assert_eq!(event.event_type, HookType::TurnEnd); |
| 576 | } |
| 577 | |
| 578 | #[test] |
| 579 | fn test_parse_pre_tool_use() { |
nothing calls this directly
no test coverage detected