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

Why class CovLine initialize count = 1 #260

Open
cheneylz opened this issue Dec 3, 2024 · 0 comments
Open

Why class CovLine initialize count = 1 #260

cheneylz opened this issue Dec 3, 2024 · 0 comments

Comments

@cheneylz
Copy link

cheneylz commented Dec 3, 2024

From class CovLine

// we start with all lines having been executed, and work
// backwards zeroing out lines based on V8 output.
    this.count = 1

This will cause all count = 1,even though code not covered;

================================

Maybe in this part set count = 0?

if (startCol <= line.startCol && endCol >= line.endCol && !line.ignore) {

However, if there is no uncovered data in the range(block.ranges), the original count=1 will not be set to 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant