()
| 929 | |
| 930 | #[test] |
| 931 | fn test_parse_extra_fields_ignored() { |
| 932 | let hook = make_hook(); |
| 933 | let input = br#"{"taskId": "t1", "unknown_field": 42, "another": "value"}"#; |
| 934 | let event = hook.parse_event(HookType::SessionStart, input).unwrap(); |
| 935 | assert_eq!(event.session_id, "t1"); |
| 936 | } |
| 937 | |
| 938 | #[test] |
| 939 | fn test_parse_minimal_input() { |
nothing calls this directly
no test coverage detected