()
| 436 | |
| 437 | #[test] |
| 438 | fn syntax_error_eof() { |
| 439 | let file_id = FileId::new("test.php"); |
| 440 | let err = ParseError::SyntaxError(SyntaxError::UnexpectedEndOfFile(file_id, pos(50))); |
| 441 | let msg = format_parse_error(&err); |
| 442 | assert_eq!(msg, "Syntax error: unexpected end of file"); |
| 443 | } |
| 444 | |
| 445 | #[test] |
| 446 | fn non_graphic_byte() { |
nothing calls this directly
no test coverage detected