()
| 562 | |
| 563 | #[test] |
| 564 | fn test_parse_session_end() { |
| 565 | let hook = make_hook(); |
| 566 | let input = br#"{ |
| 567 | "session_id": "rapid-wildflower-4475", |
| 568 | "cwd": "/Users/dev/hello-world", |
| 569 | "turn_number": 3 |
| 570 | }"#; |
| 571 | let event = hook.parse_event(HookType::SessionEnd, input).unwrap(); |
| 572 | assert_eq!(event.session_id, "rapid-wildflower-4475"); |
| 573 | assert_eq!(event.event_type, HookType::SessionEnd); |
| 574 | } |
| 575 | |
| 576 | // --- parse_event: turn-start carries intent_title as prompt --- |
| 577 |
nothing calls this directly
no test coverage detected