()
| 493 | |
| 494 | #[test] |
| 495 | fn test_parse_session_end() { |
| 496 | let hook = make_hook(); |
| 497 | let input = br#"{"sessionId": "abc-123", "reason": "shutdown"}"#; |
| 498 | let event = hook.parse_event(HookType::SessionEnd, input).unwrap(); |
| 499 | assert_eq!(event.session_id, "abc-123"); |
| 500 | assert_eq!(event.event_type, HookType::SessionEnd); |
| 501 | } |
| 502 | |
| 503 | #[test] |
| 504 | fn test_parse_user_prompt_submit() { |
nothing calls this directly
no test coverage detected