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

readme is confusing about branches vs statements #219

Open
dsilvasc opened this issue May 23, 2018 · 0 comments
Open

readme is confusing about branches vs statements #219

dsilvasc opened this issue May 23, 2018 · 0 comments

Comments

@dsilvasc
Copy link

In the "Statement Coverage" section, the readme says that in this example:

val status = if (age < 18) "No beer" else "Beer for you"

Running with an age value of 18 would yield 50% statement coverage.

Then in the "Branch Coverage" section, the readme gives this other example:

clientName = if (System.currentTimeMillis() < 0) "charlie" else "bobby"

and says that running it with a non-negative System.currentTimeMillis() yields 50% branch coverage.

From my perspective as a reader, those two examples say the same thing and they both say that Statement and Branch coverage measure conditional code execution branches.

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