One-line update is not being recognized
lizhangyuh opened this issue · comments
undercover/lib/undercover/result.rb
Line 16 in a5a26c1
I came across an issue where, if I update just one line block in a file, the first_line
and last_line
of the Result
are the same, and the @coverage
becomes an empty array.
Is this intentional? If so, could you please explain the reasoning behind it? Thanks!
Hi @lizhangyuh! Thank you for submitting the issue. Looks wrong and thus I'll try to reproduce in a test case and fix. If you'd be keen to submit a PR that would be great too.
Hi @lizhangyuh! Thank you for submitting the issue. Looks wrong and thus I'll try to reproduce in a test case and fix. If you'd be keen to submit a PR that would be great too.
Thanks for your reply. I will submit a PR for this.