()
| 613 | |
| 614 | #[test] |
| 615 | fn test_parse_session_end() { |
| 616 | let hook = make_hook(); |
| 617 | let input = br#"{"session_id": "cp-abc123", "reason": "user_exit"}"#; |
| 618 | let event = hook.parse_event(HookType::SessionEnd, input).unwrap(); |
| 619 | assert_eq!(event.session_id, "cp-abc123"); |
| 620 | assert_eq!(event.event_type, HookType::SessionEnd); |
| 621 | } |
| 622 | |
| 623 | #[test] |
| 624 | fn test_parse_session_end_with_reason() { |
nothing calls this directly
no test coverage detected