()
| 524 | |
| 525 | #[test] |
| 526 | fn test_parse_event_invalid_json() { |
| 527 | let hook = make_hook(); |
| 528 | let result = hook.parse_event(HookType::TurnStart, b"not json"); |
| 529 | assert!(result.is_err()); |
| 530 | if let Err(AgentError::HookParseFailed { agent, .. }) = result { |
| 531 | assert_eq!(agent, "kilo"); |
| 532 | } |
| 533 | } |
| 534 | |
| 535 | #[test] |
| 536 | fn test_parse_event_missing_session_id() { |
nothing calls this directly
no test coverage detected