()
| 468 | |
| 469 | #[test] |
| 470 | fn test_parse_session_end() { |
| 471 | let hook = make_hook(); |
| 472 | let input = br#"{ |
| 473 | "session_id": "rapid-wildflower-4475", |
| 474 | "cwd": "/Users/dev/hello-world", |
| 475 | "turn_number": 3 |
| 476 | }"#; |
| 477 | let event = hook.parse_event(HookType::SessionEnd, input).unwrap(); |
| 478 | assert_eq!(event.session_id, "rapid-wildflower-4475"); |
| 479 | assert_eq!(event.event_type, HookType::SessionEnd); |
| 480 | } |
| 481 | |
| 482 | // --- parse_event: turn-start carries intent_title as prompt --- |
| 483 |
nothing calls this directly
no test coverage detected