Re:5% of 666 Python repos had comma typo bugs (inc V8, Tenso...
by samhw on Friday January 07, 2022 @01:20PM
(#29842659)
I don't think anyone could disagree: you could never exceed 0% code coverage if your definition was recursive (i.e. included tests, tests-of-tests, tests-of-tests-of-tests, ...).
[ Parent
| on HN ]
Re:5% of 666 Python repos had comma typo bugs (inc V8, Tenso...
by Cpoll on Friday January 07, 2022 @01:30PM
(#29842814)
Only if you generate infinite tests, then your coverage approaches 0%. But 100% covered code + 0% covered tests = ~50% total coverage.
Also, the obvious solution is self-testing code. (Jokes aside, structures like code contracts attempt something like this).