Skip to content
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

fix: range parsing #125

Merged
merged 8 commits into from
Oct 5, 2020
Merged

fix: range parsing #125

merged 8 commits into from
Oct 5, 2020

Conversation

chingor13
Copy link
Contributor

@chingor13 chingor13 commented Oct 5, 2020

This change looks at the diff contents to calculate the start/end line numbers. We exclude "normal" lines which are the untouched lines in the diff to calculate the start/end line numbers.

Adjusts the expected test lines as they were invalid.

Fixes #124

@chingor13 chingor13 requested a review from a team October 5, 2020 17:14
@chingor13 chingor13 requested a review from a team as a code owner October 5, 2020 17:14
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 5, 2020
@chingor13 chingor13 marked this pull request as draft October 5, 2020 17:14
@codecov
Copy link

codecov bot commented Oct 5, 2020

Codecov Report

Merging #125 into master will decrease coverage by 0.54%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #125      +/-   ##
==========================================
- Coverage   91.96%   91.41%   -0.55%     
==========================================
  Files          25       25              
  Lines        2314     2248      -66     
  Branches      184      160      -24     
==========================================
- Hits         2128     2055      -73     
- Misses        185      192       +7     
  Partials        1        1              
Impacted Files Coverage Δ
...er/comment-handler/get-hunk-scope-handler/index.ts 100.00% <ø> (ø)
...-hunk-scope-handler/remote-patch-ranges-handler.ts 97.12% <100.00%> (-2.88%) ⬇️
...ment-handler/raw-patch-handler/raw-hunk-handler.ts 100.00% <100.00%> (ø)
src/github-handler/diff-utils.ts 100.00% <100.00%> (ø)
src/types/index.ts 98.37% <0.00%> (-1.63%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1526a40...9031ee1. Read the comment docs.

@chingor13 chingor13 marked this pull request as ready for review October 5, 2020 19:13
@chingor13 chingor13 merged commit 4993d62 into googleapis:master Oct 5, 2020
@chingor13 chingor13 deleted the diff-parsing branch October 5, 2020 20:49
gcf-merge-on-green bot pushed a commit that referenced this pull request Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

review: diff parsing for valid ranges is incorrect
2 participants