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