()
| 759 | |
| 760 | #[test] |
| 761 | fn test_parse_event_invalid_json() { |
| 762 | let hook = make_hook(); |
| 763 | let result = hook.parse_event(HookType::SessionStart, b"not json"); |
| 764 | assert!(result.is_err()); |
| 765 | let err = result.unwrap_err(); |
| 766 | assert!(matches!(err, AgentError::HookParseFailed { .. })); |
| 767 | } |
| 768 | |
| 769 | #[test] |
| 770 | fn test_parse_extra_fields_ignored() { |
nothing calls this directly
no test coverage detected