[Commonizer] AbstractCommonizationFromSourcesTest remove assertions on commonized leaf/platform libraries

Those assertions are not necessary anymore, since the commonizer is not
expected to produce any new "actuals" per given expect.
The IDE is supposed to analyze leaf source sets against the original
platform libraries.
This commit is contained in:
sebastian.sellmair
2021-06-14 14:11:52 +02:00
committed by Space
parent 42f60d981f
commit 21cef41ba5
67 changed files with 93 additions and 3679 deletions
@@ -1,66 +0,0 @@
import kotlin.annotation.AnnotationTarget.*
@Target(ANNOTATION_CLASS)
actual annotation class CommonAnnotationForAnnotationClassesOnly actual constructor(actual val text: String)
@Target(PROPERTY, PROPERTY_GETTER, PROPERTY_SETTER, FIELD, VALUE_PARAMETER, TYPE_PARAMETER, FUNCTION, CLASS, CONSTRUCTOR, TYPEALIAS, TYPE)
@JsAnnotationForAnnotationClassesOnly("annotation-class")
@CommonAnnotationForAnnotationClassesOnly("annotation-class")
actual annotation class CommonAnnotation actual constructor(actual val text: String)
@Target(ANNOTATION_CLASS)
annotation class JsAnnotationForAnnotationClassesOnly(val text: String)
@Target(PROPERTY, PROPERTY_GETTER, PROPERTY_SETTER, FIELD, VALUE_PARAMETER, TYPE_PARAMETER, FUNCTION, CLASS, CONSTRUCTOR, TYPEALIAS, TYPE)
@JsAnnotationForAnnotationClassesOnly("annotation-class")
@CommonAnnotationForAnnotationClassesOnly("annotation-class")
annotation class JsAnnotation(val text: String)
@JsAnnotation("property")
@CommonAnnotation("property")
actual var propertyWithoutBackingField
@JsAnnotation("getter") @CommonAnnotation("getter") get() = 3.14
@JsAnnotation("setter") @CommonAnnotation("setter") set(@JsAnnotation("parameter") @CommonAnnotation("parameter") value) = Unit
@field:JsAnnotation("field")
@field:CommonAnnotation("field")
actual val propertyWithBackingField = 3.14
@delegate:JsAnnotation("field")
@delegate:CommonAnnotation("field")
actual val propertyWithDelegateField: Int by lazy { 42 }
actual val <
@JsAnnotation("type-parameter")
@CommonAnnotation("type-parameter")
T : CharSequence>
@receiver:JsAnnotation("receiver")
@receiver:CommonAnnotation("receiver")
T.propertyWithExtensionReceiver: Int
get() = length
@JsAnnotation("function")
@CommonAnnotation("function")
actual fun function1(@JsAnnotation("parameter") @CommonAnnotation("parameter") text: String) = text
@JsAnnotation("function")
@CommonAnnotation("function")
actual fun <
@JsAnnotation("type-parameter")
@CommonAnnotation("type-parameter")
Q : Number>
@receiver:JsAnnotation("receiver")
@receiver:CommonAnnotation("receiver")
Q.function2(): Q = this
@JsAnnotation("class")
@CommonAnnotation("class")
actual class AnnotatedClass @JsAnnotation("constructor") @CommonAnnotation("constructor") actual constructor(actual val value: String)
@JsAnnotation("js-only-class")
@CommonAnnotation("js-only-class")
class JsOnlyAnnotatedClass @JsAnnotation("js-only-constructor") @CommonAnnotation("js-only-constructor") constructor(val value: String)
@JsAnnotation("non-lifted-up-type-alias")
@CommonAnnotation("non-lifted-up-type-alias")
actual typealias AnnotatedNonLiftedUpTypeAlias = JsOnlyAnnotatedClass
@@ -1,66 +0,0 @@
import kotlin.annotation.AnnotationTarget.*
@Target(ANNOTATION_CLASS)
actual annotation class CommonAnnotationForAnnotationClassesOnly actual constructor(actual val text: String)
@Target(PROPERTY, PROPERTY_GETTER, PROPERTY_SETTER, FIELD, VALUE_PARAMETER, TYPE_PARAMETER, FUNCTION, CLASS, CONSTRUCTOR, TYPEALIAS, TYPE)
@JvmAnnotationForAnnotationClassesOnly("annotation-class")
@CommonAnnotationForAnnotationClassesOnly("annotation-class")
actual annotation class CommonAnnotation actual constructor(actual val text: String)
@Target(ANNOTATION_CLASS)
annotation class JvmAnnotationForAnnotationClassesOnly(val text: String)
@Target(PROPERTY, PROPERTY_GETTER, PROPERTY_SETTER, FIELD, VALUE_PARAMETER, TYPE_PARAMETER, FUNCTION, CLASS, CONSTRUCTOR, TYPEALIAS, TYPE)
@JvmAnnotationForAnnotationClassesOnly("annotation-class")
@CommonAnnotationForAnnotationClassesOnly("annotation-class")
annotation class JvmAnnotation(val text: String)
@JvmAnnotation("property")
@CommonAnnotation("property")
actual var propertyWithoutBackingField
@JvmAnnotation("getter") @CommonAnnotation("getter") get() = 3.14
@JvmAnnotation("setter") @CommonAnnotation("setter") set(@JvmAnnotation("parameter") @CommonAnnotation("parameter") value) = Unit
@field:JvmAnnotation("field")
@field:CommonAnnotation("field")
actual val propertyWithBackingField = 3.14
@delegate:JvmAnnotation("field")
@delegate:CommonAnnotation("field")
actual val propertyWithDelegateField: Int by lazy { 42 }
actual val <
@JvmAnnotation("type-parameter")
@CommonAnnotation("type-parameter")
T : CharSequence>
@receiver:JvmAnnotation("receiver")
@receiver:CommonAnnotation("receiver")
T.propertyWithExtensionReceiver: Int
get() = length
@JvmAnnotation("function")
@CommonAnnotation("function")
actual fun function1(@JvmAnnotation("parameter") @CommonAnnotation("parameter") text: String) = text
@JvmAnnotation("function")
@CommonAnnotation("function")
actual fun <
@JvmAnnotation("type-parameter")
@CommonAnnotation("type-parameter")
Q : Number>
@receiver:JvmAnnotation("receiver")
@receiver:CommonAnnotation("receiver")
Q.function2(): Q = this
@JvmAnnotation("class")
@CommonAnnotation("class")
actual class AnnotatedClass @JvmAnnotation("constructor") @CommonAnnotation("constructor") actual constructor(actual val value: String)
@JvmAnnotation("jvm-only-class")
@CommonAnnotation("jvm-only-class")
class JvmOnlyAnnotatedClass @JvmAnnotation("jvm-only-constructor") @CommonAnnotation("jvm-only-constructor") constructor(val value: String)
@JvmAnnotation("non-lifted-up-type-alias")
@CommonAnnotation("non-lifted-up-type-alias")
actual typealias AnnotatedNonLiftedUpTypeAlias = JvmOnlyAnnotatedClass