Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix: Update of one-line block is ignored #207

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

lizhangyuh
Copy link
Contributor

What I fixed?

issue: #204

When I update a one-line block, the first_line and last_line of the Result object are the same, and the @coverage becomes an empty array, resulting in uncovered? returning nil (which means covered).

How I fixed?

Add an assessment for a one-line block. I also added a test for this scenario.

@grodowski grodowski merged commit 1320022 into grodowski:master Jan 8, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants