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