()
| 555 | |
| 556 | #[test] |
| 557 | fn test_parse_event_missing_session_id() { |
| 558 | let hook = make_hook(); |
| 559 | let input = br#"{"cwd": "/tmp"}"#; |
| 560 | let event = hook.parse_event(HookType::TurnStart, input).unwrap(); |
| 561 | // Should generate a fallback session ID |
| 562 | assert!(event.session_id.starts_with("kiro-")); |
| 563 | } |
| 564 | |
| 565 | // --- parse_event: empty session_id generates fallback --- |
| 566 |
nothing calls this directly
no test coverage detected