Annotation Interface NoCoverageGenerated


An annotation to indicate to test coverage tools that the annotated item should be excluded from analysis.

Tools such as the Jacoco coverage analyzer and the IntelliJ IDEA IDE will automatically exclude from coverage analysis any code annotated with an annotation containing the word "Generated" in its name. A typical use for this annotation is to exclude from coverage analysis the private constructor of a utility class.