()
| 542 | |
| 543 | #[test] |
| 544 | fn test_parse_event_invalid_json() { |
| 545 | let hook = make_hook(); |
| 546 | let result = hook.parse_event(HookType::TurnStart, b"not json"); |
| 547 | assert!(result.is_err()); |
| 548 | assert!(matches!( |
| 549 | result.unwrap_err(), |
| 550 | AgentError::HookParseFailed { .. } |
| 551 | )); |
| 552 | } |
| 553 | |
| 554 | // --- parse_event: missing session_id generates fallback --- |
| 555 |
nothing calls this directly
no test coverage detected