Richard Eggert - 2013-01-27

It would also be helpful to tag individual lines as ignored (either by using an annotation or some token placed into a comment) in order to avoid counting things like sanity checks and parameter validation that will execute only if there is a bug elsewhere in the code. For example, if a method checks that its arguments are valid and throws an IllegalArgumentException (or, in the case of null arguments, NullPointerException), it shouldn't be necessary to test the method by passing it an invalid argument just to get the coverage report to stop complaining.