()
| 898 | |
| 899 | #[test] |
| 900 | fn test_parse_session_start() { |
| 901 | let hook = make_hook(); |
| 902 | let input = |
| 903 | br#"{"session_id": "sess-123", "transcript_path": "/tmp/t.json", "source": "startup"}"#; |
| 904 | let event = hook.parse_event(HookType::SessionStart, input).unwrap(); |
| 905 | assert_eq!(event.session_id, "sess-123"); |
| 906 | assert_eq!(event.event_type, HookType::SessionStart); |
| 907 | assert!(event.transcript_path.is_some()); |
| 908 | } |
| 909 | |
| 910 | #[test] |
| 911 | fn test_parse_session_end() { |
nothing calls this directly
no test coverage detected