Skip to content

Why class CovLine initialize count = 1 #260

@cheneylz

Description

@cheneylz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions