()
| 709 | |
| 710 | #[test] |
| 711 | fn test_parse_session_start() { |
| 712 | let hook = make_hook(); |
| 713 | let input = br#"{"session_id": "oc-abc123", "source": "startup", "cwd": "/tmp/proj"}"#; |
| 714 | let event = hook.parse_event(HookType::SessionStart, input).unwrap(); |
| 715 | assert_eq!(event.session_id, "oc-abc123"); |
| 716 | assert_eq!(event.event_type, HookType::SessionStart); |
| 717 | } |
| 718 | |
| 719 | #[test] |
| 720 | fn test_parse_session_start_with_model() { |
nothing calls this directly
no test coverage detected