()
| 428 | |
| 429 | #[test] |
| 430 | fn syntax_error_unrecognized_char() { |
| 431 | let file_id = FileId::new("test.php"); |
| 432 | let err = ParseError::SyntaxError(SyntaxError::UnrecognizedToken(file_id, b'@', pos(10))); |
| 433 | let msg = format_parse_error(&err); |
| 434 | assert_eq!(msg, "Syntax error: unrecognized character `@`"); |
| 435 | } |
| 436 | |
| 437 | #[test] |
| 438 | fn syntax_error_eof() { |
nothing calls this directly
no test coverage detected