mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-24 13:11:47 +00:00
fixed broken assert in validating test coverage
This commit is contained in:
parent
b5a5fd3c23
commit
51c503eb86
@ -167,7 +167,7 @@ def Map<String, Map<String, Long>> getTestReport() {
|
||||
|
||||
//---------------------
|
||||
|
||||
// Creates GhidraAppConfig
|
||||
// Creates GhidraAppConfiguration
|
||||
ghidraConfigs.add("DataTypeSelectionTextFieldTest");
|
||||
ghidraConfigs.add("AbstractGhidraHeadedIntegrationTest");
|
||||
|
||||
@ -273,8 +273,14 @@ def Map<String, Map<String, Long>> getTestReport() {
|
||||
}
|
||||
}
|
||||
|
||||
int processedFiles = 0;
|
||||
for (Map.Entry<String,Map> entry : testReport.entrySet()) {
|
||||
Map<String,long> testMap = entry.getValue();
|
||||
processedFiles += testMap.size();
|
||||
}
|
||||
logger.info("====processed: " + processedFiles + "::" + totalHtmlFiles);
|
||||
assert totalHtmlFiles != 0 : "getTestReport: Did not parse any valid html files in $testTimeParserInputDir. Directory might be empty"
|
||||
assert totalHtmlFiles == (testReport.size() + excludedHtmlFiles) : "Not all html files processed."
|
||||
assert totalHtmlFiles == (processedFiles + excludedHtmlFiles) : "Not all html files processed."
|
||||
|
||||
logger.info("getTestReport:\n" +
|
||||
"\tIncluded " + testReport.size() + " and excluded " + excludedHtmlFiles
|
||||
|
Loading…
Reference in New Issue
Block a user