()
| 849 | |
| 850 | #[test] |
| 851 | fn test_parse_session_end() { |
| 852 | let hook = make_hook(); |
| 853 | let input = br#"{"session_id": "oc-abc123", "reason": "deleted"}"#; |
| 854 | let event = hook.parse_event(HookType::SessionEnd, input).unwrap(); |
| 855 | assert_eq!(event.session_id, "oc-abc123"); |
| 856 | assert_eq!(event.event_type, HookType::SessionEnd); |
| 857 | } |
| 858 | |
| 859 | // parse_event tests: user-prompt (TurnStart) |
| 860 |
nothing calls this directly
no test coverage detected