Closed jtobin closed 5 years ago
I'll leave this up for a bit before merging it in, just in case anyone has any comments on the merits of this practice.
I think it's fine. 100% coverage can be a bit of a false idol -- it doesn't mean what it sounds like it should. But it sure makes the reports pretty ...
Agree it's fine. It's like saying "we acknowledge this exists, and have test-covered it with our minds and souls".
We should probably make it mandatory to explain in a comment why that line is unreachable though. The explanation from your earlier email will suffice.
@Fang- Yeah, good point. Basically a proof of sorts that the code can't be reached. Will add.
The two throws ignored in this commit should never be reachable; if they were, they would indicate the presence of a serious bug. So if we want 100% Coverage™, I believe we need to ignore them.