use of com.synopsys.integration.detectable.detectables.go.gomod.parse.GoModWhyParser in project synopsys-detect by blackducksoftware.
the class DetectableFactory method goModCliExtractor.
private GoModCliExtractor goModCliExtractor(GoModCliDetectableOptions options) {
GoModCommandRunner goModCommandRunner = new GoModCommandRunner(executableRunner);
GoListParser goListParser = new GoListParser(gson);
GoGraphParser goGraphParser = new GoGraphParser();
GoModWhyParser goModWhyParser = new GoModWhyParser();
GoVersionParser goVersionParser = new GoVersionParser();
GoModGraphGenerator goModGraphGenerator = new GoModGraphGenerator(externalIdFactory);
return new GoModCliExtractor(goModCommandRunner, goListParser, goGraphParser, goModWhyParser, goVersionParser, goModGraphGenerator, externalIdFactory, options.getExcludedDependencyTypes());
}
use of com.synopsys.integration.detectable.detectables.go.gomod.parse.GoModWhyParser in project synopsys-detect by blackducksoftware.
the class GoModCliExtractorTest method buildGoModCliExtractor.
private GoModCliExtractor buildGoModCliExtractor(DetectableExecutableRunner executableRunner, Answer<ExecutableOutput> executableAnswer) throws ExecutableRunnerException {
Mockito.doAnswer(executableAnswer).when(executableRunner).execute(Mockito.any(Executable.class));
GoModWhyParser goModWhyParser = new GoModWhyParser();
GoVersionParser goVersionParser = new GoVersionParser();
GoModCommandRunner goModCommandRunner = new GoModCommandRunner(executableRunner);
GoModGraphGenerator goModGraphGenerator = new GoModGraphGenerator(new ExternalIdFactory());
GoListParser goListParser = new GoListParser(new GsonBuilder().create());
GoGraphParser goGraphParser = new GoGraphParser();
ExternalIdFactory externalIdFactory = new ExternalIdFactory();
return new GoModCliExtractor(goModCommandRunner, goListParser, goGraphParser, goModWhyParser, goVersionParser, goModGraphGenerator, externalIdFactory, GoModDependencyType.UNUSED);
}
Aggregations