grodowski / undercover

undercover warns about methods, classes and blocks that were changed without tests, to help you easily find untested code and reduce the number of bugs. It does so by analysing data from git diffs, code structure and SimpleCov coverage reports

Home Page:https://undercover-ci.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

One-line update is not being recognized

lizhangyuh opened this issue · comments

ln > first_line && ln < last_line

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.