You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the function _sanitize_to_target_branch there is a return statement as follow
return"Successfully sanitized repo"+ (
f" to pull request branch\n\nrun 'git switch "f"{effective_target_branch}' to checkout the branch"ifself.create_pr_branchelse""
)
I 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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: