()
| 764 | |
| 765 | #[test] |
| 766 | fn test_parse_session_end() { |
| 767 | let hook = make_hook(); |
| 768 | let input = br#"{"session_id": "oc-abc123", "reason": "deleted"}"#; |
| 769 | let event = hook.parse_event(HookType::SessionEnd, input).unwrap(); |
| 770 | assert_eq!(event.session_id, "oc-abc123"); |
| 771 | assert_eq!(event.event_type, HookType::SessionEnd); |
| 772 | } |
| 773 | |
| 774 | // parse_event tests: user-prompt (TurnStart) |
| 775 |
nothing calls this directly
no test coverage detected