Lines Matching refs:FileIndex
697 unsigned long FileIndex = std::stoul(FileIndexStr.str()); in TEST() local
703 Stats[FileIndex].HitsWithErrors++; in TEST()
705 Stats[FileIndex].HitsWithoutErrors++; in TEST()
706 Stats[FileIndex].HadErrorsInLastDiags = HadError; in TEST()
728 for (unsigned FileIndex = 0; FileIndex < FilesCount; ++FileIndex) in TEST() local
748 auto UpdateStatsOnAddDocument = [&](unsigned FileIndex, bool HadErrors) { in TEST() argument
749 auto &Stats = ReqStats[FileIndex]; in TEST()
759 auto UpdateStatsOnRemoveDocument = [&](unsigned FileIndex) { in TEST() argument
760 auto &Stats = ReqStats[FileIndex]; in TEST()
765 auto AddDocument = [&](unsigned FileIndex, bool SkipCache) { in TEST() argument
767 Server.addDocument(FilePaths[FileIndex], in TEST()
770 UpdateStatsOnAddDocument(FileIndex, ShouldHaveErrors); in TEST()
775 unsigned FileIndex = FileIndexDist(RandGen); in TEST() local
776 AddDocument(FileIndex, /*SkipCache=*/false); in TEST()
780 unsigned FileIndex = FileIndexDist(RandGen); in TEST() local
781 AddDocument(FileIndex, /*SkipCache=*/true); in TEST()
785 unsigned FileIndex = FileIndexDist(RandGen); in TEST() local
787 if (ReqStats[FileIndex].FileIsRemoved) in TEST()
788 AddDocument(FileIndex, /*SkipCache=*/false); in TEST()
790 Server.removeDocument(FilePaths[FileIndex]); in TEST()
791 UpdateStatsOnRemoveDocument(FileIndex); in TEST()
795 unsigned FileIndex = FileIndexDist(RandGen); in TEST() local
797 if (ReqStats[FileIndex].FileIsRemoved) in TEST()
798 AddDocument(FileIndex, /*SkipCache=*/false); in TEST()
809 cantFail(runCodeComplete(Server, FilePaths[FileIndex], Pos, in TEST()
814 unsigned FileIndex = FileIndexDist(RandGen); in TEST() local
816 if (ReqStats[FileIndex].FileIsRemoved) in TEST()
817 AddDocument(FileIndex, /*SkipCache=*/false); in TEST()
823 ASSERT_TRUE(!!runLocateSymbolAt(Server, FilePaths[FileIndex], Pos)); in TEST()