4 ms·
I feel unit test coverage is a better approach to this problem.
by bottled_poe 5y ago
I feel unit test coverage is a better approach to this problem.
- jimmaswell 5y agoA unit test covering code doesn't mean the code is actually used, and some code isn't feasible to cover in unit tests.
- p1necone 5y agoThis doesn't really help. I've found plenty of code before that isn't marked by the IDE/linters as unused because it's called by a unit test, but nothing else.
- long11l 5y agoWell atleast the code will be used then. Fingers crossed it already has a unit test, so once the dead code is remove the test can be too
- nxpnsv 5y agoIf I have tests for everything coverage is 100% regardless of whether the functions are used or not