use of com.searchcode.app.jobs.repository.IndexGitRepoJob in project searchcode-server by boyter.
the class IndexBaseRepoJobTest method testGetCodeLinesLogIndexedInvalid.
public void testGetCodeLinesLogIndexedInvalid() {
IndexGitRepoJob indexGitRepoJob = new IndexGitRepoJob();
indexGitRepoJob.LOGINDEXED = true;
List<String[]> reportList = new ArrayList<>();
IndexBaseRepoJob.CodeLinesReturn codeLines = indexGitRepoJob.getCodeLines("", reportList);
assertThat(codeLines.isError()).isTrue();
assertThat(codeLines.getReportList().get(0)[1]).isEqualTo("excluded");
assertThat(codeLines.getReportList().get(0)[2]).isEqualTo("unable to guess guess file encoding");
}
Aggregations