@Test public void testLoop() { final MaliciousnessAnalyzerLoop loop = new MaliciousnessAnalyzerLoop(); final Set<MaliciousnessAnalysisResult> results = loop.isMalicious(new File("src/test/resources/zip-slip.zip")); assertTrue(results.size() > 0); assertEquals(1d, results.iterator().next().getResult(), 0d); }
public Set<MaliciousnessAnalysisResult> isMalicious(File _file) { final Set<MaliciousnessAnalysisResult> results = new HashSet<MaliciousnessAnalysisResult>(); for (MaliciousnessAnalyzer a : loader) { results.add(a.isMalicious(_file)); } return results; }
MaliciousnessAnalyzerLoop { public Set<MaliciousnessAnalysisResult> isMalicious(File _file) { final Set<MaliciousnessAnalysisResult> results = new HashSet<MaliciousnessAnalysisResult>(); for (MaliciousnessAnalyzer a : loader) { results.add(a.isMalicious(_file)); } return results; } }
MaliciousnessAnalyzerLoop { public Set<MaliciousnessAnalysisResult> isMalicious(File _file) { final Set<MaliciousnessAnalysisResult> results = new HashSet<MaliciousnessAnalysisResult>(); for (MaliciousnessAnalyzer a : loader) { results.add(a.isMalicious(_file)); } return results; }  }
MaliciousnessAnalyzerLoop { public Set<MaliciousnessAnalysisResult> isMalicious(File _file) { final Set<MaliciousnessAnalysisResult> results = new HashSet<MaliciousnessAnalysisResult>(); for (MaliciousnessAnalyzer a : loader) { results.add(a.isMalicious(_file)); } return results; }  Set<MaliciousnessAnalysisResult> isMalicious(File _file); Set<MaliciousnessAnalysisResult> isMalicious(InputStream _is); }
MaliciousnessAnalyzerLoop { public Set<MaliciousnessAnalysisResult> isMalicious(File _file) { final Set<MaliciousnessAnalysisResult> results = new HashSet<MaliciousnessAnalysisResult>(); for (MaliciousnessAnalyzer a : loader) { results.add(a.isMalicious(_file)); } return results; }  Set<MaliciousnessAnalysisResult> isMalicious(File _file); Set<MaliciousnessAnalysisResult> isMalicious(InputStream _is);  }