forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed as not planned
Labels
area-testinginfo-neededIssue requires more information from posterIssue requires more information from postertriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
Description
Testing #24160
I added some always false conditionals and am confused by the numbers being listed for coverage. Here's the code:
def increment(x):
"""Increment x by 1, but not above 10."""
return x + 1
def decrement(x):
"""Decrement x by 1, but not below 0."""
if False:
return x - 1
if False:
return x - 1
if False:
return x - 1
if False:
return x - 1
if False:
return x - 1
if False:
return x - 1
if False:
return x - 1
return 0This shows 100% coverage with zero branches
I know the code in these conditionals isn't reachable but these numbers seem misleading
Metadata
Metadata
Assignees
Labels
area-testinginfo-neededIssue requires more information from posterIssue requires more information from postertriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
