Add DiagnosticsTest testData based smoke test for FIR #KT-29962 Fixed

Yet seven of these tests fail with an exception in RawFirBuilder
This commit is contained in:
Simon Ogorodnik
2019-02-11 22:13:57 +03:00
committed by Mikhail Glukhikh
parent 0d976a4870
commit e056882aa6
5 changed files with 23636 additions and 2 deletions
@@ -17,9 +17,11 @@ import org.jetbrains.kotlin.psi.psiUtil.startOffset
import kotlin.reflect.KClass
import kotlin.system.measureNanoTime
fun doFirResolveTestBench(firFiles: List<FirFile>, transformers: List<FirTransformer<Nothing?>>) {
fun doFirResolveTestBench(firFiles: List<FirFile>, transformers: List<FirTransformer<Nothing?>>, gc: Boolean = true) {
System.gc()
if (gc) {
System.gc()
}
val timePerTransformer = mutableMapOf<KClass<*>, Long>()
val counterPerTransformer = mutableMapOf<KClass<*>, Long>()