mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
coverage: ensure classes are touched when only default constructor is covered
This commit is contained in:
@@ -429,13 +429,17 @@ public class PackageAnnotator {
|
||||
boolean touchedClass = false;
|
||||
final Collection methodSigs = classData.getMethodSigs();
|
||||
for (final Object nameAndSig : methodSigs) {
|
||||
final int covered = classData.getStatus((String)nameAndSig);
|
||||
if (covered != LineCoverage.NONE) {
|
||||
touchedClass = true;
|
||||
}
|
||||
|
||||
if (isGeneratedDefaultConstructor(psiClass, (String)nameAndSig)) {
|
||||
continue;
|
||||
}
|
||||
final int covered = classData.getStatus((String)nameAndSig);
|
||||
|
||||
if (covered != LineCoverage.NONE) {
|
||||
toplevelClassCoverageInfo.coveredMethodCount++;
|
||||
touchedClass = true;
|
||||
}
|
||||
toplevelClassCoverageInfo.totalMethodCount++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user