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