()
| 126 | |
| 127 | #[test] |
| 128 | fn test_parse_turn_end_stop() { |
| 129 | let hook = make_hook(); |
| 130 | let input = br#"{"session_id": "sess-3", "transcript_path": "/t.jsonl"}"#; |
| 131 | let event = hook.parse_event(HookType::TurnEnd, input).unwrap(); |
| 132 | |
| 133 | assert_eq!(event.session_id, "sess-3"); |
| 134 | assert_eq!(event.event_type, HookType::TurnEnd); |
| 135 | assert_eq!(event.transcript_path, Some(PathBuf::from("/t.jsonl"))); |
| 136 | } |
| 137 | |
| 138 | #[test] |
| 139 | fn test_parse_session_info_missing_session_id() { |
nothing calls this directly
no test coverage detected