()
| 531 | |
| 532 | #[test] |
| 533 | fn test_parse_event_missing_session_id() { |
| 534 | let hook = make_hook(); |
| 535 | let input = br#"{"cwd": "/tmp"}"#; |
| 536 | let event = hook.parse_event(HookType::TurnStart, input).unwrap(); |
| 537 | // Should generate a fallback session ID |
| 538 | assert!(event.session_id.starts_with("kilo-")); |
| 539 | } |
| 540 | |
| 541 | #[test] |
| 542 | fn test_parse_event_empty_session_id() { |
nothing calls this directly
no test coverage detected