-
Notifications
You must be signed in to change notification settings - Fork 864
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Catch ParserException in IRFactory #1519
Conversation
Thanks -- this looks really nice and I'm glad you did it. I'm trying to also improve code coverage across the board, and from running "./gradlew testCodeCoverageReport" I can see that there are a few spots in IRFactory that we aren't testing. Specifically, there's some new exception-handling code around line 129 of IRFactory.java that doesn't seem to be hit by any of the tests. Would it be possible for you to come up with some sort of test code that would help us hit that spot? Specifically, from looking at the coverage report, the part below in "transformTree" is new code, it seems pretty important, and it seems to be missing coverage.
Thanks! |
Well there might be more for me to investigate, then, since I just replaced
those non-covered lines with an AssertionError and the tests failed. So
that tells me that the code coverage report could itself use some code
coverage ;-)
Given that, I'm happy to merge this as long as it doesn't conflict with
your other big PR for IRFactory!
…On Mon, Jul 15, 2024 at 3:29 PM tuchida ***@***.***> wrote:
@gbrail <https://github.com/gbrail> I added test to see if runtimeError
was called ref. 6480350
<6480350>.
However, the result of ./gradlew testCodeCoverageReport did not change.
What should I do?
—
Reply to this email directly, view it on GitHub
<#1519 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAD7I23VLFLIQNU5ICVQQCLZMREOPAVCNFSM6AAAAABK23B2RWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRZGU2DGNJXGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi @tuchida while rummaging though the backlog of issues, I ran into the following issues of which I wonder if this PR either resolved them or at least moves the needle somewhat: |
This is great and thanks for doing it! |
Closes #967
Errors in
IRFactory
have the following issues.Parser$ParserException
not caught.IRFactory
is re-parsing ASTs that have already been parsed byParser
, but the error thrown at that time was not handled properly.So, I have fixed 0cd0e2b for 1. and 436d3f6 for 2.