[FIR Completion] Generate part of performance tests for FIR completion

This commit is contained in:
Roman Golyshev
2020-10-05 14:54:43 +03:00
parent beac3757bc
commit 0682084ca3
4 changed files with 1052 additions and 1 deletions
@@ -40,10 +40,12 @@ abstract class AbstractPerformanceCompletionHandlerTests(
val statsMap: MutableMap<String, Stats> = mutableMapOf()
}
protected open val statsPrefix = "completion"
private fun stats(): Stats {
val suffix = "${defaultCompletionType.toString().toLowerCase()}${if (note.isNotEmpty()) "-$note" else ""}"
return statsMap.computeIfAbsent(suffix) {
Stats("completion-$suffix")
Stats("$statsPrefix-$suffix")
}
}