[FIR Completion] Generate part of performance tests for FIR completion
This commit is contained in:
+3
-1
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user