|
|
|
|
|
by mathgladiator
1671 days ago
|
|
I'm a stupid principal and I go for 100%... when I can. When I can't, I ponder. I see how my design can be aided by coverage and ask "Hey, I don't have coverage for this, why did I write it?" It's a worthwhile question. I wrote code, but it is hard to exercise easily... why did I write it? Don't get me wrong, there is a bunch of stupid shit to contend with (I'm looking at you MessageDigest AlgorithmNotFound) |
|
Edit: we may be speaking pass each other. I agree that your code should be testable, and if it isn’t, it’s a code smell worth investigating. This is separate from the point of should every error thrown be exercised and every getter verified, etc.. With unlimited time and for some parts of the code sure, 100% though leaves 0 wiggle room here.