[JVM] Introduce MF Value Classes to frontend
This commit is contained in:
committed by
Space
parent
c15b1ec001
commit
7595f798e1
+1
-1
@@ -300,7 +300,7 @@ class NewTestGeneratorImpl(
|
||||
private fun TestClassModel.predefinedNativeTransformers(recursive: Boolean): List<Pair<String, String>> =
|
||||
methods.mapNotNull { method ->
|
||||
(method as? TransformingTestMethodModel)
|
||||
?.takeIf { it.registerInConstructor }
|
||||
?.takeIf { it.registerInConstructor && it.shouldBeGenerated() }
|
||||
?.let { it.source.file.invariantSeparatorsPath to it.transformer }
|
||||
} + if (recursive) innerTestClasses.flatMap { it.predefinedNativeTransformers(true) } else listOf()
|
||||
}
|
||||
|
||||
+1
-1
@@ -120,7 +120,7 @@ class SimpleTestClassModel(
|
||||
}
|
||||
}
|
||||
}
|
||||
if (result.any { it is WithoutJvmInlineTestMethodModel }) {
|
||||
if (result.any { it is TransformingTestMethodModel && it.shouldBeGenerated() }) {
|
||||
val additionalRunner =
|
||||
RunTestMethodModel(targetBackend, doTestMethodName, testRunnerMethodName, additionalRunnerArguments, withTransformer = true)
|
||||
result.add(additionalRunner)
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ class SingleClassTestModel(
|
||||
}
|
||||
true
|
||||
}
|
||||
if (result.any { it is WithoutJvmInlineTestMethodModel }) {
|
||||
if (result.any { it is TransformingTestMethodModel && it.shouldBeGenerated() }) {
|
||||
val additionalRunner =
|
||||
RunTestMethodModel(targetBackend, doTestMethodName, testRunnerMethodName, additionalRunnerArguments, withTransformer = true)
|
||||
result.add(additionalRunner)
|
||||
|
||||
Reference in New Issue
Block a user