diff --git a/compiler/testData/codegen/box/jvm8/defaults/allCompatibility/privateFunWithDefaultArg2_ir.txt b/compiler/testData/codegen/box/jvm8/defaults/allCompatibility/privateFunWithDefaultArg2_ir.txt deleted file mode 100644 index 88038ca0476..00000000000 --- a/compiler/testData/codegen/box/jvm8/defaults/allCompatibility/privateFunWithDefaultArg2_ir.txt +++ /dev/null @@ -1,31 +0,0 @@ -@kotlin.Metadata -public final class Foo$DefaultImpls { - // source: 'privateFunWithDefaultArg2.kt' - public deprecated static @java.lang.Deprecated @org.jetbrains.annotations.NotNull method bar(@org.jetbrains.annotations.NotNull p0: Foo): java.lang.String - public final inner class Foo$DefaultImpls -} - -@kotlin.Metadata -public interface Foo { - // source: 'privateFunWithDefaultArg2.kt' - public synthetic static method access$bar$jd(p0: Foo): java.lang.String - public @org.jetbrains.annotations.NotNull method bar(): java.lang.String - public synthetic static method foo$default(p0: Foo, p1: java.lang.String, p2: int, p3: java.lang.Object): java.lang.String - private method foo(p0: java.lang.String): java.lang.String - public final inner class Foo$DefaultImpls -} - -@kotlin.Metadata -public final class PrivateFunWithDefaultArg2Kt$box$1 { - // source: 'privateFunWithDefaultArg2.kt' - enclosing method PrivateFunWithDefaultArg2Kt.box()Ljava/lang/String; - inner (anonymous) class PrivateFunWithDefaultArg2Kt$box$1 - method (): void -} - -@kotlin.Metadata -public final class PrivateFunWithDefaultArg2Kt { - // source: 'privateFunWithDefaultArg2.kt' - inner (anonymous) class PrivateFunWithDefaultArg2Kt$box$1 - public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String -} diff --git a/compiler/testData/codegen/bytecodeListing/annotations/internalPropertyOrTypealias.txt b/compiler/testData/codegen/bytecodeListing/annotations/internalPropertyOrTypealias.txt index c88b79f5d76..83a72a18244 100644 --- a/compiler/testData/codegen/bytecodeListing/annotations/internalPropertyOrTypealias.txt +++ b/compiler/testData/codegen/bytecodeListing/annotations/internalPropertyOrTypealias.txt @@ -10,8 +10,8 @@ public annotation class Anno { public final class C { // source: 'internalPropertyOrTypealias.kt' public method (): void - public synthetic deprecated static @Anno method getProperty$test_module$annotations(): void - public final method getProperty$test_module(): int + public synthetic deprecated static @Anno method getProperty$main$annotations(): void + public final method getProperty$main(): int } @kotlin.Metadata diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionWithInternalRemove.txt b/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionWithInternalRemove.txt index cf39eca98d7..75b22e2155e 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionWithInternalRemove.txt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionWithInternalRemove.txt @@ -10,7 +10,7 @@ public final class Test { public method getSize(): int public method isEmpty(): boolean public @org.jetbrains.annotations.NotNull method iterator(): java.util.Iterator - public final method remove$test_module(p0: java.lang.Object): boolean + public final method remove$main(p0: java.lang.Object): boolean public method removeAll(p0: java.util.Collection): boolean public method retainAll(p0: java.util.Collection): boolean public bridge final method size(): int diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionWithInternalRemove_ir.txt b/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionWithInternalRemove_ir.txt index 49e7e15485b..49e75eaa2c1 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionWithInternalRemove_ir.txt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/collectionWithInternalRemove_ir.txt @@ -10,7 +10,7 @@ public final class Test { public method getSize(): int public method isEmpty(): boolean public @org.jetbrains.annotations.NotNull method iterator(): java.util.Iterator - public final method remove$test_module(p0: java.lang.Object): boolean + public final method remove$main(p0: java.lang.Object): boolean public bridge final method remove(p0: java.lang.Object): boolean public method removeAll(p0: java.util.Collection): boolean public method retainAll(p0: java.util.Collection): boolean diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/customNonGenericToArray.txt b/compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/customNonGenericToArray.txt index f520132fd70..27cdfa55a92 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/customNonGenericToArray.txt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/customNonGenericToArray.txt @@ -15,7 +15,7 @@ public final class InternalToArray { public method removeAll(p0: java.util.Collection): boolean public method retainAll(p0: java.util.Collection): boolean public bridge final method size(): int - public final @org.jetbrains.annotations.NotNull method toArray$test_module(): java.lang.Integer[] + public final @org.jetbrains.annotations.NotNull method toArray$main(): java.lang.Integer[] public method toArray(p0: java.lang.Object[]): java.lang.Object[] } diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/customNonGenericToArray_ir.txt b/compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/customNonGenericToArray_ir.txt index 9fb603f4fd6..a429d45fd29 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/customNonGenericToArray_ir.txt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/customNonGenericToArray_ir.txt @@ -15,7 +15,7 @@ public final class InternalToArray { public method removeAll(p0: java.util.Collection): boolean public method retainAll(p0: java.util.Collection): boolean public bridge final method size(): int - public final @org.jetbrains.annotations.NotNull method toArray$test_module(): java.lang.Integer[] + public final @org.jetbrains.annotations.NotNull method toArray$main(): java.lang.Integer[] public final method toArray(): java.lang.Object[] public method toArray(p0: java.lang.Object[]): java.lang.Object[] } diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/internalGenericToArray.txt b/compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/internalGenericToArray.txt index 87f22b0a14f..6d800297f28 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/internalGenericToArray.txt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/internalGenericToArray.txt @@ -15,6 +15,6 @@ public final class InternalGenericToArray { public method removeAll(p0: java.util.Collection): boolean public method retainAll(p0: java.util.Collection): boolean public bridge final method size(): int - public final @org.jetbrains.annotations.NotNull method toArray$test_module(@org.jetbrains.annotations.NotNull p0: java.lang.Object[]): java.lang.Object[] + public final @org.jetbrains.annotations.NotNull method toArray$main(@org.jetbrains.annotations.NotNull p0: java.lang.Object[]): java.lang.Object[] public method toArray(): java.lang.Object[] } diff --git a/compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/internalGenericToArray_ir.txt b/compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/internalGenericToArray_ir.txt index 6b49f33a2e6..b1af9d73488 100644 --- a/compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/internalGenericToArray_ir.txt +++ b/compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/internalGenericToArray_ir.txt @@ -15,7 +15,7 @@ public final class InternalGenericToArray { public method removeAll(p0: java.util.Collection): boolean public method retainAll(p0: java.util.Collection): boolean public bridge final method size(): int - public final @org.jetbrains.annotations.NotNull method toArray$test_module(@org.jetbrains.annotations.NotNull p0: java.lang.Object[]): java.lang.Object[] + public final @org.jetbrains.annotations.NotNull method toArray$main(@org.jetbrains.annotations.NotNull p0: java.lang.Object[]): java.lang.Object[] public method toArray(): java.lang.Object[] public final method toArray(p0: java.lang.Object[]): java.lang.Object[] } diff --git a/compiler/testData/codegen/bytecodeListing/coroutines/suspendImpl.txt b/compiler/testData/codegen/bytecodeListing/coroutines/suspendImpl.txt index cb7d7e6d264..a8e11f0f1c2 100644 --- a/compiler/testData/codegen/bytecodeListing/coroutines/suspendImpl.txt +++ b/compiler/testData/codegen/bytecodeListing/coroutines/suspendImpl.txt @@ -2,8 +2,8 @@ public abstract class A { // source: 'suspendImpl.kt' public method (): void - synthetic static method internal$test_module$suspendImpl(p0: A, p1: java.lang.Object): java.lang.Object - public @org.jetbrains.annotations.Nullable method internal$test_module(@org.jetbrains.annotations.Nullable p0: java.lang.Object): java.lang.Object + synthetic static method internal$main$suspendImpl(p0: A, p1: java.lang.Object): java.lang.Object + public @org.jetbrains.annotations.Nullable method internal$main(@org.jetbrains.annotations.Nullable p0: java.lang.Object): java.lang.Object synthetic static method protected$suspendImpl(p0: A, p1: java.lang.Object): java.lang.Object protected @org.jetbrains.annotations.Nullable method protected(@org.jetbrains.annotations.Nullable p0: java.lang.Object): java.lang.Object synthetic static method public$suspendImpl(p0: A, p1: java.lang.Object): java.lang.Object diff --git a/compiler/testData/codegen/bytecodeListing/coroutines/suspendImpl_ir.txt b/compiler/testData/codegen/bytecodeListing/coroutines/suspendImpl_ir.txt index 934e1407436..de55d9a8cfa 100644 --- a/compiler/testData/codegen/bytecodeListing/coroutines/suspendImpl_ir.txt +++ b/compiler/testData/codegen/bytecodeListing/coroutines/suspendImpl_ir.txt @@ -2,8 +2,8 @@ public abstract class A { // source: 'suspendImpl.kt' public method (): void + public @org.jetbrains.annotations.Nullable method internal$main(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object synthetic static method internal$suspendImpl(p0: A, p1: kotlin.coroutines.Continuation): java.lang.Object - public @org.jetbrains.annotations.Nullable method internal$test_module(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object synthetic static method protected$suspendImpl(p0: A, p1: kotlin.coroutines.Continuation): java.lang.Object protected @org.jetbrains.annotations.Nullable method protected(@org.jetbrains.annotations.NotNull p0: kotlin.coroutines.Continuation): java.lang.Object synthetic static method public$suspendImpl(p0: A, p1: kotlin.coroutines.Continuation): java.lang.Object diff --git a/compiler/testData/codegen/bytecodeListing/defaultArguments/internalNameMangling.txt b/compiler/testData/codegen/bytecodeListing/defaultArguments/internalNameMangling.txt index 88b8e9a6386..e6d5bcdb0ec 100644 --- a/compiler/testData/codegen/bytecodeListing/defaultArguments/internalNameMangling.txt +++ b/compiler/testData/codegen/bytecodeListing/defaultArguments/internalNameMangling.txt @@ -4,8 +4,8 @@ public final class test/A { public method (): void public method (p0: int): void public synthetic method (p0: int, p1: int, p2: kotlin.jvm.internal.DefaultConstructorMarker): void - public synthetic static method internalFunction$test_module$default(p0: test.A, p1: java.lang.String, p2: int, p3: java.lang.Object): void - public final method internalFunction$test_module(@org.jetbrains.annotations.NotNull p0: java.lang.String): void + public synthetic static method internalFunction$main$default(p0: test.A, p1: java.lang.String, p2: int, p3: java.lang.Object): void + public final method internalFunction$main(@org.jetbrains.annotations.NotNull p0: java.lang.String): void public synthetic static method internalJvmNameFunction$default(p0: test.A, p1: java.lang.String, p2: int, p3: java.lang.Object): void public final @kotlin.jvm.JvmName method internalJvmNameFunction(@org.jetbrains.annotations.NotNull p0: java.lang.String): void public synthetic static method publicFunction$default(p0: test.A, p1: java.lang.String, p2: int, p3: java.lang.Object): void diff --git a/compiler/testData/codegen/bytecodeListing/delegationToJavaInterfaceWithWildcardType.kt b/compiler/testData/codegen/bytecodeListing/delegationToJavaInterfaceWithWildcardType.kt index 6fc85406bc4..6f5175ea00c 100644 --- a/compiler/testData/codegen/bytecodeListing/delegationToJavaInterfaceWithWildcardType.kt +++ b/compiler/testData/codegen/bytecodeListing/delegationToJavaInterfaceWithWildcardType.kt @@ -1,5 +1,5 @@ -// FILE: delegationToJavaInterfaceWithWildcardType.kt // WITH_SIGNATURES +// FILE: delegationToJavaInterfaceWithWildcardType.kt interface K { fun kf1(): Collection fun kf2(): Collection diff --git a/compiler/testData/codegen/bytecodeListing/inline/inlineReifiedPropertyVisibility.txt b/compiler/testData/codegen/bytecodeListing/inline/inlineReifiedPropertyVisibility.txt index ca198bea87f..fde23203a2a 100644 --- a/compiler/testData/codegen/bytecodeListing/inline/inlineReifiedPropertyVisibility.txt +++ b/compiler/testData/codegen/bytecodeListing/inline/inlineReifiedPropertyVisibility.txt @@ -2,7 +2,7 @@ public final class Foo { // source: 'inlineReifiedPropertyVisibility.kt' public method (): void - public synthetic final method getInternalExtProp$test_module(p0: java.lang.Object): java.lang.String + public synthetic final method getInternalExtProp$main(p0: java.lang.Object): java.lang.String private synthetic final method getPrivateExtProp(p0: java.lang.Object): java.lang.String protected synthetic final method getProtectedExtProp(p0: java.lang.Object): java.lang.String } diff --git a/compiler/testData/codegen/bytecodeListing/inline/inlineReifiedVisibility.txt b/compiler/testData/codegen/bytecodeListing/inline/inlineReifiedVisibility.txt index 9aa03d1a340..6b41dec1caf 100644 --- a/compiler/testData/codegen/bytecodeListing/inline/inlineReifiedVisibility.txt +++ b/compiler/testData/codegen/bytecodeListing/inline/inlineReifiedVisibility.txt @@ -2,7 +2,7 @@ public final class Foo { // source: 'inlineReifiedVisibility.kt' public method (): void - public synthetic final method f$test_module(): void + public synthetic final method f$main(): void protected synthetic final method g(): void private synthetic final method h(): void } diff --git a/compiler/testData/codegen/bytecodeListing/inline/suspendInlineReified.txt b/compiler/testData/codegen/bytecodeListing/inline/suspendInlineReified.txt index fe5988b1144..3ff5456c81f 100644 --- a/compiler/testData/codegen/bytecodeListing/inline/suspendInlineReified.txt +++ b/compiler/testData/codegen/bytecodeListing/inline/suspendInlineReified.txt @@ -2,7 +2,7 @@ public final class A { // source: 'suspendInlineReified.kt' public method (): void - public synthetic final method internalFun$test_module(p0: java.lang.Object): java.lang.Object + public synthetic final method internalFun$main(p0: java.lang.Object): java.lang.Object private synthetic final method privateFun(p0: java.lang.Object): java.lang.Object protected synthetic final method protectedFun(p0: java.lang.Object): java.lang.Object public synthetic final method publicFun(p0: java.lang.Object): java.lang.Object diff --git a/compiler/testData/codegen/bytecodeListing/inline/suspendInlineReified_ir.txt b/compiler/testData/codegen/bytecodeListing/inline/suspendInlineReified_ir.txt index 3d4ca7f1506..b6a676c9403 100644 --- a/compiler/testData/codegen/bytecodeListing/inline/suspendInlineReified_ir.txt +++ b/compiler/testData/codegen/bytecodeListing/inline/suspendInlineReified_ir.txt @@ -2,7 +2,7 @@ public final class A { // source: 'suspendInlineReified.kt' public method (): void - public synthetic final method internalFun$test_module(p0: kotlin.coroutines.Continuation): java.lang.Object + public synthetic final method internalFun$main(p0: kotlin.coroutines.Continuation): java.lang.Object private synthetic final method privateFun(p0: kotlin.coroutines.Continuation): java.lang.Object protected synthetic final method protectedFun(p0: kotlin.coroutines.Continuation): java.lang.Object public synthetic final method publicFun(p0: kotlin.coroutines.Continuation): java.lang.Object diff --git a/compiler/testData/codegen/bytecodeListing/inlineClasses/annotatedPropertyWithInlineClassTypeInSignature.txt b/compiler/testData/codegen/bytecodeListing/inlineClasses/annotatedPropertyWithInlineClassTypeInSignature.txt index cb52f309e1e..f2414ae6036 100644 --- a/compiler/testData/codegen/bytecodeListing/inlineClasses/annotatedPropertyWithInlineClassTypeInSignature.txt +++ b/compiler/testData/codegen/bytecodeListing/inlineClasses/annotatedPropertyWithInlineClassTypeInSignature.txt @@ -17,8 +17,8 @@ public final class AnnotatedPropertyWithInlineClassTypeInSignatureKt { public final class C { // source: 'annotatedPropertyWithInlineClassTypeInSignature.kt' public method (): void - public synthetic deprecated static @Anno method getInternal-IQRRRT4$test_module$annotations(p0: int): void - public final method getInternal-IQRRRT4$test_module(p0: int): int + public synthetic deprecated static @Anno method getInternal-IQRRRT4$main$annotations(p0: int): void + public final method getInternal-IQRRRT4$main(p0: int): int public synthetic deprecated static @Anno method getMemberExtension-IQRRRT4$annotations(p0: int): void public final method getMemberExtension-IQRRRT4(p0: int): int public synthetic deprecated static @Anno method getReturnType-a_XrcN0$annotations(): void diff --git a/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassMembersVisibility.txt b/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassMembersVisibility.txt index 63aaa0efb40..669c823f7b3 100644 --- a/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassMembersVisibility.txt +++ b/compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassMembersVisibility.txt @@ -12,12 +12,12 @@ public final class Z { public method equals(p0: java.lang.Object): boolean public static method equals-impl(p0: int, p1: java.lang.Object): boolean public final static method equals-impl0(p0: int, p1: int): boolean - public final static method getInternalExtensionVal-impl$test_module(p0: int, @org.jetbrains.annotations.NotNull p1: java.lang.String): int - public synthetic deprecated static method getInternalExtensionVar$test_module$annotations(p0: java.lang.String): void - public final static method getInternalExtensionVar-impl$test_module(p0: int, @org.jetbrains.annotations.NotNull p1: java.lang.String): int - public final static method getInternalVal-impl$test_module(p0: int): int - public synthetic deprecated static method getInternalVar$test_module$annotations(): void - public final static method getInternalVar-impl$test_module(p0: int): int + public final static method getInternalExtensionVal-impl$main(p0: int, @org.jetbrains.annotations.NotNull p1: java.lang.String): int + public synthetic deprecated static method getInternalExtensionVar$main$annotations(p0: java.lang.String): void + public final static method getInternalExtensionVar-impl$main(p0: int, @org.jetbrains.annotations.NotNull p1: java.lang.String): int + public final static method getInternalVal-impl$main(p0: int): int + public synthetic deprecated static method getInternalVar$main$annotations(): void + public final static method getInternalVar-impl$main(p0: int): int private final static method getPrivateExtensionVal-impl(p0: int, p1: java.lang.String): int private synthetic deprecated static method getPrivateExtensionVar$annotations(p0: java.lang.String): void private final static method getPrivateExtensionVar-impl(p0: int, p1: java.lang.String): int @@ -33,14 +33,14 @@ public final class Z { public final method getX(): int public method hashCode(): int public static method hashCode-impl(p0: int): int - public final static method internalExtensionFun-impl$test_module(p0: int, @org.jetbrains.annotations.NotNull p1: java.lang.String): void - public final static method internalFun-impl$test_module(p0: int): void + public final static method internalExtensionFun-impl$main(p0: int, @org.jetbrains.annotations.NotNull p1: java.lang.String): void + public final static method internalFun-impl$main(p0: int): void private final static method privateExtensionFun-impl(p0: int, p1: java.lang.String): void private final static method privateFun-impl(p0: int): void public final static method publicExtensionFun-impl(p0: int, @org.jetbrains.annotations.NotNull p1: java.lang.String): void public final static method publicFun-impl(p0: int): void - public final static method setInternalExtensionVar-impl$test_module(p0: int, @org.jetbrains.annotations.NotNull p1: java.lang.String, p2: int): void - public final static method setInternalVar-impl$test_module(p0: int, p1: int): void + public final static method setInternalExtensionVar-impl$main(p0: int, @org.jetbrains.annotations.NotNull p1: java.lang.String, p2: int): void + public final static method setInternalVar-impl$main(p0: int, p1: int): void private final static method setPrivateExtensionVar-impl(p0: int, p1: java.lang.String, p2: int): void private final static method setPrivateVar-impl(p0: int, p1: int): void public final static method setPublicExtensionVar-impl(p0: int, @org.jetbrains.annotations.NotNull p1: java.lang.String, p2: int): void diff --git a/compiler/testData/codegen/bytecodeListing/jvmRecordStructure.kt b/compiler/testData/codegen/bytecodeListing/jvmRecordStructure.kt index fa9bee935bf..d38fbd2dfbc 100644 --- a/compiler/testData/codegen/bytecodeListing/jvmRecordStructure.kt +++ b/compiler/testData/codegen/bytecodeListing/jvmRecordStructure.kt @@ -3,7 +3,7 @@ // JVM_TARGET: 15 // ENABLE_JVM_PREVIEW // WITH_RUNTIME -// JDK_15 +// JDK_KIND: FULL_JDK_15 // D8 does not yet desugar java records. // IGNORE_DEXING diff --git a/compiler/testData/codegen/bytecodeListing/kt43217.kt b/compiler/testData/codegen/bytecodeListing/kt43217.kt index 966f20378c3..339423beaea 100644 --- a/compiler/testData/codegen/bytecodeListing/kt43217.kt +++ b/compiler/testData/codegen/bytecodeListing/kt43217.kt @@ -1,5 +1,5 @@ -// FILE: kt43217.kt // JVM_TARGET: 1.8 +// FILE: kt43217.kt class A { private val b = object : DoubleExpression() { diff --git a/compiler/testData/codegen/bytecodeListing/privateDefaultSetter.txt b/compiler/testData/codegen/bytecodeListing/privateDefaultSetter.txt index cc834f73991..916cb002c09 100644 --- a/compiler/testData/codegen/bytecodeListing/privateDefaultSetter.txt +++ b/compiler/testData/codegen/bytecodeListing/privateDefaultSetter.txt @@ -5,7 +5,7 @@ public class Test { private @org.jetbrains.annotations.NotNull field protectedProperty: java.lang.String private @org.jetbrains.annotations.NotNull field publicProperty: java.lang.String public method (): void - public final @org.jetbrains.annotations.NotNull method getInternalProperty$test_module(): java.lang.String + public final @org.jetbrains.annotations.NotNull method getInternalProperty$main(): java.lang.String protected final @org.jetbrains.annotations.NotNull method getProtectedProperty(): java.lang.String public final @org.jetbrains.annotations.NotNull method getPublicProperty(): java.lang.String public final method update(p0: int): void diff --git a/compiler/testData/codegen/bytecodeListing/rawTypeInSignature.kt b/compiler/testData/codegen/bytecodeListing/rawTypeInSignature.kt index 26f3fca21e1..a9d693d5957 100644 --- a/compiler/testData/codegen/bytecodeListing/rawTypeInSignature.kt +++ b/compiler/testData/codegen/bytecodeListing/rawTypeInSignature.kt @@ -1,5 +1,5 @@ -// FILE: rawTypeInSignature.kt // WITH_SIGNATURES +// FILE: rawTypeInSignature.kt class GenericInv class GenericIn diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/BytecodeListingTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BytecodeListingTestGenerated.java similarity index 89% rename from compiler/tests-gen/org/jetbrains/kotlin/codegen/BytecodeListingTestGenerated.java rename to compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BytecodeListingTestGenerated.java index 2565501b618..bbac9288475 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/BytecodeListingTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BytecodeListingTestGenerated.java @@ -3,703 +3,811 @@ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ -package org.jetbrains.kotlin.codegen; +package org.jetbrains.kotlin.test.runners.codegen; import com.intellij.testFramework.TestDataPath; -import org.jetbrains.kotlin.test.JUnit3RunnerWithInners; -import org.jetbrains.kotlin.test.KotlinTestUtils; import org.jetbrains.kotlin.test.util.KtTestUtil; import org.jetbrains.kotlin.test.TargetBackend; import org.jetbrains.kotlin.test.TestMetadata; -import org.junit.runner.RunWith; +import org.junit.jupiter.api.Nested; +import org.junit.jupiter.api.Test; import java.io.File; import java.util.regex.Pattern; -/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */ +/** This class is generated by {@link GenerateNewCompilerTests.kt}. DO NOT MODIFY MANUALLY */ @SuppressWarnings("all") @TestMetadata("compiler/testData/codegen/bytecodeListing") @TestDataPath("$PROJECT_ROOT") -@RunWith(JUnit3RunnerWithInners.class) public class BytecodeListingTestGenerated extends AbstractBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + @Test @TestMetadata("accessorForProtectedPropertyWithPrivateSetter.kt") public void testAccessorForProtectedPropertyWithPrivateSetter() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/accessorForProtectedPropertyWithPrivateSetter.kt"); } + @Test @TestMetadata("accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt") public void testAccessorForProtectedPropertyWithPrivateSetterInObjectLiteral() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt"); } + @Test @TestMetadata("accessorForTopLevelMembers.kt") public void testAccessorForTopLevelMembers() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/accessorForTopLevelMembers.kt"); } + @Test @TestMetadata("accessorsForProtectedStaticJavaFieldInOtherPackage.kt") public void testAccessorsForProtectedStaticJavaFieldInOtherPackage() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/accessorsForProtectedStaticJavaFieldInOtherPackage.kt"); } + @Test public void testAllFilesPresentInBytecodeListing() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("anonymousObjectInGenericFun.kt") public void testAnonymousObjectInGenericFun() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/anonymousObjectInGenericFun.kt"); } + @Test @TestMetadata("callableNameIntrinsic.kt") public void testCallableNameIntrinsic() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/callableNameIntrinsic.kt"); } + @Test @TestMetadata("cloneable.kt") public void testCloneable() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/cloneable.kt"); } + @Test @TestMetadata("companionObjectVisibility_after.kt") public void testCompanionObjectVisibility_after() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/companionObjectVisibility_after.kt"); } + @Test @TestMetadata("companionObjectVisibility_before.kt") public void testCompanionObjectVisibility_before() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/companionObjectVisibility_before.kt"); } + @Test @TestMetadata("defaultImpls.kt") public void testDefaultImpls() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/defaultImpls.kt"); } + @Test @TestMetadata("delegatedPropertiesInCompanionObject.kt") public void testDelegatedPropertiesInCompanionObject() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/delegatedPropertiesInCompanionObject.kt"); } + @Test @TestMetadata("delegationToJavaInterfaceWithWildcardType.kt") public void testDelegationToJavaInterfaceWithWildcardType() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/delegationToJavaInterfaceWithWildcardType.kt"); } + @Test @TestMetadata("enum.kt") public void testEnum() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/enum.kt"); } + @Test @TestMetadata("extension.kt") public void testExtension() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/extension.kt"); } + @Test @TestMetadata("fileClassWithPrivateDeclarationsOnly_after.kt") public void testFileClassWithPrivateDeclarationsOnly_after() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/fileClassWithPrivateDeclarationsOnly_after.kt"); } + @Test @TestMetadata("fileClassWithPrivateDeclarationsOnly_before.kt") public void testFileClassWithPrivateDeclarationsOnly_before() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/fileClassWithPrivateDeclarationsOnly_before.kt"); } + @Test @TestMetadata("immutableCollection.kt") public void testImmutableCollection() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/immutableCollection.kt"); } + @Test @TestMetadata("javaDeprecated.kt") public void testJavaDeprecated() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/javaDeprecated.kt"); } + @Test @TestMetadata("jvmOverloadsAndParametersAnnotations.kt") public void testJvmOverloadsAndParametersAnnotations() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/jvmOverloadsAndParametersAnnotations.kt"); } + @Test @TestMetadata("jvmOverloadsExternal.kt") public void testJvmOverloadsExternal() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/jvmOverloadsExternal.kt"); } + @Test @TestMetadata("jvmRecordStructure.kt") public void testJvmRecordStructure() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/jvmRecordStructure.kt"); } + @Test @TestMetadata("jvmStaticExternal.kt") public void testJvmStaticExternal() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/jvmStaticExternal.kt"); } + @Test @TestMetadata("jvmStaticWithDefaultParameters.kt") public void testJvmStaticWithDefaultParameters() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/jvmStaticWithDefaultParameters.kt"); } + @Test @TestMetadata("kt31389.kt") public void testKt31389() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/kt31389.kt"); } + @Test @TestMetadata("kt42137.kt") public void testKt42137() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/kt42137.kt"); } + @Test @TestMetadata("kt42879.kt") public void testKt42879() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/kt42879.kt"); } + @Test @TestMetadata("kt43217.kt") public void testKt43217() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/kt43217.kt"); } + @Test @TestMetadata("kt43440.kt") public void testKt43440() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/kt43440.kt"); } + @Test @TestMetadata("kt45853.kt") public void testKt45853() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/kt45853.kt"); } + @Test @TestMetadata("kt45853a.kt") public void testKt45853a() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/kt45853a.kt"); } + @Test @TestMetadata("kt45934.kt") public void testKt45934() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/kt45934.kt"); } + @Test @TestMetadata("noCollectionStubMethodsInInterface.kt") public void testNoCollectionStubMethodsInInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/noCollectionStubMethodsInInterface.kt"); } + @Test @TestMetadata("noDelegationsToPrivateInterfaceMembers.kt") public void testNoDelegationsToPrivateInterfaceMembers() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/noDelegationsToPrivateInterfaceMembers.kt"); } + @Test @TestMetadata("noReceiverInCallableReferenceClasses.kt") public void testNoReceiverInCallableReferenceClasses() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/noReceiverInCallableReferenceClasses.kt"); } + @Test @TestMetadata("noRemoveAtInReadOnly.kt") public void testNoRemoveAtInReadOnly() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/noRemoveAtInReadOnly.kt"); } + @Test @TestMetadata("overrideWithPrimitiveUpperBound.kt") public void testOverrideWithPrimitiveUpperBound() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/overrideWithPrimitiveUpperBound.kt"); } + @Test @TestMetadata("overrideWithPrimitiveUpperBound2.kt") public void testOverrideWithPrimitiveUpperBound2() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/overrideWithPrimitiveUpperBound2.kt"); } + @Test @TestMetadata("privateCompanionFields.kt") public void testPrivateCompanionFields() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/privateCompanionFields.kt"); } + @Test @TestMetadata("privateDefaultImpls.kt") public void testPrivateDefaultImpls() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/privateDefaultImpls.kt"); } + @Test @TestMetadata("privateDefaultSetter.kt") public void testPrivateDefaultSetter() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/privateDefaultSetter.kt"); } + @Test @TestMetadata("privateNestedClassInInterface.kt") public void testPrivateNestedClassInInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/privateNestedClassInInterface.kt"); } + @Test @TestMetadata("rawTypeInSignature.kt") public void testRawTypeInSignature() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/rawTypeInSignature.kt"); } + @Test @TestMetadata("strictfpFlag.kt") public void testStrictfpFlag() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/strictfpFlag.kt"); } + @Test @TestMetadata("synchronizedFlag.kt") public void testSynchronizedFlag() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/synchronizedFlag.kt"); } + @Test @TestMetadata("varargsBridge.kt") public void testVarargsBridge() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/varargsBridge.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/annotations") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Annotations extends AbstractBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Annotations { + @Test public void testAllFilesPresentInAnnotations() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("annotationsOnDelegatedMembers.kt") public void testAnnotationsOnDelegatedMembers() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/annotations/annotationsOnDelegatedMembers.kt"); } + @Test @TestMetadata("defaultTargets.kt") public void testDefaultTargets() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/annotations/defaultTargets.kt"); } + @Test @TestMetadata("deprecatedJvmOverloads.kt") public void testDeprecatedJvmOverloads() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/annotations/deprecatedJvmOverloads.kt"); } + @Test @TestMetadata("internalPropertyOrTypealias.kt") public void testInternalPropertyOrTypealias() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/annotations/internalPropertyOrTypealias.kt"); } + @Test @TestMetadata("JvmSynthetic.kt") public void testJvmSynthetic() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/annotations/JvmSynthetic.kt"); } + @Test @TestMetadata("kt27895.kt") public void testKt27895() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/annotations/kt27895.kt"); } + @Test @TestMetadata("kt43399.kt") public void testKt43399() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/annotations/kt43399.kt"); } + @Test @TestMetadata("kt43459.kt") public void testKt43459() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/annotations/kt43459.kt"); } + @Test @TestMetadata("kt9320.kt") public void testKt9320() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/annotations/kt9320.kt"); } + @Test @TestMetadata("literals.kt") public void testLiterals() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/annotations/literals.kt"); } + @Test @TestMetadata("localClassWithCapturedParams.kt") public void testLocalClassWithCapturedParams() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/annotations/localClassWithCapturedParams.kt"); } + @Test @TestMetadata("noAdditionalAnnotationsInAccessors.kt") public void testNoAdditionalAnnotationsInAccessors() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/annotations/noAdditionalAnnotationsInAccessors.kt"); } + @Test @TestMetadata("noAnnotationsInSyntheticAccessors.kt") public void testNoAnnotationsInSyntheticAccessors() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/annotations/noAnnotationsInSyntheticAccessors.kt"); } + @Test @TestMetadata("onProperties.kt") public void testOnProperties() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/annotations/onProperties.kt"); } + @Test @TestMetadata("onReceiver.kt") public void testOnReceiver() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/annotations/onReceiver.kt"); } + @Test @TestMetadata("unsignedTypes.kt") public void testUnsignedTypes() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/annotations/unsignedTypes.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/collectionStubs") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CollectionStubs extends AbstractBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class CollectionStubs { + @Test @TestMetadata("abstractMapRedefiningGetAny.kt") public void testAbstractMapRedefiningGetAny() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractMapRedefiningGetAny.kt"); } + @Test public void testAllFilesPresentInCollectionStubs() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/collectionStubs"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("collectionByDelegation.kt") public void testCollectionByDelegation() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation.kt"); } + @Test @TestMetadata("collectionByDelegation2.kt") public void testCollectionByDelegation2() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation2.kt"); } + @Test @TestMetadata("collectionByDelegation2WithFullJdk.kt") public void testCollectionByDelegation2WithFullJdk() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation2WithFullJdk.kt"); } + @Test @TestMetadata("collectionByDelegation3.kt") public void testCollectionByDelegation3() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation3.kt"); } + @Test @TestMetadata("collectionByDelegation3WithFullJdk.kt") public void testCollectionByDelegation3WithFullJdk() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation3WithFullJdk.kt"); } + @Test @TestMetadata("collectionByDelegationWithFullJdk.kt") public void testCollectionByDelegationWithFullJdk() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegationWithFullJdk.kt"); } + @Test @TestMetadata("collectionWithInternalRemove.kt") public void testCollectionWithInternalRemove() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionWithInternalRemove.kt"); } + @Test @TestMetadata("collectionsWithFullJdk.kt") public void testCollectionsWithFullJdk() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionsWithFullJdk.kt"); } + @Test @TestMetadata("customListIterator.kt") public void testCustomListIterator() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/customListIterator.kt"); } + @Test @TestMetadata("customMutableListIterator.kt") public void testCustomMutableListIterator() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/customMutableListIterator.kt"); } + @Test @TestMetadata("emptyList.kt") public void testEmptyList() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/emptyList.kt"); } + @Test @TestMetadata("extendingAbstractCollection.kt") public void testExtendingAbstractCollection() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/extendingAbstractCollection.kt"); } + @Test @TestMetadata("inheritingFromAbstractCollections.kt") public void testInheritingFromAbstractCollections() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/inheritingFromAbstractCollections.kt"); } + @Test @TestMetadata("inheritingFromAbstractMap.kt") public void testInheritingFromAbstractMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/inheritingFromAbstractMap.kt"); } + @Test @TestMetadata("inheritingFromAbstractMutableList.kt") public void testInheritingFromAbstractMutableList() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/inheritingFromAbstractMutableList.kt"); } + @Test @TestMetadata("kt44233.kt") public void testKt44233() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/kt44233.kt"); } + @Test @TestMetadata("ListAndSet.kt") public void testListAndSet() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/ListAndSet.kt"); } + @Test @TestMetadata("mapOfPrimitivesFullJdk.kt") public void testMapOfPrimitivesFullJdk() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/mapOfPrimitivesFullJdk.kt"); } + @Test @TestMetadata("noStubsForCollection.kt") public void testNoStubsForCollection() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsForCollection.kt"); } + @Test @TestMetadata("noStubsForMapImplementations.kt") public void testNoStubsForMapImplementations() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsForMapImplementations.kt"); } + @Test @TestMetadata("noStubsForMutableSetIterators.kt") public void testNoStubsForMutableSetIterators() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsForMutableSetIterators.kt"); } + @Test @TestMetadata("noStubsForSetIterators.kt") public void testNoStubsForSetIterators() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsForSetIterators.kt"); } + @Test @TestMetadata("noStubsInIterable.kt") public void testNoStubsInIterable() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsInIterable.kt"); } + @Test @TestMetadata("noStubsInJavaSuperClass.kt") public void testNoStubsInJavaSuperClass() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsInJavaSuperClass.kt"); } + @Test @TestMetadata("noStubsInMutableIterable.kt") public void testNoStubsInMutableIterable() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsInMutableIterable.kt"); } + @Test @TestMetadata("observableMutableMap.kt") public void testObservableMutableMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/observableMutableMap.kt"); } + @Test @TestMetadata("stubForAbstractFun.kt") public void testStubForAbstractFun() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubForAbstractFun.kt"); } + @Test @TestMetadata("stubForAbstractFunInAbstractClass.kt") public void testStubForAbstractFunInAbstractClass() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubForAbstractFunInAbstractClass.kt"); } + @Test @TestMetadata("stubForAbstractFunInAbstractClassWithCovariantOverride.kt") public void testStubForAbstractFunInAbstractClassWithCovariantOverride() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubForAbstractFunInAbstractClassWithCovariantOverride.kt"); } + @Test @TestMetadata("stubForAbstractFunWithCovariantOverride.kt") public void testStubForAbstractFunWithCovariantOverride() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubForAbstractFunWithCovariantOverride.kt"); } + @Test @TestMetadata("stubLikeMethodSignatures.kt") public void testStubLikeMethodSignatures() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubLikeMethodSignatures.kt"); } + @Test @TestMetadata("stubsFromSuperclass.kt") public void testStubsFromSuperclass() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubsFromSuperclass.kt"); } + @Test @TestMetadata("stubsFromSuperclassNoBridges.kt") public void testStubsFromSuperclassNoBridges() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubsFromSuperclassNoBridges.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class AbstractStubSignatures extends AbstractBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class AbstractStubSignatures { + @Test public void testAllFilesPresentInAbstractStubSignatures() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("byteShortMap.kt") public void testByteShortMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/byteShortMap.kt"); } + @Test @TestMetadata("byteShortMutableMap.kt") public void testByteShortMutableMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/byteShortMutableMap.kt"); } + @Test @TestMetadata("collection.kt") public void testCollection() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/collection.kt"); } + @Test @TestMetadata("genericCollection.kt") public void testGenericCollection() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericCollection.kt"); } + @Test @TestMetadata("genericMap.kt") public void testGenericMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericMap.kt"); } + @Test @TestMetadata("genericMutableCollection.kt") public void testGenericMutableCollection() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericMutableCollection.kt"); } + @Test @TestMetadata("genericMutableList.kt") public void testGenericMutableList() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericMutableList.kt"); } + @Test @TestMetadata("genericMutableMap.kt") public void testGenericMutableMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericMutableMap.kt"); } + @Test @TestMetadata("genericStringMap.kt") public void testGenericStringMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericStringMap.kt"); } + @Test @TestMetadata("genericStringMutableMap.kt") public void testGenericStringMutableMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericStringMutableMap.kt"); } + @Test @TestMetadata("iterable.kt") public void testIterable() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/iterable.kt"); } + @Test @TestMetadata("iterator.kt") public void testIterator() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/iterator.kt"); } + @Test @TestMetadata("list.kt") public void testList() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/list.kt"); } + @Test @TestMetadata("listIterator.kt") public void testListIterator() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/listIterator.kt"); } + @Test @TestMetadata("mapEntry.kt") public void testMapEntry() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mapEntry.kt"); } + @Test @TestMetadata("mutableCollection.kt") public void testMutableCollection() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mutableCollection.kt"); } + @Test @TestMetadata("mutableIterable.kt") public void testMutableIterable() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mutableIterable.kt"); } + @Test @TestMetadata("mutableIterator.kt") public void testMutableIterator() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mutableIterator.kt"); } + @Test @TestMetadata("mutableList.kt") public void testMutableList() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mutableList.kt"); } + @Test @TestMetadata("mutableListIterator.kt") public void testMutableListIterator() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mutableListIterator.kt"); } + @Test @TestMetadata("mutableMapEntry.kt") public void testMutableMapEntry() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mutableMapEntry.kt"); } + @Test @TestMetadata("numberStringMap.kt") public void testNumberStringMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/numberStringMap.kt"); } + @Test @TestMetadata("numberStringMutableMap.kt") public void testNumberStringMutableMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/numberStringMutableMap.kt"); } + @Test @TestMetadata("set.kt") public void testSet() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/set.kt"); } + @Test @TestMetadata("specializedGenericMap.kt") public void testSpecializedGenericMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/specializedGenericMap.kt"); } + @Test @TestMetadata("stringGenericMap.kt") public void testStringGenericMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/stringGenericMap.kt"); } + @Test @TestMetadata("stringGenericMutableMap.kt") public void testStringGenericMutableMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/stringGenericMutableMap.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/collectionStubs/toArray") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ToArray extends AbstractBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class ToArray { + @Test public void testAllFilesPresentInToArray() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/collectionStubs/toArray"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("customNonGenericToArray.kt") public void testCustomNonGenericToArray() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/customNonGenericToArray.kt"); } + @Test @TestMetadata("internalGenericToArray.kt") public void testInternalGenericToArray() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/internalGenericToArray.kt"); } + @Test @TestMetadata("noToArrayInJava.kt") public void testNoToArrayInJava() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/noToArrayInJava.kt"); @@ -707,100 +815,109 @@ public class BytecodeListingTestGenerated extends AbstractBytecodeListingTest { } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/coroutines") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Coroutines extends AbstractBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Coroutines { + @Test public void testAllFilesPresentInCoroutines() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("coroutineContextIntrinsic.kt") public void testCoroutineContextIntrinsic() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/coroutines/coroutineContextIntrinsic.kt"); } + @Test @TestMetadata("coroutineFields.kt") public void testCoroutineFields() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/coroutines/coroutineFields.kt"); } + @Test @TestMetadata("oomInReturnUnit.kt") public void testOomInReturnUnit() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/coroutines/oomInReturnUnit.kt"); } + @Test @TestMetadata("privateAccessor.kt") public void testPrivateAccessor() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/coroutines/privateAccessor.kt"); } + @Test @TestMetadata("privateSuspendFun.kt") public void testPrivateSuspendFun() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/coroutines/privateSuspendFun.kt"); } + @Test @TestMetadata("suspendImpl.kt") public void testSuspendImpl() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/coroutines/suspendImpl.kt"); } + @Test @TestMetadata("suspendReifiedFun.kt") public void testSuspendReifiedFun() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/coroutines/suspendReifiedFun.kt"); } + @Test @TestMetadata("tcoContinuation.kt") public void testTcoContinuation() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/coroutines/tcoContinuation.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/coroutines/spilling") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Spilling extends AbstractBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Spilling { + @Test public void testAllFilesPresentInSpilling() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/coroutines/spilling"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("booleanParameter.kt") public void testBooleanParameter() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/booleanParameter.kt"); } + @Test @TestMetadata("component1.kt") public void testComponent1() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/component1.kt"); } + @Test @TestMetadata("destructured.kt") public void testDestructured() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/destructured.kt"); } + @Test @TestMetadata("field.kt") public void testField() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/field.kt"); } + @Test @TestMetadata("lambda.kt") public void testLambda() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/lambda.kt"); } + @Test @TestMetadata("select.kt") public void testSelect() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/select.kt"); } + @Test @TestMetadata("unreachable.kt") public void testUnreachable() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/unreachable.kt"); @@ -808,201 +925,219 @@ public class BytecodeListingTestGenerated extends AbstractBytecodeListingTest { } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/defaultArguments") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultArguments extends AbstractBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class DefaultArguments { + @Test public void testAllFilesPresentInDefaultArguments() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/defaultArguments"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("functionInMultifileClass.kt") public void testFunctionInMultifileClass() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/defaultArguments/functionInMultifileClass.kt"); } + @Test @TestMetadata("functionInMultifileClassWithInheritedParts.kt") public void testFunctionInMultifileClassWithInheritedParts() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/defaultArguments/functionInMultifileClassWithInheritedParts.kt"); } + @Test @TestMetadata("internalNameMangling.kt") public void testInternalNameMangling() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/defaultArguments/internalNameMangling.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/deprecated") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Deprecated extends AbstractBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Deprecated { + @Test public void testAllFilesPresentInDeprecated() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/deprecated"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("deprecatedClass.kt") public void testDeprecatedClass() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/deprecated/deprecatedClass.kt"); } + @Test @TestMetadata("deprecatedEnumEntryFields.kt") public void testDeprecatedEnumEntryFields() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/deprecated/deprecatedEnumEntryFields.kt"); } + @Test @TestMetadata("deprecatedInMultifileClass.kt") public void testDeprecatedInMultifileClass() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/deprecated/deprecatedInMultifileClass.kt"); } + @Test @TestMetadata("deprecatedLateinitVar.kt") public void testDeprecatedLateinitVar() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/deprecated/deprecatedLateinitVar.kt"); } + @Test @TestMetadata("deprecatedProperty.kt") public void testDeprecatedProperty() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/deprecated/deprecatedProperty.kt"); } + @Test @TestMetadata("hidden.kt") public void testHidden() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/deprecated/hidden.kt"); } + @Test @TestMetadata("inheritingDeprecation.kt") public void testInheritingDeprecation() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/deprecated/inheritingDeprecation.kt"); } + @Test @TestMetadata("inlineClassTypesInSignature.kt") public void testInlineClassTypesInSignature() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/deprecated/inlineClassTypesInSignature.kt"); } + @Test @TestMetadata("jvmStaticDeprecatedProperty.kt") public void testJvmStaticDeprecatedProperty() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/deprecated/jvmStaticDeprecatedProperty.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/inline") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Inline extends AbstractBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Inline { + @Test public void testAllFilesPresentInInline() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("inlineOnly.kt") public void testInlineOnly() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/inlineOnly.kt"); } + @Test @TestMetadata("InlineOnlyMultifile.kt") public void testInlineOnlyMultifile() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/InlineOnlyMultifile.kt"); } + @Test @TestMetadata("inlineOnlyProperty.kt") public void testInlineOnlyProperty() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/inlineOnlyProperty.kt"); } + @Test @TestMetadata("InlineOnlyPropertyMultifile.kt") public void testInlineOnlyPropertyMultifile() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/InlineOnlyPropertyMultifile.kt"); } + @Test @TestMetadata("inlineReified.kt") public void testInlineReified() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/inlineReified.kt"); } + @Test @TestMetadata("InlineReifiedMultifile.kt") public void testInlineReifiedMultifile() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/InlineReifiedMultifile.kt"); } + @Test @TestMetadata("inlineReifiedProperty.kt") public void testInlineReifiedProperty() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/inlineReifiedProperty.kt"); } + @Test @TestMetadata("InlineReifiedPropertyMultifile.kt") public void testInlineReifiedPropertyMultifile() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/InlineReifiedPropertyMultifile.kt"); } + @Test @TestMetadata("inlineReifiedPropertyVisibility.kt") public void testInlineReifiedPropertyVisibility() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/inlineReifiedPropertyVisibility.kt"); } + @Test @TestMetadata("inlineReifiedVisibility.kt") public void testInlineReifiedVisibility() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/inlineReifiedVisibility.kt"); } + @Test @TestMetadata("simpleNamed.kt") public void testSimpleNamed() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/simpleNamed.kt"); } + @Test @TestMetadata("suspendInlineReified.kt") public void testSuspendInlineReified() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/suspendInlineReified.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class EnclosingInfo extends AbstractBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class EnclosingInfo { + @Test public void testAllFilesPresentInEnclosingInfo() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("crossinlineLambdaChain.kt") public void testCrossinlineLambdaChain() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/crossinlineLambdaChain.kt"); } + @Test @TestMetadata("kt10259.kt") public void testKt10259() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/kt10259.kt"); } + @Test @TestMetadata("lambdaInInitBlockNoPrimaryConstructor.kt") public void testLambdaInInitBlockNoPrimaryConstructor() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/lambdaInInitBlockNoPrimaryConstructor.kt"); } + @Test @TestMetadata("lambdaInInnerClassConstructor.kt") public void testLambdaInInnerClassConstructor() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/lambdaInInnerClassConstructor.kt"); } + @Test @TestMetadata("transformedConstructor.kt") public void testTransformedConstructor() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/transformedConstructor.kt"); } + @Test @TestMetadata("transformedConstructorWithNestedInline.kt") public void testTransformedConstructorWithNestedInline() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/transformedConstructorWithNestedInline.kt"); @@ -1010,422 +1145,473 @@ public class BytecodeListingTestGenerated extends AbstractBytecodeListingTest { } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/inlineClasses") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineClasses extends AbstractBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class InlineClasses { + @Test public void testAllFilesPresentInInlineClasses() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("annotatedPropertyWithInlineClassTypeInSignature.kt") public void testAnnotatedPropertyWithInlineClassTypeInSignature() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/annotatedPropertyWithInlineClassTypeInSignature.kt"); } + @Test @TestMetadata("annotationGetters.kt") public void testAnnotationGetters() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/annotationGetters.kt"); } + @Test @TestMetadata("annotationsOnHiddenConstructor.kt") public void testAnnotationsOnHiddenConstructor() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/annotationsOnHiddenConstructor.kt"); } + @Test @TestMetadata("companionObjectInsideInlineClass.kt") public void testCompanionObjectInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/companionObjectInsideInlineClass.kt"); } + @Test @TestMetadata("computablePropertiesInsideInlineClass.kt") public void testComputablePropertiesInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/computablePropertiesInsideInlineClass.kt"); } + @Test @TestMetadata("constructor.kt") public void testConstructor() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/constructor.kt"); } + @Test @TestMetadata("constructorsWithDefaultParameterValues.kt") public void testConstructorsWithDefaultParameterValues() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/constructorsWithDefaultParameterValues.kt"); } + @Test @TestMetadata("defaultInterfaceMethodsInInlineClass.kt") public void testDefaultInterfaceMethodsInInlineClass() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/defaultInterfaceMethodsInInlineClass.kt"); } + @Test @TestMetadata("genericChild.kt") public void testGenericChild() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/genericChild.kt"); } + @Test @TestMetadata("hiddenConstructor.kt") public void testHiddenConstructor() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/hiddenConstructor.kt"); } + @Test @TestMetadata("inlineCharSequence.kt") public void testInlineCharSequence() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCharSequence.kt"); } + @Test @TestMetadata("inlineClassMembersVisibility.kt") public void testInlineClassMembersVisibility() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassMembersVisibility.kt"); } + @Test @TestMetadata("inlineClassTypeParametersInConstructor.kt") public void testInlineClassTypeParametersInConstructor() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassTypeParametersInConstructor.kt"); } + @Test @TestMetadata("inlineClassWithInlineClassUnderlyingType.kt") public void testInlineClassWithInlineClassUnderlyingType() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassWithInlineClassUnderlyingType.kt"); } + @Test @TestMetadata("inlineClassWithManyKindsOfMembers.kt") public void testInlineClassWithManyKindsOfMembers() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassWithManyKindsOfMembers.kt"); } + @Test @TestMetadata("jvmName.kt") public void testJvmName() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/jvmName.kt"); } + @Test @TestMetadata("jvmOverloadsOnTopLevelFunctionReturningInlineClassValue.kt") public void testJvmOverloadsOnTopLevelFunctionReturningInlineClassValue() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValue.kt"); } + @Test @TestMetadata("memberExtensionProperty.kt") public void testMemberExtensionProperty() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/memberExtensionProperty.kt"); } + @Test @TestMetadata("noArgConstructorForInlineClassParameter.kt") public void testNoArgConstructorForInlineClassParameter() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/noArgConstructorForInlineClassParameter.kt"); } + @Test @TestMetadata("noBridgesForErasedInlineClass.kt") public void testNoBridgesForErasedInlineClass() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/noBridgesForErasedInlineClass.kt"); } + @Test @TestMetadata("nullabilityAnnotationsOnInlineClassMembers.kt") public void testNullabilityAnnotationsOnInlineClassMembers() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/nullabilityAnnotationsOnInlineClassMembers.kt"); } + @Test @TestMetadata("nullabilityInExpansion.kt") public void testNullabilityInExpansion() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/nullabilityInExpansion.kt"); } + @Test @TestMetadata("nullableAndNotNullPrimitive.kt") public void testNullableAndNotNullPrimitive() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/nullableAndNotNullPrimitive.kt"); } + @Test @TestMetadata("overridingGenericMethodWithInlineClassParameterType.kt") public void testOverridingGenericMethodWithInlineClassParameterType() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/overridingGenericMethodWithInlineClassParameterType.kt"); } + @Test @TestMetadata("overridingGenericMethodWithInlineClassReturnType.kt") public void testOverridingGenericMethodWithInlineClassReturnType() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/overridingGenericMethodWithInlineClassReturnType.kt"); } + @Test @TestMetadata("primaryValsWithDifferentVisibilities.kt") public void testPrimaryValsWithDifferentVisibilities() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/primaryValsWithDifferentVisibilities.kt"); } + @Test @TestMetadata("publishedApiAnnotationOnInlineClassConstructor.kt") public void testPublishedApiAnnotationOnInlineClassConstructor() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/publishedApiAnnotationOnInlineClassConstructor.kt"); } + @Test @TestMetadata("shapeOfInlineClassWithPrimitive.kt") public void testShapeOfInlineClassWithPrimitive() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/shapeOfInlineClassWithPrimitive.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/inlineClasses/defaultInterfaceMembers") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultInterfaceMembers extends AbstractBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class DefaultInterfaceMembers { + @Test public void testAllFilesPresentInDefaultInterfaceMembers() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inlineClasses/defaultInterfaceMembers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("javaDefaultInterfaceMember.kt") public void testJavaDefaultInterfaceMember() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/defaultInterfaceMembers/javaDefaultInterfaceMember.kt"); } + @Test @TestMetadata("jvmDefaultAll.kt") public void testJvmDefaultAll() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/defaultInterfaceMembers/jvmDefaultAll.kt"); } + @Test @TestMetadata("jvmDefaultEnable.kt") public void testJvmDefaultEnable() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/defaultInterfaceMembers/jvmDefaultEnable.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineCollection extends AbstractBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class InlineCollection { + @Test public void testAllFilesPresentInInlineCollection() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("collection.kt") public void testCollection() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/collection.kt"); } + @Test @TestMetadata("iterable.kt") public void testIterable() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/iterable.kt"); } + @Test @TestMetadata("iterator.kt") public void testIterator() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/iterator.kt"); } + @Test @TestMetadata("list.kt") public void testList() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/list.kt"); } + @Test @TestMetadata("map.kt") public void testMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/map.kt"); } + @Test @TestMetadata("mapEntry.kt") public void testMapEntry() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mapEntry.kt"); } + @Test @TestMetadata("mutableCollection.kt") public void testMutableCollection() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableCollection.kt"); } + @Test @TestMetadata("mutableIterable.kt") public void testMutableIterable() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableIterable.kt"); } + @Test @TestMetadata("mutableIterator.kt") public void testMutableIterator() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableIterator.kt"); } + @Test @TestMetadata("mutableList.kt") public void testMutableList() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableList.kt"); } + @Test @TestMetadata("mutableMap.kt") public void testMutableMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableMap.kt"); } + @Test @TestMetadata("mutableMapEntry.kt") public void testMutableMapEntry() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableMapEntry.kt"); } + @Test @TestMetadata("mutableSet.kt") public void testMutableSet() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableSet.kt"); } + @Test @TestMetadata("set.kt") public void testSet() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/set.kt"); } + @Test @TestMetadata("UIntArrayWithFullJdk.kt") public void testUIntArrayWithFullJdk() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/UIntArrayWithFullJdk.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineCollectionOfInlineClass extends AbstractBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class InlineCollectionOfInlineClass { + @Test public void testAllFilesPresentInInlineCollectionOfInlineClass() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("collection.kt") public void testCollection() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/collection.kt"); } + @Test @TestMetadata("iterable.kt") public void testIterable() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/iterable.kt"); } + @Test @TestMetadata("iterator.kt") public void testIterator() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/iterator.kt"); } + @Test @TestMetadata("list.kt") public void testList() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/list.kt"); } + @Test @TestMetadata("map.kt") public void testMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/map.kt"); } + @Test @TestMetadata("mapEntry.kt") public void testMapEntry() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mapEntry.kt"); } + @Test @TestMetadata("mutableCollection.kt") public void testMutableCollection() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableCollection.kt"); } + @Test @TestMetadata("mutableIterable.kt") public void testMutableIterable() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableIterable.kt"); } + @Test @TestMetadata("mutableIterator.kt") public void testMutableIterator() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableIterator.kt"); } + @Test @TestMetadata("mutableList.kt") public void testMutableList() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableList.kt"); } + @Test @TestMetadata("mutableMap.kt") public void testMutableMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableMap.kt"); } + @Test @TestMetadata("mutableMapEntry.kt") public void testMutableMapEntry() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableMapEntry.kt"); } + @Test @TestMetadata("mutableSet.kt") public void testMutableSet() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableSet.kt"); } + @Test @TestMetadata("mutableSet2.kt") public void testMutableSet2() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableSet2.kt"); } + @Test @TestMetadata("set.kt") public void testSet() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/set.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ReturnResult extends AbstractBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class ReturnResult { + @Test public void testAllFilesPresentInReturnResult() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("class.kt") public void testClass() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult/class.kt"); } + @Test @TestMetadata("classAnyOverride.kt") public void testClassAnyOverride() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult/classAnyOverride.kt"); } + @Test @TestMetadata("classGenericOverride.kt") public void testClassGenericOverride() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult/classGenericOverride.kt"); } + @Test @TestMetadata("classResultOverride.kt") public void testClassResultOverride() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult/classResultOverride.kt"); } + @Test @TestMetadata("interface.kt") public void testInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult/interface.kt"); } + @Test @TestMetadata("topLevel.kt") public void testTopLevel() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult/topLevel.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/inlineClasses/stdlibManglingIn1430") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class StdlibManglingIn1430 extends AbstractBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class StdlibManglingIn1430 { + @Test public void testAllFilesPresentInStdlibManglingIn1430() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inlineClasses/stdlibManglingIn1430"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("new.kt") public void testNew() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/stdlibManglingIn1430/new.kt"); } + @Test @TestMetadata("old.kt") public void testOld() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/stdlibManglingIn1430/old.kt"); @@ -1433,84 +1619,79 @@ public class BytecodeListingTestGenerated extends AbstractBytecodeListingTest { } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/jvm8") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Jvm8 extends AbstractBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Jvm8 { + @Test public void testAllFilesPresentInJvm8() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/jvm8"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/jvm8/defaults") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Defaults extends AbstractBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Defaults { + @Test public void testAllFilesPresentInDefaults() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/jvm8/defaults"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class AllCompatibility extends AbstractBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class AllCompatibility { + @Test public void testAllFilesPresentInAllCompatibility() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("deprecation.kt") public void testDeprecation() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/deprecation.kt"); } + @Test @TestMetadata("deprecationWithDefault.kt") public void testDeprecationWithDefault() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/deprecationWithDefault.kt"); } + @Test @TestMetadata("interfaceProperty.kt") public void testInterfaceProperty() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/interfaceProperty.kt"); } + @Test @TestMetadata("jvmDefaultWithoutCompatibility.kt") public void testJvmDefaultWithoutCompatibility() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/jvmDefaultWithoutCompatibility.kt"); } + @Test @TestMetadata("noDefaultImplsOnEmptySubInterface.kt") public void testNoDefaultImplsOnEmptySubInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/noDefaultImplsOnEmptySubInterface.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/specialization") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Specialization extends AbstractBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Specialization { + @Test public void testAllFilesPresentInSpecialization() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/specialization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("primitiveAndAny.kt") public void testPrimitiveAndAny() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/specialization/primitiveAndAny.kt"); } + @Test @TestMetadata("primitiveAndNullable.kt") public void testPrimitiveAndNullable() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/specialization/primitiveAndNullable.kt"); @@ -1518,36 +1699,32 @@ public class BytecodeListingTestGenerated extends AbstractBytecodeListingTest { } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/jvm8/defaults/enable") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Enable extends AbstractBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Enable { + @Test public void testAllFilesPresentInEnable() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/jvm8/defaults/enable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("interfaceProperty.kt") public void testInterfaceProperty() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/enable/interfaceProperty.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/jvm8/defaults/noDefaultImpl") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class NoDefaultImpl extends AbstractBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class NoDefaultImpl { + @Test public void testAllFilesPresentInNoDefaultImpl() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/jvm8/defaults/noDefaultImpl"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("interfaceProperty.kt") public void testInterfaceProperty() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/noDefaultImpl/interfaceProperty.kt"); @@ -1556,426 +1733,461 @@ public class BytecodeListingTestGenerated extends AbstractBytecodeListingTest { } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/localFunctions") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class LocalFunctions extends AbstractBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class LocalFunctions { + @Test public void testAllFilesPresentInLocalFunctions() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("inInitBlock.kt") public void testInInitBlock() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/localFunctions/inInitBlock.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/localFunctions/simple.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/main") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Main extends AbstractBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Main { + @Test public void testAllFilesPresentInMain() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/main"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("multifileSuspend.kt") public void testMultifileSuspend() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/main/multifileSuspend.kt"); } + @Test @TestMetadata("parameterlessMain.kt") public void testParameterlessMain() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/main/parameterlessMain.kt"); } + @Test @TestMetadata("parameterlessMain_before.kt") public void testParameterlessMain_before() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/main/parameterlessMain_before.kt"); } + @Test @TestMetadata("suspendMain.kt") public void testSuspendMain() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/main/suspendMain.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/multifileClasses") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class MultifileClasses extends AbstractBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class MultifileClasses { + @Test public void testAllFilesPresentInMultifileClasses() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/multifileClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("emptyMultifileFacade.kt") public void testEmptyMultifileFacade() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/multifileClasses/emptyMultifileFacade.kt"); } + @Test @TestMetadata("jvmSynthetic.kt") public void testJvmSynthetic() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/multifileClasses/jvmSynthetic.kt"); } + @Test @TestMetadata("kt43519.kt") public void testKt43519() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/multifileClasses/kt43519.kt"); } + @Test @TestMetadata("multiClassPartSourceMultipleParts.kt") public void testMultiClassPartSourceMultipleParts() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/multifileClasses/multiClassPartSourceMultipleParts.kt"); } + @Test @TestMetadata("multiClassPartSourceSinglePart.kt") public void testMultiClassPartSourceSinglePart() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/multifileClasses/multiClassPartSourceSinglePart.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/multiplatform") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Multiplatform extends AbstractBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Multiplatform { + @Test public void testAllFilesPresentInMultiplatform() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("optionalExpectation.kt") public void testOptionalExpectation() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/multiplatform/optionalExpectation.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class NullabilityAnnotations extends AbstractBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class NullabilityAnnotations { + @Test public void testAllFilesPresentInNullabilityAnnotations() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("lateInitNotNull.kt") public void testLateInitNotNull() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/lateInitNotNull.kt"); } + @Test @TestMetadata("nullabilityAnnotationsForReturnType.kt") public void testNullabilityAnnotationsForReturnType() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/nullabilityAnnotationsForReturnType.kt"); } + @Test @TestMetadata("nullabilityAnnotationsOnDelegatedMembers.kt") public void testNullabilityAnnotationsOnDelegatedMembers() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/nullabilityAnnotationsOnDelegatedMembers.kt"); } + @Test @TestMetadata("platformTypes.kt") public void testPlatformTypes() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/platformTypes.kt"); } + @Test @TestMetadata("samAdapterForJavaInterfaceWithNullability.kt") public void testSamAdapterForJavaInterfaceWithNullability() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/samAdapterForJavaInterfaceWithNullability.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/sam") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Sam extends AbstractBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Sam { + @Test public void testAllFilesPresentInSam() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("callableRefGenericFunInterface.kt") public void testCallableRefGenericFunInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/callableRefGenericFunInterface.kt"); } + @Test @TestMetadata("callableRefGenericSamInterface.kt") public void testCallableRefGenericSamInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/callableRefGenericSamInterface.kt"); } + @Test @TestMetadata("callableRefSpecializedFunInterface.kt") public void testCallableRefSpecializedFunInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/callableRefSpecializedFunInterface.kt"); } + @Test @TestMetadata("callableRefSpecializedSamInterface.kt") public void testCallableRefSpecializedSamInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/callableRefSpecializedSamInterface.kt"); } + @Test @TestMetadata("genericFunInterface.kt") public void testGenericFunInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/genericFunInterface.kt"); } + @Test @TestMetadata("genericSamInterface.kt") public void testGenericSamInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/genericSamInterface.kt"); } + @Test @TestMetadata("kt16650.kt") public void testKt16650() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/kt16650.kt"); } + @Test @TestMetadata("lambdaGenericFunInterface.kt") public void testLambdaGenericFunInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/lambdaGenericFunInterface.kt"); } + @Test @TestMetadata("lambdaGenericSamInterface.kt") public void testLambdaGenericSamInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/lambdaGenericSamInterface.kt"); } + @Test @TestMetadata("lambdaSpecializedFunInterface.kt") public void testLambdaSpecializedFunInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/lambdaSpecializedFunInterface.kt"); } + @Test @TestMetadata("lambdaSpecializedSamInterface.kt") public void testLambdaSpecializedSamInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/lambdaSpecializedSamInterface.kt"); } + @Test @TestMetadata("reusedSamWrapperClasses.kt") public void testReusedSamWrapperClasses() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/reusedSamWrapperClasses.kt"); } + @Test @TestMetadata("samAdapterAndInlinedOne.kt") public void testSamAdapterAndInlinedOne() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/samAdapterAndInlinedOne.kt"); } + @Test @TestMetadata("specializedFunInterface.kt") public void testSpecializedFunInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/specializedFunInterface.kt"); } + @Test @TestMetadata("specializedSamInterface.kt") public void testSpecializedSamInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/specializedSamInterface.kt"); } + @Test @TestMetadata("wrapperInlinedFromAnotherClass.kt") public void testWrapperInlinedFromAnotherClass() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/wrapperInlinedFromAnotherClass.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/sealed") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Sealed extends AbstractBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Sealed { + @Test public void testAllFilesPresentInSealed() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/sealed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("annotationsOnSealedConstructor.kt") public void testAnnotationsOnSealedConstructor() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sealed/annotationsOnSealedConstructor.kt"); } + @Test @TestMetadata("sealedClassConstructor_1_4.kt") public void testSealedClassConstructor_1_4() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sealed/sealedClassConstructor_1_4.kt"); } + @Test @TestMetadata("sealedClassConstructor_1_5.kt") public void testSealedClassConstructor_1_5() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sealed/sealedClassConstructor_1_5.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/specialBridges") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class SpecialBridges extends AbstractBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class SpecialBridges { + @Test @TestMetadata("abstractCollections.kt") public void testAbstractCollections() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractCollections.kt"); } + @Test @TestMetadata("abstractIterables.kt") public void testAbstractIterables() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractIterables.kt"); } + @Test @TestMetadata("abstractLists.kt") public void testAbstractLists() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractLists.kt"); } + @Test @TestMetadata("abstractListsWithJavaBase.kt") public void testAbstractListsWithJavaBase() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractListsWithJavaBase.kt"); } + @Test @TestMetadata("abstractMutableCollectionOfPrimitive.kt") public void testAbstractMutableCollectionOfPrimitive() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractMutableCollectionOfPrimitive.kt"); } + @Test @TestMetadata("abstractMutableListOfPrimitive.kt") public void testAbstractMutableListOfPrimitive() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractMutableListOfPrimitive.kt"); } + @Test @TestMetadata("abstractMutableLists.kt") public void testAbstractMutableLists() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractMutableLists.kt"); } + @Test @TestMetadata("abstractSets.kt") public void testAbstractSets() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractSets.kt"); } + @Test public void testAllFilesPresentInSpecialBridges() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/specialBridges"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("charSequence.kt") public void testCharSequence() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/charSequence.kt"); } + @Test @TestMetadata("contains.kt") public void testContains() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/contains.kt"); } + @Test @TestMetadata("kt41123.kt") public void testKt41123() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/kt41123.kt"); } + @Test @TestMetadata("mutableCollectionOfPrimitive.kt") public void testMutableCollectionOfPrimitive() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/mutableCollectionOfPrimitive.kt"); } + @Test @TestMetadata("mutableListOfPrimitive.kt") public void testMutableListOfPrimitive() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/mutableListOfPrimitive.kt"); } + @Test @TestMetadata("noDefaultImplsOnEmptySubInterface.kt") public void testNoDefaultImplsOnEmptySubInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/noDefaultImplsOnEmptySubInterface.kt"); } + @Test @TestMetadata("noSpecialBridgeIfPresentInSuperClass.kt") public void testNoSpecialBridgeIfPresentInSuperClass() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/noSpecialBridgeIfPresentInSuperClass.kt"); } + @Test @TestMetadata("number.kt") public void testNumber() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/number.kt"); } + @Test @TestMetadata("redundantStubForSize.kt") public void testRedundantStubForSize() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/redundantStubForSize.kt"); } + @Test @TestMetadata("removeAtTwoSpecialBridges.kt") public void testRemoveAtTwoSpecialBridges() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/removeAtTwoSpecialBridges.kt"); } + @Test @TestMetadata("unsignedArray.kt") public void testUnsignedArray() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/unsignedArray.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/specialBridges/signatures") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Signatures extends AbstractBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); - } - + public class Signatures { + @Test public void testAllFilesPresentInSignatures() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/specialBridges/signatures"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true); } + @Test @TestMetadata("genericClass.kt") public void testGenericClass() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/genericClass.kt"); } + @Test @TestMetadata("implementsJavaMap.kt") public void testImplementsJavaMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/implementsJavaMap.kt"); } + @Test @TestMetadata("implementsMap.kt") public void testImplementsMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/implementsMap.kt"); } + @Test @TestMetadata("implementsSortedMap.kt") public void testImplementsSortedMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/implementsSortedMap.kt"); } + @Test @TestMetadata("kt43610.kt") public void testKt43610() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/kt43610.kt"); } + @Test @TestMetadata("nonGenericClass.kt") public void testNonGenericClass() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/nonGenericClass.kt"); } + @Test @TestMetadata("partiallySpecializedClass.kt") public void testPartiallySpecializedClass() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/partiallySpecializedClass.kt"); diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/IrBytecodeListingTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBytecodeListingTestGenerated.java similarity index 89% rename from compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/IrBytecodeListingTestGenerated.java rename to compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBytecodeListingTestGenerated.java index 917440ea5f4..f968a194cc8 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/ir/IrBytecodeListingTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBytecodeListingTestGenerated.java @@ -3,703 +3,811 @@ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ -package org.jetbrains.kotlin.codegen.ir; +package org.jetbrains.kotlin.test.runners.codegen; import com.intellij.testFramework.TestDataPath; -import org.jetbrains.kotlin.test.JUnit3RunnerWithInners; -import org.jetbrains.kotlin.test.KotlinTestUtils; import org.jetbrains.kotlin.test.util.KtTestUtil; import org.jetbrains.kotlin.test.TargetBackend; import org.jetbrains.kotlin.test.TestMetadata; -import org.junit.runner.RunWith; +import org.junit.jupiter.api.Nested; +import org.junit.jupiter.api.Test; import java.io.File; import java.util.regex.Pattern; -/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */ +/** This class is generated by {@link GenerateNewCompilerTests.kt}. DO NOT MODIFY MANUALLY */ @SuppressWarnings("all") @TestMetadata("compiler/testData/codegen/bytecodeListing") @TestDataPath("$PROJECT_ROOT") -@RunWith(JUnit3RunnerWithInners.class) public class IrBytecodeListingTestGenerated extends AbstractIrBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + @Test @TestMetadata("accessorForProtectedPropertyWithPrivateSetter.kt") public void testAccessorForProtectedPropertyWithPrivateSetter() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/accessorForProtectedPropertyWithPrivateSetter.kt"); } + @Test @TestMetadata("accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt") public void testAccessorForProtectedPropertyWithPrivateSetterInObjectLiteral() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/accessorForProtectedPropertyWithPrivateSetterInObjectLiteral.kt"); } + @Test @TestMetadata("accessorForTopLevelMembers.kt") public void testAccessorForTopLevelMembers() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/accessorForTopLevelMembers.kt"); } + @Test @TestMetadata("accessorsForProtectedStaticJavaFieldInOtherPackage.kt") public void testAccessorsForProtectedStaticJavaFieldInOtherPackage() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/accessorsForProtectedStaticJavaFieldInOtherPackage.kt"); } + @Test public void testAllFilesPresentInBytecodeListing() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("anonymousObjectInGenericFun.kt") public void testAnonymousObjectInGenericFun() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/anonymousObjectInGenericFun.kt"); } + @Test @TestMetadata("callableNameIntrinsic.kt") public void testCallableNameIntrinsic() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/callableNameIntrinsic.kt"); } + @Test @TestMetadata("cloneable.kt") public void testCloneable() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/cloneable.kt"); } + @Test @TestMetadata("companionObjectVisibility_after.kt") public void testCompanionObjectVisibility_after() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/companionObjectVisibility_after.kt"); } + @Test @TestMetadata("companionObjectVisibility_before.kt") public void testCompanionObjectVisibility_before() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/companionObjectVisibility_before.kt"); } + @Test @TestMetadata("defaultImpls.kt") public void testDefaultImpls() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/defaultImpls.kt"); } + @Test @TestMetadata("delegatedPropertiesInCompanionObject.kt") public void testDelegatedPropertiesInCompanionObject() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/delegatedPropertiesInCompanionObject.kt"); } + @Test @TestMetadata("delegationToJavaInterfaceWithWildcardType.kt") public void testDelegationToJavaInterfaceWithWildcardType() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/delegationToJavaInterfaceWithWildcardType.kt"); } + @Test @TestMetadata("enum.kt") public void testEnum() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/enum.kt"); } + @Test @TestMetadata("extension.kt") public void testExtension() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/extension.kt"); } + @Test @TestMetadata("fileClassWithPrivateDeclarationsOnly_after.kt") public void testFileClassWithPrivateDeclarationsOnly_after() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/fileClassWithPrivateDeclarationsOnly_after.kt"); } + @Test @TestMetadata("fileClassWithPrivateDeclarationsOnly_before.kt") public void testFileClassWithPrivateDeclarationsOnly_before() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/fileClassWithPrivateDeclarationsOnly_before.kt"); } + @Test @TestMetadata("immutableCollection.kt") public void testImmutableCollection() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/immutableCollection.kt"); } + @Test @TestMetadata("javaDeprecated.kt") public void testJavaDeprecated() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/javaDeprecated.kt"); } + @Test @TestMetadata("jvmOverloadsAndParametersAnnotations.kt") public void testJvmOverloadsAndParametersAnnotations() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/jvmOverloadsAndParametersAnnotations.kt"); } + @Test @TestMetadata("jvmOverloadsExternal.kt") public void testJvmOverloadsExternal() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/jvmOverloadsExternal.kt"); } + @Test @TestMetadata("jvmRecordStructure.kt") public void testJvmRecordStructure() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/jvmRecordStructure.kt"); } + @Test @TestMetadata("jvmStaticExternal.kt") public void testJvmStaticExternal() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/jvmStaticExternal.kt"); } + @Test @TestMetadata("jvmStaticWithDefaultParameters.kt") public void testJvmStaticWithDefaultParameters() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/jvmStaticWithDefaultParameters.kt"); } + @Test @TestMetadata("kt31389.kt") public void testKt31389() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/kt31389.kt"); } + @Test @TestMetadata("kt42137.kt") public void testKt42137() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/kt42137.kt"); } + @Test @TestMetadata("kt42879.kt") public void testKt42879() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/kt42879.kt"); } + @Test @TestMetadata("kt43217.kt") public void testKt43217() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/kt43217.kt"); } + @Test @TestMetadata("kt43440.kt") public void testKt43440() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/kt43440.kt"); } + @Test @TestMetadata("kt45853.kt") public void testKt45853() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/kt45853.kt"); } + @Test @TestMetadata("kt45853a.kt") public void testKt45853a() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/kt45853a.kt"); } + @Test @TestMetadata("kt45934.kt") public void testKt45934() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/kt45934.kt"); } + @Test @TestMetadata("noCollectionStubMethodsInInterface.kt") public void testNoCollectionStubMethodsInInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/noCollectionStubMethodsInInterface.kt"); } + @Test @TestMetadata("noDelegationsToPrivateInterfaceMembers.kt") public void testNoDelegationsToPrivateInterfaceMembers() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/noDelegationsToPrivateInterfaceMembers.kt"); } + @Test @TestMetadata("noReceiverInCallableReferenceClasses.kt") public void testNoReceiverInCallableReferenceClasses() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/noReceiverInCallableReferenceClasses.kt"); } + @Test @TestMetadata("noRemoveAtInReadOnly.kt") public void testNoRemoveAtInReadOnly() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/noRemoveAtInReadOnly.kt"); } + @Test @TestMetadata("overrideWithPrimitiveUpperBound.kt") public void testOverrideWithPrimitiveUpperBound() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/overrideWithPrimitiveUpperBound.kt"); } + @Test @TestMetadata("overrideWithPrimitiveUpperBound2.kt") public void testOverrideWithPrimitiveUpperBound2() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/overrideWithPrimitiveUpperBound2.kt"); } + @Test @TestMetadata("privateCompanionFields.kt") public void testPrivateCompanionFields() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/privateCompanionFields.kt"); } + @Test @TestMetadata("privateDefaultImpls.kt") public void testPrivateDefaultImpls() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/privateDefaultImpls.kt"); } + @Test @TestMetadata("privateDefaultSetter.kt") public void testPrivateDefaultSetter() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/privateDefaultSetter.kt"); } + @Test @TestMetadata("privateNestedClassInInterface.kt") public void testPrivateNestedClassInInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/privateNestedClassInInterface.kt"); } + @Test @TestMetadata("rawTypeInSignature.kt") public void testRawTypeInSignature() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/rawTypeInSignature.kt"); } + @Test @TestMetadata("strictfpFlag.kt") public void testStrictfpFlag() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/strictfpFlag.kt"); } + @Test @TestMetadata("synchronizedFlag.kt") public void testSynchronizedFlag() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/synchronizedFlag.kt"); } + @Test @TestMetadata("varargsBridge.kt") public void testVarargsBridge() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/varargsBridge.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/annotations") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Annotations extends AbstractIrBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Annotations { + @Test public void testAllFilesPresentInAnnotations() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("annotationsOnDelegatedMembers.kt") public void testAnnotationsOnDelegatedMembers() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/annotations/annotationsOnDelegatedMembers.kt"); } + @Test @TestMetadata("defaultTargets.kt") public void testDefaultTargets() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/annotations/defaultTargets.kt"); } + @Test @TestMetadata("deprecatedJvmOverloads.kt") public void testDeprecatedJvmOverloads() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/annotations/deprecatedJvmOverloads.kt"); } + @Test @TestMetadata("internalPropertyOrTypealias.kt") public void testInternalPropertyOrTypealias() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/annotations/internalPropertyOrTypealias.kt"); } + @Test @TestMetadata("JvmSynthetic.kt") public void testJvmSynthetic() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/annotations/JvmSynthetic.kt"); } + @Test @TestMetadata("kt27895.kt") public void testKt27895() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/annotations/kt27895.kt"); } + @Test @TestMetadata("kt43399.kt") public void testKt43399() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/annotations/kt43399.kt"); } + @Test @TestMetadata("kt43459.kt") public void testKt43459() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/annotations/kt43459.kt"); } + @Test @TestMetadata("kt9320.kt") public void testKt9320() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/annotations/kt9320.kt"); } + @Test @TestMetadata("literals.kt") public void testLiterals() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/annotations/literals.kt"); } + @Test @TestMetadata("localClassWithCapturedParams.kt") public void testLocalClassWithCapturedParams() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/annotations/localClassWithCapturedParams.kt"); } + @Test @TestMetadata("noAdditionalAnnotationsInAccessors.kt") public void testNoAdditionalAnnotationsInAccessors() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/annotations/noAdditionalAnnotationsInAccessors.kt"); } + @Test @TestMetadata("noAnnotationsInSyntheticAccessors.kt") public void testNoAnnotationsInSyntheticAccessors() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/annotations/noAnnotationsInSyntheticAccessors.kt"); } + @Test @TestMetadata("onProperties.kt") public void testOnProperties() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/annotations/onProperties.kt"); } + @Test @TestMetadata("onReceiver.kt") public void testOnReceiver() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/annotations/onReceiver.kt"); } + @Test @TestMetadata("unsignedTypes.kt") public void testUnsignedTypes() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/annotations/unsignedTypes.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/collectionStubs") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class CollectionStubs extends AbstractIrBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class CollectionStubs { + @Test @TestMetadata("abstractMapRedefiningGetAny.kt") public void testAbstractMapRedefiningGetAny() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractMapRedefiningGetAny.kt"); } + @Test public void testAllFilesPresentInCollectionStubs() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/collectionStubs"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("collectionByDelegation.kt") public void testCollectionByDelegation() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation.kt"); } + @Test @TestMetadata("collectionByDelegation2.kt") public void testCollectionByDelegation2() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation2.kt"); } + @Test @TestMetadata("collectionByDelegation2WithFullJdk.kt") public void testCollectionByDelegation2WithFullJdk() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation2WithFullJdk.kt"); } + @Test @TestMetadata("collectionByDelegation3.kt") public void testCollectionByDelegation3() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation3.kt"); } + @Test @TestMetadata("collectionByDelegation3WithFullJdk.kt") public void testCollectionByDelegation3WithFullJdk() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegation3WithFullJdk.kt"); } + @Test @TestMetadata("collectionByDelegationWithFullJdk.kt") public void testCollectionByDelegationWithFullJdk() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionByDelegationWithFullJdk.kt"); } + @Test @TestMetadata("collectionWithInternalRemove.kt") public void testCollectionWithInternalRemove() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionWithInternalRemove.kt"); } + @Test @TestMetadata("collectionsWithFullJdk.kt") public void testCollectionsWithFullJdk() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/collectionsWithFullJdk.kt"); } + @Test @TestMetadata("customListIterator.kt") public void testCustomListIterator() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/customListIterator.kt"); } + @Test @TestMetadata("customMutableListIterator.kt") public void testCustomMutableListIterator() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/customMutableListIterator.kt"); } + @Test @TestMetadata("emptyList.kt") public void testEmptyList() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/emptyList.kt"); } + @Test @TestMetadata("extendingAbstractCollection.kt") public void testExtendingAbstractCollection() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/extendingAbstractCollection.kt"); } + @Test @TestMetadata("inheritingFromAbstractCollections.kt") public void testInheritingFromAbstractCollections() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/inheritingFromAbstractCollections.kt"); } + @Test @TestMetadata("inheritingFromAbstractMap.kt") public void testInheritingFromAbstractMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/inheritingFromAbstractMap.kt"); } + @Test @TestMetadata("inheritingFromAbstractMutableList.kt") public void testInheritingFromAbstractMutableList() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/inheritingFromAbstractMutableList.kt"); } + @Test @TestMetadata("kt44233.kt") public void testKt44233() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/kt44233.kt"); } + @Test @TestMetadata("ListAndSet.kt") public void testListAndSet() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/ListAndSet.kt"); } + @Test @TestMetadata("mapOfPrimitivesFullJdk.kt") public void testMapOfPrimitivesFullJdk() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/mapOfPrimitivesFullJdk.kt"); } + @Test @TestMetadata("noStubsForCollection.kt") public void testNoStubsForCollection() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsForCollection.kt"); } + @Test @TestMetadata("noStubsForMapImplementations.kt") public void testNoStubsForMapImplementations() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsForMapImplementations.kt"); } + @Test @TestMetadata("noStubsForMutableSetIterators.kt") public void testNoStubsForMutableSetIterators() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsForMutableSetIterators.kt"); } + @Test @TestMetadata("noStubsForSetIterators.kt") public void testNoStubsForSetIterators() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsForSetIterators.kt"); } + @Test @TestMetadata("noStubsInIterable.kt") public void testNoStubsInIterable() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsInIterable.kt"); } + @Test @TestMetadata("noStubsInJavaSuperClass.kt") public void testNoStubsInJavaSuperClass() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsInJavaSuperClass.kt"); } + @Test @TestMetadata("noStubsInMutableIterable.kt") public void testNoStubsInMutableIterable() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/noStubsInMutableIterable.kt"); } + @Test @TestMetadata("observableMutableMap.kt") public void testObservableMutableMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/observableMutableMap.kt"); } + @Test @TestMetadata("stubForAbstractFun.kt") public void testStubForAbstractFun() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubForAbstractFun.kt"); } + @Test @TestMetadata("stubForAbstractFunInAbstractClass.kt") public void testStubForAbstractFunInAbstractClass() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubForAbstractFunInAbstractClass.kt"); } + @Test @TestMetadata("stubForAbstractFunInAbstractClassWithCovariantOverride.kt") public void testStubForAbstractFunInAbstractClassWithCovariantOverride() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubForAbstractFunInAbstractClassWithCovariantOverride.kt"); } + @Test @TestMetadata("stubForAbstractFunWithCovariantOverride.kt") public void testStubForAbstractFunWithCovariantOverride() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubForAbstractFunWithCovariantOverride.kt"); } + @Test @TestMetadata("stubLikeMethodSignatures.kt") public void testStubLikeMethodSignatures() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubLikeMethodSignatures.kt"); } + @Test @TestMetadata("stubsFromSuperclass.kt") public void testStubsFromSuperclass() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubsFromSuperclass.kt"); } + @Test @TestMetadata("stubsFromSuperclassNoBridges.kt") public void testStubsFromSuperclassNoBridges() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/stubsFromSuperclassNoBridges.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class AbstractStubSignatures extends AbstractIrBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class AbstractStubSignatures { + @Test public void testAllFilesPresentInAbstractStubSignatures() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("byteShortMap.kt") public void testByteShortMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/byteShortMap.kt"); } + @Test @TestMetadata("byteShortMutableMap.kt") public void testByteShortMutableMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/byteShortMutableMap.kt"); } + @Test @TestMetadata("collection.kt") public void testCollection() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/collection.kt"); } + @Test @TestMetadata("genericCollection.kt") public void testGenericCollection() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericCollection.kt"); } + @Test @TestMetadata("genericMap.kt") public void testGenericMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericMap.kt"); } + @Test @TestMetadata("genericMutableCollection.kt") public void testGenericMutableCollection() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericMutableCollection.kt"); } + @Test @TestMetadata("genericMutableList.kt") public void testGenericMutableList() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericMutableList.kt"); } + @Test @TestMetadata("genericMutableMap.kt") public void testGenericMutableMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericMutableMap.kt"); } + @Test @TestMetadata("genericStringMap.kt") public void testGenericStringMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericStringMap.kt"); } + @Test @TestMetadata("genericStringMutableMap.kt") public void testGenericStringMutableMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/genericStringMutableMap.kt"); } + @Test @TestMetadata("iterable.kt") public void testIterable() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/iterable.kt"); } + @Test @TestMetadata("iterator.kt") public void testIterator() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/iterator.kt"); } + @Test @TestMetadata("list.kt") public void testList() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/list.kt"); } + @Test @TestMetadata("listIterator.kt") public void testListIterator() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/listIterator.kt"); } + @Test @TestMetadata("mapEntry.kt") public void testMapEntry() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mapEntry.kt"); } + @Test @TestMetadata("mutableCollection.kt") public void testMutableCollection() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mutableCollection.kt"); } + @Test @TestMetadata("mutableIterable.kt") public void testMutableIterable() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mutableIterable.kt"); } + @Test @TestMetadata("mutableIterator.kt") public void testMutableIterator() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mutableIterator.kt"); } + @Test @TestMetadata("mutableList.kt") public void testMutableList() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mutableList.kt"); } + @Test @TestMetadata("mutableListIterator.kt") public void testMutableListIterator() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mutableListIterator.kt"); } + @Test @TestMetadata("mutableMapEntry.kt") public void testMutableMapEntry() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/mutableMapEntry.kt"); } + @Test @TestMetadata("numberStringMap.kt") public void testNumberStringMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/numberStringMap.kt"); } + @Test @TestMetadata("numberStringMutableMap.kt") public void testNumberStringMutableMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/numberStringMutableMap.kt"); } + @Test @TestMetadata("set.kt") public void testSet() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/set.kt"); } + @Test @TestMetadata("specializedGenericMap.kt") public void testSpecializedGenericMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/specializedGenericMap.kt"); } + @Test @TestMetadata("stringGenericMap.kt") public void testStringGenericMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/stringGenericMap.kt"); } + @Test @TestMetadata("stringGenericMutableMap.kt") public void testStringGenericMutableMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/abstractStubSignatures/stringGenericMutableMap.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/collectionStubs/toArray") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ToArray extends AbstractIrBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class ToArray { + @Test public void testAllFilesPresentInToArray() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/collectionStubs/toArray"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("customNonGenericToArray.kt") public void testCustomNonGenericToArray() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/customNonGenericToArray.kt"); } + @Test @TestMetadata("internalGenericToArray.kt") public void testInternalGenericToArray() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/internalGenericToArray.kt"); } + @Test @TestMetadata("noToArrayInJava.kt") public void testNoToArrayInJava() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/collectionStubs/toArray/noToArrayInJava.kt"); @@ -707,100 +815,109 @@ public class IrBytecodeListingTestGenerated extends AbstractIrBytecodeListingTes } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/coroutines") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Coroutines extends AbstractIrBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Coroutines { + @Test public void testAllFilesPresentInCoroutines() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("coroutineContextIntrinsic.kt") public void testCoroutineContextIntrinsic() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/coroutines/coroutineContextIntrinsic.kt"); } + @Test @TestMetadata("coroutineFields.kt") public void testCoroutineFields() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/coroutines/coroutineFields.kt"); } + @Test @TestMetadata("oomInReturnUnit.kt") public void testOomInReturnUnit() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/coroutines/oomInReturnUnit.kt"); } + @Test @TestMetadata("privateAccessor.kt") public void testPrivateAccessor() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/coroutines/privateAccessor.kt"); } + @Test @TestMetadata("privateSuspendFun.kt") public void testPrivateSuspendFun() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/coroutines/privateSuspendFun.kt"); } + @Test @TestMetadata("suspendImpl.kt") public void testSuspendImpl() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/coroutines/suspendImpl.kt"); } + @Test @TestMetadata("suspendReifiedFun.kt") public void testSuspendReifiedFun() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/coroutines/suspendReifiedFun.kt"); } + @Test @TestMetadata("tcoContinuation.kt") public void testTcoContinuation() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/coroutines/tcoContinuation.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/coroutines/spilling") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Spilling extends AbstractIrBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Spilling { + @Test public void testAllFilesPresentInSpilling() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/coroutines/spilling"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("booleanParameter.kt") public void testBooleanParameter() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/booleanParameter.kt"); } + @Test @TestMetadata("component1.kt") public void testComponent1() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/component1.kt"); } + @Test @TestMetadata("destructured.kt") public void testDestructured() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/destructured.kt"); } + @Test @TestMetadata("field.kt") public void testField() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/field.kt"); } + @Test @TestMetadata("lambda.kt") public void testLambda() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/lambda.kt"); } + @Test @TestMetadata("select.kt") public void testSelect() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/select.kt"); } + @Test @TestMetadata("unreachable.kt") public void testUnreachable() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/coroutines/spilling/unreachable.kt"); @@ -808,201 +925,219 @@ public class IrBytecodeListingTestGenerated extends AbstractIrBytecodeListingTes } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/defaultArguments") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultArguments extends AbstractIrBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class DefaultArguments { + @Test public void testAllFilesPresentInDefaultArguments() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/defaultArguments"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("functionInMultifileClass.kt") public void testFunctionInMultifileClass() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/defaultArguments/functionInMultifileClass.kt"); } + @Test @TestMetadata("functionInMultifileClassWithInheritedParts.kt") public void testFunctionInMultifileClassWithInheritedParts() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/defaultArguments/functionInMultifileClassWithInheritedParts.kt"); } + @Test @TestMetadata("internalNameMangling.kt") public void testInternalNameMangling() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/defaultArguments/internalNameMangling.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/deprecated") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Deprecated extends AbstractIrBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Deprecated { + @Test public void testAllFilesPresentInDeprecated() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/deprecated"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("deprecatedClass.kt") public void testDeprecatedClass() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/deprecated/deprecatedClass.kt"); } + @Test @TestMetadata("deprecatedEnumEntryFields.kt") public void testDeprecatedEnumEntryFields() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/deprecated/deprecatedEnumEntryFields.kt"); } + @Test @TestMetadata("deprecatedInMultifileClass.kt") public void testDeprecatedInMultifileClass() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/deprecated/deprecatedInMultifileClass.kt"); } + @Test @TestMetadata("deprecatedLateinitVar.kt") public void testDeprecatedLateinitVar() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/deprecated/deprecatedLateinitVar.kt"); } + @Test @TestMetadata("deprecatedProperty.kt") public void testDeprecatedProperty() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/deprecated/deprecatedProperty.kt"); } + @Test @TestMetadata("hidden.kt") public void testHidden() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/deprecated/hidden.kt"); } + @Test @TestMetadata("inheritingDeprecation.kt") public void testInheritingDeprecation() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/deprecated/inheritingDeprecation.kt"); } + @Test @TestMetadata("inlineClassTypesInSignature.kt") public void testInlineClassTypesInSignature() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/deprecated/inlineClassTypesInSignature.kt"); } + @Test @TestMetadata("jvmStaticDeprecatedProperty.kt") public void testJvmStaticDeprecatedProperty() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/deprecated/jvmStaticDeprecatedProperty.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/inline") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Inline extends AbstractIrBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Inline { + @Test public void testAllFilesPresentInInline() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("inlineOnly.kt") public void testInlineOnly() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/inlineOnly.kt"); } + @Test @TestMetadata("InlineOnlyMultifile.kt") public void testInlineOnlyMultifile() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/InlineOnlyMultifile.kt"); } + @Test @TestMetadata("inlineOnlyProperty.kt") public void testInlineOnlyProperty() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/inlineOnlyProperty.kt"); } + @Test @TestMetadata("InlineOnlyPropertyMultifile.kt") public void testInlineOnlyPropertyMultifile() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/InlineOnlyPropertyMultifile.kt"); } + @Test @TestMetadata("inlineReified.kt") public void testInlineReified() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/inlineReified.kt"); } + @Test @TestMetadata("InlineReifiedMultifile.kt") public void testInlineReifiedMultifile() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/InlineReifiedMultifile.kt"); } + @Test @TestMetadata("inlineReifiedProperty.kt") public void testInlineReifiedProperty() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/inlineReifiedProperty.kt"); } + @Test @TestMetadata("InlineReifiedPropertyMultifile.kt") public void testInlineReifiedPropertyMultifile() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/InlineReifiedPropertyMultifile.kt"); } + @Test @TestMetadata("inlineReifiedPropertyVisibility.kt") public void testInlineReifiedPropertyVisibility() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/inlineReifiedPropertyVisibility.kt"); } + @Test @TestMetadata("inlineReifiedVisibility.kt") public void testInlineReifiedVisibility() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/inlineReifiedVisibility.kt"); } + @Test @TestMetadata("simpleNamed.kt") public void testSimpleNamed() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/simpleNamed.kt"); } + @Test @TestMetadata("suspendInlineReified.kt") public void testSuspendInlineReified() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/suspendInlineReified.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class EnclosingInfo extends AbstractIrBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class EnclosingInfo { + @Test public void testAllFilesPresentInEnclosingInfo() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("crossinlineLambdaChain.kt") public void testCrossinlineLambdaChain() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/crossinlineLambdaChain.kt"); } + @Test @TestMetadata("kt10259.kt") public void testKt10259() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/kt10259.kt"); } + @Test @TestMetadata("lambdaInInitBlockNoPrimaryConstructor.kt") public void testLambdaInInitBlockNoPrimaryConstructor() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/lambdaInInitBlockNoPrimaryConstructor.kt"); } + @Test @TestMetadata("lambdaInInnerClassConstructor.kt") public void testLambdaInInnerClassConstructor() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/lambdaInInnerClassConstructor.kt"); } + @Test @TestMetadata("transformedConstructor.kt") public void testTransformedConstructor() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/transformedConstructor.kt"); } + @Test @TestMetadata("transformedConstructorWithNestedInline.kt") public void testTransformedConstructorWithNestedInline() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inline/enclosingInfo/transformedConstructorWithNestedInline.kt"); @@ -1010,422 +1145,473 @@ public class IrBytecodeListingTestGenerated extends AbstractIrBytecodeListingTes } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/inlineClasses") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineClasses extends AbstractIrBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class InlineClasses { + @Test public void testAllFilesPresentInInlineClasses() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("annotatedPropertyWithInlineClassTypeInSignature.kt") public void testAnnotatedPropertyWithInlineClassTypeInSignature() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/annotatedPropertyWithInlineClassTypeInSignature.kt"); } + @Test @TestMetadata("annotationGetters.kt") public void testAnnotationGetters() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/annotationGetters.kt"); } + @Test @TestMetadata("annotationsOnHiddenConstructor.kt") public void testAnnotationsOnHiddenConstructor() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/annotationsOnHiddenConstructor.kt"); } + @Test @TestMetadata("companionObjectInsideInlineClass.kt") public void testCompanionObjectInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/companionObjectInsideInlineClass.kt"); } + @Test @TestMetadata("computablePropertiesInsideInlineClass.kt") public void testComputablePropertiesInsideInlineClass() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/computablePropertiesInsideInlineClass.kt"); } + @Test @TestMetadata("constructor.kt") public void testConstructor() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/constructor.kt"); } + @Test @TestMetadata("constructorsWithDefaultParameterValues.kt") public void testConstructorsWithDefaultParameterValues() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/constructorsWithDefaultParameterValues.kt"); } + @Test @TestMetadata("defaultInterfaceMethodsInInlineClass.kt") public void testDefaultInterfaceMethodsInInlineClass() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/defaultInterfaceMethodsInInlineClass.kt"); } + @Test @TestMetadata("genericChild.kt") public void testGenericChild() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/genericChild.kt"); } + @Test @TestMetadata("hiddenConstructor.kt") public void testHiddenConstructor() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/hiddenConstructor.kt"); } + @Test @TestMetadata("inlineCharSequence.kt") public void testInlineCharSequence() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCharSequence.kt"); } + @Test @TestMetadata("inlineClassMembersVisibility.kt") public void testInlineClassMembersVisibility() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassMembersVisibility.kt"); } + @Test @TestMetadata("inlineClassTypeParametersInConstructor.kt") public void testInlineClassTypeParametersInConstructor() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassTypeParametersInConstructor.kt"); } + @Test @TestMetadata("inlineClassWithInlineClassUnderlyingType.kt") public void testInlineClassWithInlineClassUnderlyingType() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassWithInlineClassUnderlyingType.kt"); } + @Test @TestMetadata("inlineClassWithManyKindsOfMembers.kt") public void testInlineClassWithManyKindsOfMembers() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineClassWithManyKindsOfMembers.kt"); } + @Test @TestMetadata("jvmName.kt") public void testJvmName() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/jvmName.kt"); } + @Test @TestMetadata("jvmOverloadsOnTopLevelFunctionReturningInlineClassValue.kt") public void testJvmOverloadsOnTopLevelFunctionReturningInlineClassValue() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/jvmOverloadsOnTopLevelFunctionReturningInlineClassValue.kt"); } + @Test @TestMetadata("memberExtensionProperty.kt") public void testMemberExtensionProperty() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/memberExtensionProperty.kt"); } + @Test @TestMetadata("noArgConstructorForInlineClassParameter.kt") public void testNoArgConstructorForInlineClassParameter() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/noArgConstructorForInlineClassParameter.kt"); } + @Test @TestMetadata("noBridgesForErasedInlineClass.kt") public void testNoBridgesForErasedInlineClass() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/noBridgesForErasedInlineClass.kt"); } + @Test @TestMetadata("nullabilityAnnotationsOnInlineClassMembers.kt") public void testNullabilityAnnotationsOnInlineClassMembers() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/nullabilityAnnotationsOnInlineClassMembers.kt"); } + @Test @TestMetadata("nullabilityInExpansion.kt") public void testNullabilityInExpansion() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/nullabilityInExpansion.kt"); } + @Test @TestMetadata("nullableAndNotNullPrimitive.kt") public void testNullableAndNotNullPrimitive() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/nullableAndNotNullPrimitive.kt"); } + @Test @TestMetadata("overridingGenericMethodWithInlineClassParameterType.kt") public void testOverridingGenericMethodWithInlineClassParameterType() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/overridingGenericMethodWithInlineClassParameterType.kt"); } + @Test @TestMetadata("overridingGenericMethodWithInlineClassReturnType.kt") public void testOverridingGenericMethodWithInlineClassReturnType() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/overridingGenericMethodWithInlineClassReturnType.kt"); } + @Test @TestMetadata("primaryValsWithDifferentVisibilities.kt") public void testPrimaryValsWithDifferentVisibilities() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/primaryValsWithDifferentVisibilities.kt"); } + @Test @TestMetadata("publishedApiAnnotationOnInlineClassConstructor.kt") public void testPublishedApiAnnotationOnInlineClassConstructor() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/publishedApiAnnotationOnInlineClassConstructor.kt"); } + @Test @TestMetadata("shapeOfInlineClassWithPrimitive.kt") public void testShapeOfInlineClassWithPrimitive() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/shapeOfInlineClassWithPrimitive.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/inlineClasses/defaultInterfaceMembers") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class DefaultInterfaceMembers extends AbstractIrBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class DefaultInterfaceMembers { + @Test public void testAllFilesPresentInDefaultInterfaceMembers() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inlineClasses/defaultInterfaceMembers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("javaDefaultInterfaceMember.kt") public void testJavaDefaultInterfaceMember() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/defaultInterfaceMembers/javaDefaultInterfaceMember.kt"); } + @Test @TestMetadata("jvmDefaultAll.kt") public void testJvmDefaultAll() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/defaultInterfaceMembers/jvmDefaultAll.kt"); } + @Test @TestMetadata("jvmDefaultEnable.kt") public void testJvmDefaultEnable() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/defaultInterfaceMembers/jvmDefaultEnable.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineCollection extends AbstractIrBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class InlineCollection { + @Test public void testAllFilesPresentInInlineCollection() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("collection.kt") public void testCollection() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/collection.kt"); } + @Test @TestMetadata("iterable.kt") public void testIterable() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/iterable.kt"); } + @Test @TestMetadata("iterator.kt") public void testIterator() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/iterator.kt"); } + @Test @TestMetadata("list.kt") public void testList() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/list.kt"); } + @Test @TestMetadata("map.kt") public void testMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/map.kt"); } + @Test @TestMetadata("mapEntry.kt") public void testMapEntry() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mapEntry.kt"); } + @Test @TestMetadata("mutableCollection.kt") public void testMutableCollection() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableCollection.kt"); } + @Test @TestMetadata("mutableIterable.kt") public void testMutableIterable() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableIterable.kt"); } + @Test @TestMetadata("mutableIterator.kt") public void testMutableIterator() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableIterator.kt"); } + @Test @TestMetadata("mutableList.kt") public void testMutableList() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableList.kt"); } + @Test @TestMetadata("mutableMap.kt") public void testMutableMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableMap.kt"); } + @Test @TestMetadata("mutableMapEntry.kt") public void testMutableMapEntry() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableMapEntry.kt"); } + @Test @TestMetadata("mutableSet.kt") public void testMutableSet() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/mutableSet.kt"); } + @Test @TestMetadata("set.kt") public void testSet() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/set.kt"); } + @Test @TestMetadata("UIntArrayWithFullJdk.kt") public void testUIntArrayWithFullJdk() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollection/UIntArrayWithFullJdk.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class InlineCollectionOfInlineClass extends AbstractIrBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class InlineCollectionOfInlineClass { + @Test public void testAllFilesPresentInInlineCollectionOfInlineClass() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("collection.kt") public void testCollection() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/collection.kt"); } + @Test @TestMetadata("iterable.kt") public void testIterable() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/iterable.kt"); } + @Test @TestMetadata("iterator.kt") public void testIterator() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/iterator.kt"); } + @Test @TestMetadata("list.kt") public void testList() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/list.kt"); } + @Test @TestMetadata("map.kt") public void testMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/map.kt"); } + @Test @TestMetadata("mapEntry.kt") public void testMapEntry() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mapEntry.kt"); } + @Test @TestMetadata("mutableCollection.kt") public void testMutableCollection() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableCollection.kt"); } + @Test @TestMetadata("mutableIterable.kt") public void testMutableIterable() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableIterable.kt"); } + @Test @TestMetadata("mutableIterator.kt") public void testMutableIterator() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableIterator.kt"); } + @Test @TestMetadata("mutableList.kt") public void testMutableList() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableList.kt"); } + @Test @TestMetadata("mutableMap.kt") public void testMutableMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableMap.kt"); } + @Test @TestMetadata("mutableMapEntry.kt") public void testMutableMapEntry() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableMapEntry.kt"); } + @Test @TestMetadata("mutableSet.kt") public void testMutableSet() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableSet.kt"); } + @Test @TestMetadata("mutableSet2.kt") public void testMutableSet2() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/mutableSet2.kt"); } + @Test @TestMetadata("set.kt") public void testSet() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/inlineCollectionOfInlineClass/set.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class ReturnResult extends AbstractIrBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class ReturnResult { + @Test public void testAllFilesPresentInReturnResult() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("class.kt") public void testClass() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult/class.kt"); } + @Test @TestMetadata("classAnyOverride.kt") public void testClassAnyOverride() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult/classAnyOverride.kt"); } + @Test @TestMetadata("classGenericOverride.kt") public void testClassGenericOverride() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult/classGenericOverride.kt"); } + @Test @TestMetadata("classResultOverride.kt") public void testClassResultOverride() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult/classResultOverride.kt"); } + @Test @TestMetadata("interface.kt") public void testInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult/interface.kt"); } + @Test @TestMetadata("topLevel.kt") public void testTopLevel() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/returnResult/topLevel.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/inlineClasses/stdlibManglingIn1430") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class StdlibManglingIn1430 extends AbstractIrBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class StdlibManglingIn1430 { + @Test public void testAllFilesPresentInStdlibManglingIn1430() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/inlineClasses/stdlibManglingIn1430"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("new.kt") public void testNew() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/stdlibManglingIn1430/new.kt"); } + @Test @TestMetadata("old.kt") public void testOld() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/inlineClasses/stdlibManglingIn1430/old.kt"); @@ -1433,84 +1619,79 @@ public class IrBytecodeListingTestGenerated extends AbstractIrBytecodeListingTes } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/jvm8") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Jvm8 extends AbstractIrBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Jvm8 { + @Test public void testAllFilesPresentInJvm8() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/jvm8"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/jvm8/defaults") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Defaults extends AbstractIrBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Defaults { + @Test public void testAllFilesPresentInDefaults() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/jvm8/defaults"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class AllCompatibility extends AbstractIrBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class AllCompatibility { + @Test public void testAllFilesPresentInAllCompatibility() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("deprecation.kt") public void testDeprecation() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/deprecation.kt"); } + @Test @TestMetadata("deprecationWithDefault.kt") public void testDeprecationWithDefault() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/deprecationWithDefault.kt"); } + @Test @TestMetadata("interfaceProperty.kt") public void testInterfaceProperty() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/interfaceProperty.kt"); } + @Test @TestMetadata("jvmDefaultWithoutCompatibility.kt") public void testJvmDefaultWithoutCompatibility() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/jvmDefaultWithoutCompatibility.kt"); } + @Test @TestMetadata("noDefaultImplsOnEmptySubInterface.kt") public void testNoDefaultImplsOnEmptySubInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/noDefaultImplsOnEmptySubInterface.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/specialization") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Specialization extends AbstractIrBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Specialization { + @Test public void testAllFilesPresentInSpecialization() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/specialization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("primitiveAndAny.kt") public void testPrimitiveAndAny() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/specialization/primitiveAndAny.kt"); } + @Test @TestMetadata("primitiveAndNullable.kt") public void testPrimitiveAndNullable() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/allCompatibility/specialization/primitiveAndNullable.kt"); @@ -1518,36 +1699,32 @@ public class IrBytecodeListingTestGenerated extends AbstractIrBytecodeListingTes } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/jvm8/defaults/enable") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Enable extends AbstractIrBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Enable { + @Test public void testAllFilesPresentInEnable() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/jvm8/defaults/enable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("interfaceProperty.kt") public void testInterfaceProperty() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/enable/interfaceProperty.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/jvm8/defaults/noDefaultImpl") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class NoDefaultImpl extends AbstractIrBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class NoDefaultImpl { + @Test public void testAllFilesPresentInNoDefaultImpl() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/jvm8/defaults/noDefaultImpl"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("interfaceProperty.kt") public void testInterfaceProperty() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/jvm8/defaults/noDefaultImpl/interfaceProperty.kt"); @@ -1556,426 +1733,461 @@ public class IrBytecodeListingTestGenerated extends AbstractIrBytecodeListingTes } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/localFunctions") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class LocalFunctions extends AbstractIrBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class LocalFunctions { + @Test public void testAllFilesPresentInLocalFunctions() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/localFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("inInitBlock.kt") public void testInInitBlock() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/localFunctions/inInitBlock.kt"); } + @Test @TestMetadata("simple.kt") public void testSimple() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/localFunctions/simple.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/main") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Main extends AbstractIrBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Main { + @Test public void testAllFilesPresentInMain() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/main"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("multifileSuspend.kt") public void testMultifileSuspend() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/main/multifileSuspend.kt"); } + @Test @TestMetadata("parameterlessMain.kt") public void testParameterlessMain() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/main/parameterlessMain.kt"); } + @Test @TestMetadata("parameterlessMain_before.kt") public void testParameterlessMain_before() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/main/parameterlessMain_before.kt"); } + @Test @TestMetadata("suspendMain.kt") public void testSuspendMain() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/main/suspendMain.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/multifileClasses") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class MultifileClasses extends AbstractIrBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class MultifileClasses { + @Test public void testAllFilesPresentInMultifileClasses() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/multifileClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("emptyMultifileFacade.kt") public void testEmptyMultifileFacade() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/multifileClasses/emptyMultifileFacade.kt"); } + @Test @TestMetadata("jvmSynthetic.kt") public void testJvmSynthetic() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/multifileClasses/jvmSynthetic.kt"); } + @Test @TestMetadata("kt43519.kt") public void testKt43519() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/multifileClasses/kt43519.kt"); } + @Test @TestMetadata("multiClassPartSourceMultipleParts.kt") public void testMultiClassPartSourceMultipleParts() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/multifileClasses/multiClassPartSourceMultipleParts.kt"); } + @Test @TestMetadata("multiClassPartSourceSinglePart.kt") public void testMultiClassPartSourceSinglePart() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/multifileClasses/multiClassPartSourceSinglePart.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/multiplatform") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Multiplatform extends AbstractIrBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Multiplatform { + @Test public void testAllFilesPresentInMultiplatform() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("optionalExpectation.kt") public void testOptionalExpectation() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/multiplatform/optionalExpectation.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class NullabilityAnnotations extends AbstractIrBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class NullabilityAnnotations { + @Test public void testAllFilesPresentInNullabilityAnnotations() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("lateInitNotNull.kt") public void testLateInitNotNull() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/lateInitNotNull.kt"); } + @Test @TestMetadata("nullabilityAnnotationsForReturnType.kt") public void testNullabilityAnnotationsForReturnType() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/nullabilityAnnotationsForReturnType.kt"); } + @Test @TestMetadata("nullabilityAnnotationsOnDelegatedMembers.kt") public void testNullabilityAnnotationsOnDelegatedMembers() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/nullabilityAnnotationsOnDelegatedMembers.kt"); } + @Test @TestMetadata("platformTypes.kt") public void testPlatformTypes() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/platformTypes.kt"); } + @Test @TestMetadata("samAdapterForJavaInterfaceWithNullability.kt") public void testSamAdapterForJavaInterfaceWithNullability() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/nullabilityAnnotations/samAdapterForJavaInterfaceWithNullability.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/sam") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Sam extends AbstractIrBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Sam { + @Test public void testAllFilesPresentInSam() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("callableRefGenericFunInterface.kt") public void testCallableRefGenericFunInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/callableRefGenericFunInterface.kt"); } + @Test @TestMetadata("callableRefGenericSamInterface.kt") public void testCallableRefGenericSamInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/callableRefGenericSamInterface.kt"); } + @Test @TestMetadata("callableRefSpecializedFunInterface.kt") public void testCallableRefSpecializedFunInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/callableRefSpecializedFunInterface.kt"); } + @Test @TestMetadata("callableRefSpecializedSamInterface.kt") public void testCallableRefSpecializedSamInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/callableRefSpecializedSamInterface.kt"); } + @Test @TestMetadata("genericFunInterface.kt") public void testGenericFunInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/genericFunInterface.kt"); } + @Test @TestMetadata("genericSamInterface.kt") public void testGenericSamInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/genericSamInterface.kt"); } + @Test @TestMetadata("kt16650.kt") public void testKt16650() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/kt16650.kt"); } + @Test @TestMetadata("lambdaGenericFunInterface.kt") public void testLambdaGenericFunInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/lambdaGenericFunInterface.kt"); } + @Test @TestMetadata("lambdaGenericSamInterface.kt") public void testLambdaGenericSamInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/lambdaGenericSamInterface.kt"); } + @Test @TestMetadata("lambdaSpecializedFunInterface.kt") public void testLambdaSpecializedFunInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/lambdaSpecializedFunInterface.kt"); } + @Test @TestMetadata("lambdaSpecializedSamInterface.kt") public void testLambdaSpecializedSamInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/lambdaSpecializedSamInterface.kt"); } + @Test @TestMetadata("reusedSamWrapperClasses.kt") public void testReusedSamWrapperClasses() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/reusedSamWrapperClasses.kt"); } + @Test @TestMetadata("samAdapterAndInlinedOne.kt") public void testSamAdapterAndInlinedOne() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/samAdapterAndInlinedOne.kt"); } + @Test @TestMetadata("specializedFunInterface.kt") public void testSpecializedFunInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/specializedFunInterface.kt"); } + @Test @TestMetadata("specializedSamInterface.kt") public void testSpecializedSamInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/specializedSamInterface.kt"); } + @Test @TestMetadata("wrapperInlinedFromAnotherClass.kt") public void testWrapperInlinedFromAnotherClass() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sam/wrapperInlinedFromAnotherClass.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/sealed") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Sealed extends AbstractIrBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Sealed { + @Test public void testAllFilesPresentInSealed() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/sealed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("annotationsOnSealedConstructor.kt") public void testAnnotationsOnSealedConstructor() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sealed/annotationsOnSealedConstructor.kt"); } + @Test @TestMetadata("sealedClassConstructor_1_4.kt") public void testSealedClassConstructor_1_4() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sealed/sealedClassConstructor_1_4.kt"); } + @Test @TestMetadata("sealedClassConstructor_1_5.kt") public void testSealedClassConstructor_1_5() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/sealed/sealedClassConstructor_1_5.kt"); } } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/specialBridges") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class SpecialBridges extends AbstractIrBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class SpecialBridges { + @Test @TestMetadata("abstractCollections.kt") public void testAbstractCollections() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractCollections.kt"); } + @Test @TestMetadata("abstractIterables.kt") public void testAbstractIterables() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractIterables.kt"); } + @Test @TestMetadata("abstractLists.kt") public void testAbstractLists() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractLists.kt"); } + @Test @TestMetadata("abstractListsWithJavaBase.kt") public void testAbstractListsWithJavaBase() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractListsWithJavaBase.kt"); } + @Test @TestMetadata("abstractMutableCollectionOfPrimitive.kt") public void testAbstractMutableCollectionOfPrimitive() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractMutableCollectionOfPrimitive.kt"); } + @Test @TestMetadata("abstractMutableListOfPrimitive.kt") public void testAbstractMutableListOfPrimitive() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractMutableListOfPrimitive.kt"); } + @Test @TestMetadata("abstractMutableLists.kt") public void testAbstractMutableLists() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractMutableLists.kt"); } + @Test @TestMetadata("abstractSets.kt") public void testAbstractSets() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/abstractSets.kt"); } + @Test public void testAllFilesPresentInSpecialBridges() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/specialBridges"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("charSequence.kt") public void testCharSequence() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/charSequence.kt"); } + @Test @TestMetadata("contains.kt") public void testContains() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/contains.kt"); } + @Test @TestMetadata("kt41123.kt") public void testKt41123() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/kt41123.kt"); } + @Test @TestMetadata("mutableCollectionOfPrimitive.kt") public void testMutableCollectionOfPrimitive() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/mutableCollectionOfPrimitive.kt"); } + @Test @TestMetadata("mutableListOfPrimitive.kt") public void testMutableListOfPrimitive() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/mutableListOfPrimitive.kt"); } + @Test @TestMetadata("noDefaultImplsOnEmptySubInterface.kt") public void testNoDefaultImplsOnEmptySubInterface() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/noDefaultImplsOnEmptySubInterface.kt"); } + @Test @TestMetadata("noSpecialBridgeIfPresentInSuperClass.kt") public void testNoSpecialBridgeIfPresentInSuperClass() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/noSpecialBridgeIfPresentInSuperClass.kt"); } + @Test @TestMetadata("number.kt") public void testNumber() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/number.kt"); } + @Test @TestMetadata("redundantStubForSize.kt") public void testRedundantStubForSize() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/redundantStubForSize.kt"); } + @Test @TestMetadata("removeAtTwoSpecialBridges.kt") public void testRemoveAtTwoSpecialBridges() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/removeAtTwoSpecialBridges.kt"); } + @Test @TestMetadata("unsignedArray.kt") public void testUnsignedArray() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/unsignedArray.kt"); } + @Nested @TestMetadata("compiler/testData/codegen/bytecodeListing/specialBridges/signatures") @TestDataPath("$PROJECT_ROOT") - @RunWith(JUnit3RunnerWithInners.class) - public static class Signatures extends AbstractIrBytecodeListingTest { - private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); - } - + public class Signatures { + @Test public void testAllFilesPresentInSignatures() throws Exception { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeListing/specialBridges/signatures"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true); } + @Test @TestMetadata("genericClass.kt") public void testGenericClass() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/genericClass.kt"); } + @Test @TestMetadata("implementsJavaMap.kt") public void testImplementsJavaMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/implementsJavaMap.kt"); } + @Test @TestMetadata("implementsMap.kt") public void testImplementsMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/implementsMap.kt"); } + @Test @TestMetadata("implementsSortedMap.kt") public void testImplementsSortedMap() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/implementsSortedMap.kt"); } + @Test @TestMetadata("kt43610.kt") public void testKt43610() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/kt43610.kt"); } + @Test @TestMetadata("nonGenericClass.kt") public void testNonGenericClass() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/nonGenericClass.kt"); } + @Test @TestMetadata("partiallySpecializedClass.kt") public void testPartiallySpecializedClass() throws Exception { runTest("compiler/testData/codegen/bytecodeListing/specialBridges/signatures/partiallySpecializedClass.kt"); diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/handlers/BytecodeListingHandler.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/handlers/BytecodeListingHandler.kt index ccfbab841ab..1f7424b784d 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/handlers/BytecodeListingHandler.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/handlers/BytecodeListingHandler.kt @@ -8,6 +8,7 @@ package org.jetbrains.kotlin.test.backend.handlers import org.jetbrains.kotlin.codegen.BytecodeListingTextCollectingVisitor import org.jetbrains.kotlin.test.directives.CodegenTestDirectives import org.jetbrains.kotlin.test.directives.CodegenTestDirectives.CHECK_BYTECODE_LISTING +import org.jetbrains.kotlin.test.directives.CodegenTestDirectives.IGNORE_ANNOTATIONS import org.jetbrains.kotlin.test.directives.CodegenTestDirectives.WITH_SIGNATURES import org.jetbrains.kotlin.test.directives.model.DirectivesContainer import org.jetbrains.kotlin.test.model.BinaryArtifacts @@ -16,7 +17,9 @@ import org.jetbrains.kotlin.test.services.TestServices import org.jetbrains.kotlin.test.services.defaultsProvider import org.jetbrains.kotlin.test.services.moduleStructure import org.jetbrains.kotlin.test.utils.MultiModuleInfoDumperImpl +import org.jetbrains.kotlin.test.utils.withExtension import org.jetbrains.kotlin.test.utils.withSuffixAndExtension +import java.io.File class BytecodeListingHandler(testServices: TestServices) : JvmBinaryArtifactHandler(testServices) { override val directivesContainers: List @@ -29,16 +32,28 @@ class BytecodeListingHandler(testServices: TestServices) : JvmBinaryArtifactHand val dump = BytecodeListingTextCollectingVisitor.getText( info.classFileFactory, BytecodeListingTextCollectingVisitor.Filter.ForCodegenTests, - withSignatures = WITH_SIGNATURES in module.directives + withSignatures = WITH_SIGNATURES in module.directives, + withAnnotations = IGNORE_ANNOTATIONS !in module.directives, ) multiModuleInfoDumper.builderForModule(module).append(dump) } override fun processAfterAllModules(someAssertionWasFailed: Boolean) { if (multiModuleInfoDumper.isEmpty()) return - val suffix = if (testServices.defaultsProvider.defaultTargetBackend?.isIR == true) "_ir" else "" - val file = testServices.moduleStructure.originalTestDataFiles.first() - .withSuffixAndExtension(suffix, ".txt") - assertions.assertEqualsToFile(file, multiModuleInfoDumper.generateResultingDump()) + + val sourceFile = testServices.moduleStructure.originalTestDataFiles.first() + val defaultTxtFile = sourceFile.withExtension(".txt") + val isIr = testServices.defaultsProvider.defaultTargetBackend?.isIR == true + val txtFile = + if (isIr) sourceFile.withSuffixAndExtension("_ir", ".txt").takeIf(File::exists) ?: defaultTxtFile + else defaultTxtFile + + assertions.assertEqualsToFile(txtFile, multiModuleInfoDumper.generateResultingDump()) + + if (isIr && txtFile != defaultTxtFile) { + if (txtFile.readText() == defaultTxtFile.readText()) assertions.fail { + "JVM and JVM_IR golden files are identical. Remove $txtFile." + } + } } } diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/directives/CodegenTestDirectives.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/directives/CodegenTestDirectives.kt index 9f5bfe48775..98877399fdf 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/directives/CodegenTestDirectives.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/directives/CodegenTestDirectives.kt @@ -58,7 +58,12 @@ object CodegenTestDirectives : SimpleDirectivesContainer() { ) val WITH_SIGNATURES by directive( - description = "Include generic signatures in generated classes dump", + description = "Include generic signatures in generated bytecode listing", + applicability = Global + ) + + val IGNORE_ANNOTATIONS by directive( + description = "Do not render annotations in generated bytecode listing", applicability = Global ) diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/codegen/AbstractBytecodeListingTest.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/codegen/AbstractBytecodeListingTest.kt new file mode 100644 index 00000000000..d54fb6379c7 --- /dev/null +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/codegen/AbstractBytecodeListingTest.kt @@ -0,0 +1,63 @@ +/* + * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package org.jetbrains.kotlin.test.runners.codegen + +import org.jetbrains.kotlin.test.Constructor +import org.jetbrains.kotlin.test.TargetBackend +import org.jetbrains.kotlin.test.backend.BlackBoxCodegenSuppressor +import org.jetbrains.kotlin.test.backend.classic.ClassicJvmBackendFacade +import org.jetbrains.kotlin.test.backend.handlers.BytecodeListingHandler +import org.jetbrains.kotlin.test.backend.ir.JvmIrBackendFacade +import org.jetbrains.kotlin.test.builders.TestConfigurationBuilder +import org.jetbrains.kotlin.test.directives.CodegenTestDirectives +import org.jetbrains.kotlin.test.runners.AbstractKotlinCompilerWithTargetBackendTest +import org.jetbrains.kotlin.test.frontend.classic.* +import org.jetbrains.kotlin.test.model.* + +abstract class AbstractBytecodeListingTestBase>( + targetBackend: TargetBackend, + val targetFrontend: FrontendKind<*> +) : AbstractKotlinCompilerWithTargetBackendTest(targetBackend) { + abstract val frontendFacade: Constructor> + abstract val frontendToBackendConverter: Constructor> + abstract val backendFacade: Constructor> + + override fun TestConfigurationBuilder.configuration() { + commonConfigurationForCodegenTest(targetFrontend, frontendFacade, frontendToBackendConverter, backendFacade) + commonHandlersForCodegenTest() + defaultDirectives { + +CodegenTestDirectives.CHECK_BYTECODE_LISTING + } + useArtifactsHandlers(::BytecodeListingHandler) + useAfterAnalysisCheckers(::BlackBoxCodegenSuppressor) + } +} + +open class AbstractBytecodeListingTest : AbstractBytecodeListingTestBase( + TargetBackend.JVM, FrontendKinds.ClassicFrontend +) { + override val frontendFacade: Constructor> + get() = ::ClassicFrontendFacade + + override val frontendToBackendConverter: Constructor> + get() = ::ClassicFrontend2ClassicBackendConverter + + override val backendFacade: Constructor> + get() = ::ClassicJvmBackendFacade +} + +open class AbstractIrBytecodeListingTest : AbstractBytecodeListingTestBase( + TargetBackend.JVM_IR, FrontendKinds.ClassicFrontend +) { + override val frontendFacade: Constructor> + get() = ::ClassicFrontendFacade + + override val frontendToBackendConverter: Constructor> + get() = ::ClassicFrontend2IrConverter + + override val backendFacade: Constructor> + get() = ::JvmIrBackendFacade +} diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/codegen/AbstractJvmBlackBoxCodegenTestBase.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/codegen/AbstractJvmBlackBoxCodegenTestBase.kt index 180d3b077af..8a8bf302b4f 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/codegen/AbstractJvmBlackBoxCodegenTestBase.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/codegen/AbstractJvmBlackBoxCodegenTestBase.kt @@ -31,4 +31,3 @@ abstract class AbstractJvmBlackBoxCodegenTestBase) { compile(files) diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/codegen/ir/AbstractIrBytecodeListingTest.kt b/compiler/tests-common/tests/org/jetbrains/kotlin/codegen/ir/AbstractIrBytecodeListingTest.kt deleted file mode 100644 index 8502e113ac7..00000000000 --- a/compiler/tests-common/tests/org/jetbrains/kotlin/codegen/ir/AbstractIrBytecodeListingTest.kt +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -package org.jetbrains.kotlin.codegen.ir - -import org.jetbrains.kotlin.codegen.AbstractBytecodeListingTest -import org.jetbrains.kotlin.test.TargetBackend - -abstract class AbstractIrBytecodeListingTest : AbstractBytecodeListingTest() { - override val backend = TargetBackend.JVM_IR -} diff --git a/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit3CompilerTests.kt b/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit3CompilerTests.kt index 1ab73b113ca..7b01db9bfc0 100644 --- a/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit3CompilerTests.kt +++ b/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit3CompilerTests.kt @@ -9,7 +9,7 @@ import org.jetbrains.kotlin.asJava.AbstractCompilerLightClassTest import org.jetbrains.kotlin.cfg.AbstractControlFlowTest import org.jetbrains.kotlin.cfg.AbstractDataFlowTest import org.jetbrains.kotlin.cfg.AbstractPseudoValueTest -import org.jetbrains.kotlin.checkers.* +import org.jetbrains.kotlin.checkers.AbstractDiagnosticsTestWithJsStdLibAndBackendCompilation import org.jetbrains.kotlin.cli.AbstractCliTest import org.jetbrains.kotlin.codegen.* import org.jetbrains.kotlin.codegen.debugInformation.AbstractIrLocalVariableTest @@ -19,7 +19,8 @@ import org.jetbrains.kotlin.codegen.debugInformation.AbstractSteppingTest import org.jetbrains.kotlin.codegen.defaultConstructor.AbstractDefaultArgumentsReflectionTest import org.jetbrains.kotlin.codegen.flags.AbstractWriteFlagsTest import org.jetbrains.kotlin.codegen.ir.* -import org.jetbrains.kotlin.fir.* +import org.jetbrains.kotlin.fir.AbstractFirLoadCompiledKotlin +import org.jetbrains.kotlin.fir.AbstractLazyBodyIsNotTouchedTilContractsPhaseTest import org.jetbrains.kotlin.fir.builder.AbstractPartialRawFirBuilderTestCase import org.jetbrains.kotlin.fir.builder.AbstractRawFirBuilderLazyBodiesTestCase import org.jetbrains.kotlin.fir.builder.AbstractRawFirBuilderSourceElementMappingTestCase @@ -146,10 +147,6 @@ fun generateJUnit3CompilerTests(args: Array) { model("ir/sourceRanges") } - testClass { - model("codegen/bytecodeListing", targetBackend = TargetBackend.JVM) - } - testClass { model("codegen/topLevelMemberInvocation", extension = null, recursive = false) } @@ -389,10 +386,6 @@ fun generateJUnit3CompilerTests(args: Array) { ) } - testClass { - model("codegen/bytecodeListing", targetBackend = TargetBackend.JVM_IR) - } - testClass { model("checkLocalVariablesTable", targetBackend = TargetBackend.JVM_IR) } diff --git a/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit5CompilerTests.kt b/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit5CompilerTests.kt index 2cfb7f6db8c..b3b5710aae4 100644 --- a/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit5CompilerTests.kt +++ b/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit5CompilerTests.kt @@ -113,6 +113,14 @@ fun generateJUnit5CompilerTests(args: Array) { testClass { model("codegen/boxInline") } + + testClass { + model("codegen/bytecodeListing") + } + + testClass { + model("codegen/bytecodeListing") + } } // ---------------------------------------------- FIR tests ---------------------------------------------- diff --git a/plugins/allopen/allopen-cli/test/org/jetbrains/kotlin/allopen/AbstractBytecodeListingTestForAllOpen.kt b/plugins/allopen/allopen-cli/test/org/jetbrains/kotlin/allopen/AbstractBytecodeListingTestForAllOpen.kt index d2f9fee43d0..1d393f4f6c9 100644 --- a/plugins/allopen/allopen-cli/test/org/jetbrains/kotlin/allopen/AbstractBytecodeListingTestForAllOpen.kt +++ b/plugins/allopen/allopen-cli/test/org/jetbrains/kotlin/allopen/AbstractBytecodeListingTestForAllOpen.kt @@ -16,11 +16,13 @@ package org.jetbrains.kotlin.allopen +import org.jetbrains.kotlin.ObsoleteTestInfrastructure import org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment import org.jetbrains.kotlin.codegen.AbstractBytecodeListingTest import org.jetbrains.kotlin.extensions.DeclarationAttributeAltererExtension import org.jetbrains.kotlin.test.TargetBackend +@OptIn(ObsoleteTestInfrastructure::class) abstract class AbstractBytecodeListingTestForAllOpen : AbstractBytecodeListingTest() { override fun setupEnvironment(environment: KotlinCoreEnvironment) { val annotations = AbstractAllOpenDeclarationAttributeAltererExtension.ANNOTATIONS_FOR_TESTS + diff --git a/plugins/noarg/noarg-cli/test/org/jetbrains/kotlin/noarg/NoArgTests.kt b/plugins/noarg/noarg-cli/test/org/jetbrains/kotlin/noarg/NoArgTests.kt index b63012f9ee1..1dd64bbb277 100644 --- a/plugins/noarg/noarg-cli/test/org/jetbrains/kotlin/noarg/NoArgTests.kt +++ b/plugins/noarg/noarg-cli/test/org/jetbrains/kotlin/noarg/NoArgTests.kt @@ -28,6 +28,7 @@ abstract class AbstractBlackBoxCodegenTestForNoArg : AbstractBlackBoxCodegenTest } } +@OptIn(ObsoleteTestInfrastructure::class) abstract class AbstractBytecodeListingTestForNoArg : AbstractBytecodeListingTest() { override fun setupEnvironment(environment: KotlinCoreEnvironment) { NoArgComponentRegistrar.registerNoArgComponents(environment.project, NOARG_ANNOTATIONS, backend.isIR, false)