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

Work up example with this silly Python example #357

Open
abingham opened this issue Feb 26, 2018 · 0 comments
Open

Work up example with this silly Python example #357

abingham opened this issue Feb 26, 2018 · 0 comments
Labels
good first issue Start here if you want to lend a hand

Comments

@abingham
Copy link
Contributor

From twitter, it would be neat to show what CR can do with an example like this:

# In Python it's easy to show hilarious exceptions in code with 100% line 
# coverage that doesn't have 100% path coverage. See:

def f(x):
  if x > 0:
    result = "larger"
  elif x < 0:
    result = "smaller"
  return result

# Testing with x=1 and x=-1 gives 100% line coverage. https://t.co/aLSD9KrtSs
@abingham abingham added the good first issue Start here if you want to lend a hand label May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Start here if you want to lend a hand
Projects
None yet
Development

No branches or pull requests

1 participant