()
| 115 | |
| 116 | #[test] |
| 117 | fn test_parse_session_end() { |
| 118 | let hook = make_hook(); |
| 119 | let input = br#"{"session_id": "sess-2"}"#; |
| 120 | let event = hook.parse_event(HookType::SessionEnd, input).unwrap(); |
| 121 | |
| 122 | assert_eq!(event.session_id, "sess-2"); |
| 123 | assert_eq!(event.event_type, HookType::SessionEnd); |
| 124 | assert!(event.transcript_path.is_none()); |
| 125 | } |
| 126 | |
| 127 | #[test] |
| 128 | fn test_parse_turn_end_stop() { |
nothing calls this directly
no test coverage detected