Repository navigation
Fix line coverage of statements inside string interpolation and heredocs #9682
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
61e7053
Fix line coverage of statements inside string interpolation and heredocs
sferik 23e7904
Only uncover a line the lone interpolated statement marked itself
sferik efcfd21
Count a statement whose value holds statements of its own
sferik b8097c3
Keep a statement's coverage count on the statement's line
sferik 3c5d9d4
Give multi-line literals the line they start on
sferik 50150b4
Count line coverage on the line of a statement's first instruction
sferik f7cb395
Size line coverage past a heredoc that ends the file
sferik 16e0223
Give an undef statement the line of its undef keyword
sferik 84a62b7
Make each arm of a ternary a line event
sferik bb9bcfe
Run the MRI oneshot_lines coverage test
sferik 281bcb2
Give Coverage.line_stub an entry for every line of the file
sferik 9ad177e
Keep IRBuilder's line coverage state in a LineNumberInfo
sferik b22bd97
Use CRuby's helpers for node locations in the grammar
sferik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev
Previous commit
Use CRuby's helpers for node locations in the grammar
The grammar set where undef statements, list and hash literals and strings start, and unmarked the lone statement of an interpolation, inline. Those rules now read as CRuby's do, calling nd_set_first_loc, make_list, nd_set_loc and nd_unset_fl_newline, which RubyParserBase implements for our nodes. nd_set_first_loc was an empty stub until now, so the find and hash patterns that call it (Const(...) and Const[...]) now start at their constant, as in CRuby. Both parsers were regenerated with jay.
- Loading branch information
commit b22bd97d34460b25faeba1337d7351cd22d24ca7
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.