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