Open tohanss opened 3 years ago
If codecov doesnt complain this is probably not worth testing
Codecov says nothing about test quality. It only tells you if a test traverses a given branch or statement. You can have 100% coverage and 0 assertions. I.e. you can have 100% coverage yet no meaningful tests.
In short: code coverage can only ever tell you what you're definitely not testing. It can't tell you if you're testing something in a meaningful way. Never rely on it for the latter.
In the function
_sanitize_to_target_branch
there is a return statement as followI had accidentaly removed the if statement and the tests still passed, meaning there is no check for if the text contains "pull request" and so on when we run with the
create_pr_branch
flag.If codecov doesnt complain this is probably not worth testing