use of org.sonar.core.hash.SourceHashComputer in project sonarqube by SonarSource.
the class ScmInfoDbLoaderTest method computeSourceHash.
private static String computeSourceHash(int lineCount) {
SourceHashComputer sourceHashComputer = new SourceHashComputer();
Iterator<String> lines = generateLines(lineCount).iterator();
while (lines.hasNext()) {
sourceHashComputer.addLine(lines.next(), lines.hasNext());
}
return sourceHashComputer.getHash();
}
Aggregations