My Java project contains a class of this form:
public final class NotInstantiableClass {
private NotInstantiableClass () {
}
// some utility functions
}
The constructor of this class cannot be invoked. Its sole purpose is to prevent instantiation of this class. Consequently, this constructor cannot be covered with unit tests.
Also consequently, when running PIT mutation tests, this method is listed as uncovered in the line coverage results.
Is there a way to exclude this method from the coverage calculation?