(source: &str)
| 645 | } |
| 646 | |
| 647 | fn parse_fstring_error(source: &str) -> InterpolatedStringErrorType { |
| 648 | parse_suite(source) |
| 649 | .map_err(|e| match e.error { |
| 650 | ParseErrorType::Lexical(LexicalErrorType::FStringError(e)) => e, |
| 651 | ParseErrorType::FStringError(e) => e, |
| 652 | e => unreachable!("Expected FStringError: {:?}", e), |
| 653 | }) |
| 654 | .expect_err("Expected error") |
| 655 | } |
| 656 | |
| 657 | #[test] |
| 658 | fn test_parse_invalid_fstring() { |
nothing calls this directly
no test coverage detected