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

else if statements are not measured as lines #603

Open
cgewecke opened this issue Jan 13, 2021 · 0 comments
Open

else if statements are not measured as lines #603

cgewecke opened this issue Jan 13, 2021 · 0 comments

Comments

@cgewecke
Copy link
Member

(#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.

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