()
| 676 | |
| 677 | #[test] |
| 678 | fn test_parse_session_end() { |
| 679 | let hook = make_hook(); |
| 680 | let input = br#"{"session_id": "test-123", "reason": "ended"}"#; |
| 681 | let event = hook.parse_event(HookType::SessionEnd, input).unwrap(); |
| 682 | assert_eq!(event.session_id, "test-123"); |
| 683 | assert_eq!(event.event_type, HookType::SessionEnd); |
| 684 | } |
| 685 | |
| 686 | // parse_event tests: user-prompt (TurnStart) |
| 687 |
nothing calls this directly
no test coverage detected