()
| 380 | |
| 381 | #[test] |
| 382 | fn unexpected_eof_with_expected() { |
| 383 | let file_id = FileId::new("test.php"); |
| 384 | let err = |
| 385 | ParseError::UnexpectedEndOfFile(Box::new([TokenKind::Semicolon]), file_id, pos(100)); |
| 386 | let msg = format_parse_error(&err); |
| 387 | assert_eq!(msg, "Syntax error: unexpected end of file, expected `;`"); |
| 388 | } |
| 389 | |
| 390 | #[test] |
| 391 | fn unexpected_eof_no_expected() { |
nothing calls this directly
no test coverage detected