(source: &str)
| 740 | } |
| 741 | |
| 742 | fn parse_tstring_error(source: &str) -> InterpolatedStringErrorType { |
| 743 | parse_suite(source) |
| 744 | .map_err(|e| match e.error { |
| 745 | ParseErrorType::Lexical(LexicalErrorType::TStringError(e)) => e, |
| 746 | ParseErrorType::TStringError(e) => e, |
| 747 | e => unreachable!("Expected TStringError: {:?}", e), |
| 748 | }) |
| 749 | .expect_err("Expected error") |
| 750 | } |
| 751 | |
| 752 | #[test] |
| 753 | fn test_parse_invalid_tstring() { |
nothing calls this directly
no test coverage detected