()
| 731 | |
| 732 | #[test] |
| 733 | fn test_parse_session_end() { |
| 734 | let hook = make_hook(); |
| 735 | let input = br#"{"session_id": "oc-abc123", "reason": "deleted"}"#; |
| 736 | let event = hook.parse_event(HookType::SessionEnd, input).unwrap(); |
| 737 | assert_eq!(event.session_id, "oc-abc123"); |
| 738 | assert_eq!(event.event_type, HookType::SessionEnd); |
| 739 | } |
| 740 | |
| 741 | // parse_event tests: user-prompt (TurnStart) |
| 742 |
nothing calls this directly
no test coverage detected