()
| 643 | |
| 644 | #[test] |
| 645 | fn test_parse_invalid_json() { |
| 646 | let hook = make_hook(); |
| 647 | let err = hook |
| 648 | .parse_event(HookType::TurnEnd, b"not-json") |
| 649 | .unwrap_err(); |
| 650 | assert!(matches!(err, AgentError::HookParseFailed { .. })); |
| 651 | } |
| 652 | |
| 653 | #[test] |
| 654 | fn test_missing_session_id_fallback() { |
nothing calls this directly
no test coverage detected