Regenerate inline class tests as 1 arg value classes
This commit is contained in:
committed by
Space
parent
5ac4722be4
commit
ec2e96f3e4
+2
@@ -24,4 +24,6 @@ abstract class TransformingTestMethodModel(val source: SimpleTestMethodModel, va
|
||||
internal val registerInConstructor
|
||||
get() = source.targetBackend == TargetBackend.NATIVE
|
||||
// Native tests load sources before runTest call if more than 1 test is called, so we need to register it before.
|
||||
|
||||
override fun shouldBeGenerated(): Boolean = source.shouldBeGenerated()
|
||||
}
|
||||
+3
-3
@@ -42,9 +42,9 @@ fun methodModelLocator(
|
||||
).let { methodModel ->
|
||||
if (methodModel.containsWithoutJvmInline()) {
|
||||
val isWithAnnotationAndIsWithPostfix = when {
|
||||
targetBackend.isRecursivelyCompatibleWith(TargetBackend.JVM_IR) -> listOf(true to false, false to true)
|
||||
targetBackend.isRecursivelyCompatibleWith(TargetBackend.JVM) -> listOf(true to false)
|
||||
else -> listOf(false to false)
|
||||
!targetBackend.isRecursivelyCompatibleWith(TargetBackend.JVM) -> listOf(false to false)
|
||||
targetBackend.isIR -> listOf(true to false, false to true)
|
||||
else -> listOf(true to false)
|
||||
}
|
||||
isWithAnnotationAndIsWithPostfix.map { (ann, post) -> WithoutJvmInlineTestMethodModel(methodModel, ann, post) }
|
||||
} else listOf(methodModel)
|
||||
|
||||
Reference in New Issue
Block a user