//return readme report
ReadMeReport readmeReport = readmeGen.getReadMe();
File readmeFile = readmeReport.getReportFile();
Data readMeData = createReportData(readmeFile,
readmeReport.getName(), null);
addReturn(readMeData);
//return all converters report
AllConvsReport allConvReport =
allConvGen.getAllConvsReport();
File allConvReportFile = allConvReport.getReport();
Data allConvReportData =
createReportData(allConvReportFile,
allConvReport.getName(),
null);
addReturn(allConvReportData);
ConvReport[] convReports =
allConvReport.getConverterReports();
for (int ii = 0; ii < convReports.length; ii++) {
ConvReport convReport = convReports[ii];
File convReportFile = convReport.getReport();
Data convReportData =
createReportData(convReportFile,
convReport.getName(), allConvReportData);
addReturn(convReportData);
TestReport[] trs = convReport.getTestReports();
addFilePasses(trs, convReportData);
}
//return all tests report
AllTestsReport allReport = allGen.getAllTestsReport();
File allReportFile = allReport.getAllTestsReport();
Data allReportData = createReportData(allReportFile,
allReport.getName() , null);
addReturn(allReportData);
TestReport[] sTestReports =
allReport.getSuccessfulTestReports();
addFilePasses(sTestReports, allReportData);
TestReport[] ppTestReports =
allReport.getPartialSuccessTestReports();
addFilePasses(ppTestReports, allReportData);
TestReport[] fTestReports =
allReport.getFailedTestReports();
addFilePasses(fTestReports, allReportData);
//return all errors report
AllErrorReport allErrorReport =
allErrGen.getAllErrorsReport();
File allErrReportFile = allErrorReport.getReportFile();
Data allErrReport = createReportData(allErrReportFile,
allErrorReport.getName(), null);
addReturn(allErrReport);
//return annotated graph report
File graphReportFile = graphGen.getGraphReport();
Data graphReport = createReportData(graphReportFile,
"Annotated Converter Graph", null,
"file:text/nwb", DataProperty.NETWORK_TYPE);
addReturn(graphReport);
//return original graph report
File origGraphReportFile = origGraphGen.getGraphReport();
Data origGraphReport = createReportData(
origGraphReportFile,
"Original Converter Graph", null,
"file:text/nwb", DataProperty.NETWORK_TYPE);
addReturn(origGraphReport);