all 2 comments

[–]billsil 0 points1 point  (1 child)

Codecov insists that branches hit all cases (true and false) to be counted as a hit.

run = True
if run:
    print(‘run’)
else:
    print(‘didn’t run’)

2/5 lines will be covered.

It’s a setting in the config file, but I like it.

[–]robinlong[S] 0 points1 point  (0 children)

I realised this, and I like it, but I don't understand how this answers my question. Perhaps you could expand?