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