()
| 909 | |
| 910 | #[test] |
| 911 | fn test_parse_session_end() { |
| 912 | let hook = make_hook(); |
| 913 | let input = |
| 914 | br#"{"session_id": "sess-123", "transcript_path": "/tmp/t.json", "reason": "exit"}"#; |
| 915 | let event = hook.parse_event(HookType::SessionEnd, input).unwrap(); |
| 916 | assert_eq!(event.session_id, "sess-123"); |
| 917 | assert_eq!(event.event_type, HookType::SessionEnd); |
| 918 | } |
| 919 | |
| 920 | #[test] |
| 921 | fn test_parse_before_agent_turn_start() { |
nothing calls this directly
no test coverage detected