()
| 864 | |
| 865 | #[test] |
| 866 | fn test_parse_session_start() { |
| 867 | let hook = make_hook(); |
| 868 | let input = |
| 869 | br#"{"session_id": "sess-123", "transcript_path": "/tmp/t.json", "source": "startup"}"#; |
| 870 | let event = hook.parse_event(HookType::SessionStart, input).unwrap(); |
| 871 | assert_eq!(event.session_id, "sess-123"); |
| 872 | assert_eq!(event.event_type, HookType::SessionStart); |
| 873 | assert!(event.transcript_path.is_some()); |
| 874 | } |
| 875 | |
| 876 | #[test] |
| 877 | fn test_parse_session_end() { |
nothing calls this directly
no test coverage detected