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