()
| 875 | |
| 876 | #[test] |
| 877 | fn test_parse_session_end() { |
| 878 | let hook = make_hook(); |
| 879 | let input = |
| 880 | br#"{"session_id": "sess-123", "transcript_path": "/tmp/t.json", "reason": "exit"}"#; |
| 881 | let event = hook.parse_event(HookType::SessionEnd, input).unwrap(); |
| 882 | assert_eq!(event.session_id, "sess-123"); |
| 883 | assert_eq!(event.event_type, HookType::SessionEnd); |
| 884 | } |
| 885 | |
| 886 | #[test] |
| 887 | fn test_parse_before_agent_turn_start() { |
nothing calls this directly
no test coverage detected