(source: &str)
| 628 | } |
| 629 | |
| 630 | fn parse_fstring_error(source: &str) -> InterpolatedStringErrorType { |
| 631 | parse_suite(source) |
| 632 | .map_err(|e| match e.error { |
| 633 | ParseErrorType::Lexical(LexicalErrorType::FStringError(e)) => e, |
| 634 | ParseErrorType::FStringError(e) => e, |
| 635 | e => unreachable!("Expected FStringError: {:?}", e), |
| 636 | }) |
| 637 | .expect_err("Expected error") |
| 638 | } |
| 639 | |
| 640 | #[test] |
| 641 | fn test_parse_invalid_fstring() { |
nothing calls this directly
no test coverage detected