List trustedConvs = new ArrayList();
List nonTrustedConvs = new ArrayList();
List nonTestedConvs = new ArrayList();
for (int ii = 0; ii < convResults.length; ii++) {
ConvResult cr = convResults[ii];
if (cr.isTrusted()) {
trustedConvs.add(cr);
} else if (cr.wasTested()) {
nonTrustedConvs.add(cr);
} else {
nonTestedConvs.add(cr);
}
}
report.println("Summary...");
report.println(" # of Trusted Converters : " +
trustedConvs.size());
report.println(" # of Non-Trusted Converters : " +
nonTrustedConvs.size());
report.println(" # of Untested Converters :" +
nonTestedConvs.size());
report.println(" Total # of Converters : " +
convResults.length);
report.println("");
report.println(" Average chance each converter is correct : " +
FormatUtil.formatToPercent(avgChanceCorrect));
report.println(" Average % successful file passes : " +
FormatUtil.formatToPercent(avgPercentPassed));
report.println("");
report.println("Trusted Converters...");
for (int ii = 0; ii < trustedConvs.size(); ii++) {
ConvResult cr = (ConvResult) trustedConvs.get(ii);
if (cr.wasTested()) {
//add this converters name to all convs report
report.println(" " + cr.getShortName());
}
}
report.println("");
report.println("Non-Trusted Tested Converters...");
for (int ii = 0; ii < nonTrustedConvs.size(); ii++) {
ConvResult cr = (ConvResult) nonTrustedConvs.get(ii);
if (cr.wasTested()) {
//add this converters name to all convs report
report.println(" " + cr.getShortName());
}
}
report.println("");
report.println("Untested Converters...");
for (int ii = 0; ii < convResults.length; ii++) {
ConvResult cr = convResults[ii];
if (! cr.wasTested()) {
report.println(" " + cr.getShortName());
}
}
report.println("");
for (int ii = 0; ii < convResults.length; ii++) {