()
| 186 | |
| 187 | #[test] |
| 188 | fn test_process_console_events_exception() { |
| 189 | let events = vec![json!({ |
| 190 | "method": "Runtime.exceptionThrown", |
| 191 | "params": { |
| 192 | "exceptionDetails": { |
| 193 | "text": "TypeError", |
| 194 | "exception": {"description": "Cannot read property 'x' of null"} |
| 195 | }, |
| 196 | "timestamp": 2000.0 |
| 197 | } |
| 198 | })]; |
| 199 | let out = process_console_events(&events, &[]); |
| 200 | assert_eq!(out.len(), 1); |
| 201 | assert_eq!(out[0]["type"], "exception"); |
| 202 | assert_eq!(out[0]["text"], "Cannot read property 'x' of null"); |
| 203 | } |
| 204 | |
| 205 | #[test] |
| 206 | fn test_process_console_events_type_filter_excludes() { |
nothing calls this directly
no test coverage detected