4 ms·
Test coverage is a pain, but if you don't cover your exceptional cases the chances are good that your best bugs will be hiding there. For example, some HTTP cl
by jrabone 14y ago
Test coverage is a pain, but if you don't cover your exceptional cases the chances are good that your best bugs will be hiding there.
For example, some HTTP client implementations require you to consume any HTTP entity to avoid leaking connections and/or exhausting a finite connection pool. If you missed a ... finally { } block but otherwise do the right thing with your exceptions, you're storing up trouble there.