()
| 494 | |
| 495 | #[test] |
| 496 | fn test_parse_event_invalid_json() { |
| 497 | let hook = make_hook(); |
| 498 | let result = hook.parse_event(HookType::SessionStart, b"not json"); |
| 499 | assert!(result.is_err()); |
| 500 | assert!(matches!( |
| 501 | result.unwrap_err(), |
| 502 | AgentError::HookParseFailed { .. } |
| 503 | )); |
| 504 | } |
| 505 | |
| 506 | // --- parse_event: missing session_id --- |
| 507 |
nothing calls this directly
no test coverage detected