Skip to content

else if statements are not measured as lines #603

Open
@cgewecke

Description

@cgewecke

(#430, #502: relevant for --matrix option)

e.g

if (a > 3)
  x = 5;
} else if (a <= 1) { // Not a line!?
  y = 7;
}

This is esp. a problem for mutation testing; changes to the second condition won't have a list of tests to run.

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