Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
bottled_poe
· 5y ago · 0 comments
I feel unit test coverage is a better approach to this problem.
Comments
[–]
p1necone
5y ago
This 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.
[–]
jimmaswell
5y ago
A unit test covering code doesn't mean the code is actually used, and some code isn't feasible to cover in unit tests.
[–]
long11l
5y ago
Well 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 ago
If I have tests for everything coverage is 100% regardless of whether the functions are used or not