diff --git a/compiler/fir/analysis-tests/test/org/jetbrains/kotlin/test/LoadedMetadataDumpHandler.kt b/compiler/fir/analysis-tests/test/org/jetbrains/kotlin/test/LoadedMetadataDumpHandler.kt index aa0c9d94b9f..e14c36c2714 100644 --- a/compiler/fir/analysis-tests/test/org/jetbrains/kotlin/test/LoadedMetadataDumpHandler.kt +++ b/compiler/fir/analysis-tests/test/org/jetbrains/kotlin/test/LoadedMetadataDumpHandler.kt @@ -7,9 +7,13 @@ package org.jetbrains.kotlin.test import com.intellij.openapi.vfs.StandardFileSystems import com.intellij.openapi.vfs.VirtualFileManager +import org.jetbrains.kotlin.backend.common.CommonKLibResolver +import org.jetbrains.kotlin.cli.common.SessionWithSources +import org.jetbrains.kotlin.cli.common.prepareJsSessions import org.jetbrains.kotlin.cli.common.prepareJvmSessions import org.jetbrains.kotlin.cli.jvm.compiler.VfsBasedProjectEnvironment import org.jetbrains.kotlin.config.ApiVersion +import org.jetbrains.kotlin.config.CompilerConfiguration import org.jetbrains.kotlin.config.LanguageVersionSettingsImpl import org.jetbrains.kotlin.fir.BinaryModuleData import org.jetbrains.kotlin.fir.DependencyListForCliModule @@ -19,31 +23,119 @@ import org.jetbrains.kotlin.fir.declarations.utils.nameOrSpecialName import org.jetbrains.kotlin.fir.renderer.FirRenderer import org.jetbrains.kotlin.fir.resolve.providers.firProvider import org.jetbrains.kotlin.fir.resolve.providers.symbolProvider +import org.jetbrains.kotlin.js.resolve.JsPlatformAnalyzerServices import org.jetbrains.kotlin.name.ClassId import org.jetbrains.kotlin.name.FqName import org.jetbrains.kotlin.name.Name +import org.jetbrains.kotlin.platform.TargetPlatform +import org.jetbrains.kotlin.platform.isJs +import org.jetbrains.kotlin.platform.js.JsPlatforms import org.jetbrains.kotlin.platform.jvm.JvmPlatforms +import org.jetbrains.kotlin.platform.jvm.isJvm import org.jetbrains.kotlin.psi.KtFile import org.jetbrains.kotlin.resolve.DescriptorUtils +import org.jetbrains.kotlin.resolve.PlatformDependentAnalyzerServices import org.jetbrains.kotlin.resolve.jvm.platform.JvmPlatformAnalyzerServices -import org.jetbrains.kotlin.test.backend.handlers.JvmBinaryArtifactHandler +import org.jetbrains.kotlin.test.directives.FirDiagnosticsDirectives +import org.jetbrains.kotlin.test.directives.FirDiagnosticsDirectives.PLATFORM_DEPENDANT_METADATA import org.jetbrains.kotlin.test.directives.LanguageSettingsDirectives.LANGUAGE_VERSION +import org.jetbrains.kotlin.test.directives.model.DirectivesContainer import org.jetbrains.kotlin.test.directives.model.RegisteredDirectives import org.jetbrains.kotlin.test.directives.model.singleOrZeroValue import org.jetbrains.kotlin.test.frontend.classic.ClassicFrontendOutputArtifact +import org.jetbrains.kotlin.test.frontend.fir.FirFrontendFacade import org.jetbrains.kotlin.test.frontend.fir.FirOutputArtifact +import org.jetbrains.kotlin.test.frontend.fir.getAllJsDependenciesPaths import org.jetbrains.kotlin.test.model.* import org.jetbrains.kotlin.test.services.* import org.jetbrains.kotlin.test.util.trimTrailingWhitespacesAndRemoveRedundantEmptyLinesAtTheEnd import org.jetbrains.kotlin.test.utils.MultiModuleInfoDumper import org.jetbrains.kotlin.test.utils.withExtension +import org.jetbrains.kotlin.util.DummyLogger import org.jetbrains.kotlin.utils.addToStdlib.shouldNotBeCalled import java.io.File -class LoadedMetadataDumpHandler(testServices: TestServices) : JvmBinaryArtifactHandler(testServices) { +class JvmLoadedMetadataDumpHandler(testServices: TestServices) : AbstractLoadedMetadataDumpHandler( + testServices, + ArtifactKinds.Jvm +) { + override val targetPlatform: TargetPlatform + get() = JvmPlatforms.defaultJvmPlatform + override val platformAnalyzerServices: PlatformDependentAnalyzerServices + get() = JvmPlatformAnalyzerServices + override val dependencyKind: DependencyKind + get() = DependencyKind.Binary + + override fun prepareSessions( + module: TestModule, + configuration: CompilerConfiguration, + environment: VfsBasedProjectEnvironment, + moduleName: Name, + libraryList: DependencyListForCliModule, + ): List> { + return prepareJvmSessions( + files = emptyList(), + configuration, environment, moduleName, + extensionRegistrars = emptyList(), + environment.getSearchScopeForProjectLibraries(), + libraryList, + isCommonSource = { false }, + fileBelongsToModule = { _, _ -> false }, + createProviderAndScopeForIncrementalCompilation = { null } + ) + } +} + +class KlibLoadedMetadataDumpHandler(testServices: TestServices) : AbstractLoadedMetadataDumpHandler( + testServices, + ArtifactKinds.KLib +) { + override val targetPlatform: TargetPlatform + get() = JsPlatforms.defaultJsPlatform + override val platformAnalyzerServices: PlatformDependentAnalyzerServices + get() = JsPlatformAnalyzerServices + override val dependencyKind: DependencyKind + get() = DependencyKind.KLib + + override fun prepareSessions( + module: TestModule, + configuration: CompilerConfiguration, + environment: VfsBasedProjectEnvironment, + moduleName: Name, + libraryList: DependencyListForCliModule, + ): List> { + val libraries = getAllJsDependenciesPaths(module, testServices) + val resolvedLibraries = CommonKLibResolver.resolve(libraries, DummyLogger).getFullResolvedList() + return prepareJsSessions( + files = emptyList(), + configuration, + moduleName, + resolvedLibraries.map { it.library }, + libraryList, + extensionRegistrars = emptyList(), + isCommonSource = { false }, + fileBelongsToModule = { _, _ -> false }, + lookupTracker = null, + icData = null + ) + } +} + +abstract class AbstractLoadedMetadataDumpHandler>( + testServices: TestServices, + override val artifactKind: BinaryKind +) : BinaryArtifactHandler( + testServices, + artifactKind, + failureDisablesNextSteps = false, + doNotRunIfThereWerePreviousFailures = false +) { private val dumper: MultiModuleInfoDumper = MultiModuleInfoDumper() - override fun processModule(module: TestModule, info: BinaryArtifacts.Jvm) { + override val directiveContainers: List + get() = listOf(FirDiagnosticsDirectives) + + override fun processModule(module: TestModule, info: A) { if (testServices.loadedMetadataSuppressionDirective in module.directives) return val languageVersion = module.directives.singleOrZeroValue(LANGUAGE_VERSION) val languageVersionSettings = if (languageVersion != null) { @@ -51,10 +143,11 @@ class LoadedMetadataDumpHandler(testServices: TestServices) : JvmBinaryArtifactH } else { LanguageVersionSettingsImpl.DEFAULT } + val emptyModule = TestModule( - name = "empty", JvmPlatforms.defaultJvmPlatform, TargetBackend.JVM_IR, FrontendKinds.FIR, - BackendKinds.IrBackend, ArtifactKinds.Jvm, files = emptyList(), - allDependencies = listOf(DependencyDescription(module.name, DependencyKind.Binary, DependencyRelation.RegularDependency)), + name = "empty", module.targetPlatform, module.targetBackend, FrontendKinds.FIR, + BackendKinds.IrBackend, module.binaryKind, files = emptyList(), + allDependencies = listOf(DependencyDescription(module.name, dependencyKind, DependencyRelation.RegularDependency)), RegisteredDirectives.Empty, languageVersionSettings ) val configuration = testServices.compilerConfigurationProvider.getCompilerConfiguration(emptyModule) @@ -63,20 +156,22 @@ class LoadedMetadataDumpHandler(testServices: TestServices) : JvmBinaryArtifactH VirtualFileManager.getInstance().getFileSystem(StandardFileSystems.FILE_PROTOCOL), testServices.compilerConfigurationProvider.getPackagePartProviderFactory(emptyModule) ) + val moduleName = Name.identifier(emptyModule.name) val binaryModuleData = BinaryModuleData.initialize( - Name.identifier(emptyModule.name), - JvmPlatforms.defaultJvmPlatform, - JvmPlatformAnalyzerServices + moduleName, + targetPlatform, + platformAnalyzerServices ) - val session = prepareJvmSessions( - files = emptyList(), - configuration, environment, Name.identifier(emptyModule.name), - extensionRegistrars = emptyList(), - environment.getSearchScopeForProjectLibraries(), - DependencyListForCliModule.build(binaryModuleData), - isCommonSource = { false }, - fileBelongsToModule = { _, _ -> false }, - createProviderAndScopeForIncrementalCompilation = { null } + val libraryList = FirFrontendFacade.initializeLibraryList( + emptyModule, binaryModuleData, targetPlatform, configuration, testServices + ) + + val session = prepareSessions( + emptyModule, + configuration, + environment, + moduleName, + libraryList ).single().session val packageFqName = FqName("test") @@ -84,42 +179,104 @@ class LoadedMetadataDumpHandler(testServices: TestServices) : JvmBinaryArtifactH .append(collectPackageContent(session, packageFqName, extractNames(module, packageFqName))) } - @Suppress("warnings") + protected abstract val targetPlatform: TargetPlatform + protected abstract val platformAnalyzerServices: PlatformDependentAnalyzerServices + protected abstract val dependencyKind: DependencyKind + + protected abstract fun prepareSessions( + module: TestModule, + configuration: CompilerConfiguration, + environment: VfsBasedProjectEnvironment, + moduleName: Name, + libraryList: DependencyListForCliModule, + ): List> + override fun processAfterAllModules(someAssertionWasFailed: Boolean) { if (dumper.isEmpty()) return val testDataFile = testServices.moduleStructure.originalTestDataFiles.first() + + val frontendKind = testServices.defaultsProvider.defaultFrontend + val commonExtension = ".fir.txt" - val (specificExtension, otherSpecificExtension) = when (testServices.defaultsProvider.defaultFrontend) { + val (specificExtension, otherSpecificExtension) = when (frontendKind) { FrontendKinds.ClassicFrontend -> ".fir.k1.txt" to ".fir.k2.txt" FrontendKinds.FIR -> ".fir.k2.txt" to ".fir.k1.txt" else -> shouldNotBeCalled() } - val commonFirDump = testDataFile.withExtension(commonExtension) - val specificFirDump = testDataFile.withExtension(specificExtension) - val expectedFile = when { - commonFirDump.exists() -> commonFirDump - else -> specificFirDump - } + val targetPlatform = testServices.defaultsProvider.defaultPlatform + if (PLATFORM_DEPENDANT_METADATA in testServices.moduleStructure.allDirectives) { + val platformExtension = specificExtension.replace(".txt", "${targetPlatform.suffix}.txt") + val otherPlatformExtension = specificExtension.replace(".txt", "${targetPlatform.oppositeSuffix}.txt") - val actualText = dumper.generateResultingDump() - assertions.assertEqualsToFile(expectedFile, actualText, message = { "Content is not equal" }) + val expectedFile = testDataFile.withExtension(platformExtension) + val actualText = dumper.generateResultingDump() + assertions.assertEqualsToFile(expectedFile, actualText, message = { "Content is not equal" }) - if (commonFirDump.exists() && specificFirDump.exists()) { - assertions.fail { - """ + val checks = listOf(commonExtension, specificExtension, otherSpecificExtension).map { extension -> + { + val baseFile = testDataFile.withExtension(extension) + assertions.assertFalse(baseFile.exists()) { + "Base file $baseFile exists in presence of $PLATFORM_DEPENDANT_METADATA directive. Please remove file or directive" + } + } + } + assertions.assertAll(checks) + val secondFile = testDataFile.withExtension(otherPlatformExtension) + val common = testDataFile.withExtension(specificExtension) + checkDumpsIdentity( + testDataFile, expectedFile, secondFile, common, + postProcessTestData = { it.replace("// $PLATFORM_DEPENDANT_METADATA\n", "") } + ) + } else { + val commonFirDump = testDataFile.withExtension(commonExtension) + val specificFirDump = testDataFile.withExtension(specificExtension) + + val expectedFile = when { + commonFirDump.exists() -> commonFirDump + else -> specificFirDump + } + + val actualText = dumper.generateResultingDump() + assertions.assertEqualsToFile(expectedFile, actualText, message = { "Content is not equal" }) + + + if (commonFirDump.exists() && specificFirDump.exists()) { + assertions.fail { + """ Common dump ${commonFirDump.name} and specific ${specificFirDump.name} exist at the same time Please remove ${specificFirDump.name} """.trimIndent() + } + } + if (!commonFirDump.exists()) { + val otherFirDump = testDataFile.withExtension(otherSpecificExtension) + checkDumpsIdentity(testDataFile, specificFirDump, otherFirDump, commonFirDump) } - } - if (!commonFirDump.exists()) { - val otherFirDump = testDataFile.withExtension(otherSpecificExtension) - checkK1AndK2DumpsIdentity(specificFirDump, otherFirDump, commonFirDump) } } - private fun checkK1AndK2DumpsIdentity(file1: File, file2: File, commonFile: File) { + private val TargetPlatform.suffix: String + get() = when { + isJvm() -> ".jvm" + isJs() -> ".klib" + else -> error("Unsupported platform: $this") + } + + private val TargetPlatform.oppositeSuffix: String + get() = when { + isJvm() -> ".klib" + isJs() -> ".jvm" + else -> error("Unsupported platform: $this") + } + + private fun checkDumpsIdentity( + testDataFile: File, + file1: File, + file2: File, + commonFile: File, + postProcessTestData: ((String) -> String)? = null + ) { if (!file1.exists() || !file2.exists()) return val dump1 = file1.readText().trimTrailingWhitespacesAndRemoveRedundantEmptyLinesAtTheEnd() val dump2 = file2.readText().trimTrailingWhitespacesAndRemoveRedundantEmptyLinesAtTheEnd() @@ -127,6 +284,9 @@ class LoadedMetadataDumpHandler(testServices: TestServices) : JvmBinaryArtifactH commonFile.writeText(dump1) file1.delete() file2.delete() + if (postProcessTestData != null) { + testDataFile.writeText(postProcessTestData(testDataFile.readText())) + } assertions.fail { """ Files ${file1.name} and ${file2.name} are identical diff --git a/compiler/fir/analysis-tests/test/org/jetbrains/kotlin/test/runners/AbstractFirLoadCompiledJvmKotlinTestBase.kt b/compiler/fir/analysis-tests/test/org/jetbrains/kotlin/test/runners/AbstractFirLoadCompiledJvmKotlinTestBase.kt index 75daa2b7d2a..024f5fcb53a 100644 --- a/compiler/fir/analysis-tests/test/org/jetbrains/kotlin/test/runners/AbstractFirLoadCompiledJvmKotlinTestBase.kt +++ b/compiler/fir/analysis-tests/test/org/jetbrains/kotlin/test/runners/AbstractFirLoadCompiledJvmKotlinTestBase.kt @@ -37,7 +37,7 @@ abstract class AbstractFirLoadCompiledJvmKotlinTestBase() @@ -163,38 +163,6 @@ open class FirFrontendFacade( return moduleDataMap to libraryList.moduleDataProvider } - private fun initializeLibraryList( - mainModule: TestModule, - binaryModuleData: BinaryModuleData, - targetPlatform: TargetPlatform, - configuration: CompilerConfiguration, - ): DependencyListForCliModule { - return DependencyListForCliModule.build(binaryModuleData) { - when { - targetPlatform.isCommon() || targetPlatform.isJvm() -> { - dependencies(configuration.jvmModularRoots.map { it.toPath() }) - dependencies(configuration.jvmClasspathRoots.map { it.toPath() }) - friendDependencies(configuration[JVMConfigurationKeys.FRIEND_PATHS] ?: emptyList()) - } - targetPlatform.isJs() -> { - val runtimeKlibsPaths = JsEnvironmentConfigurator.getRuntimePathsForModule(mainModule, testServices) - val (transitiveLibraries, friendLibraries) = getTransitivesAndFriends(mainModule, testServices) - dependencies(runtimeKlibsPaths.map { Paths.get(it).toAbsolutePath() }) - dependencies(transitiveLibraries.map { it.toPath().toAbsolutePath() }) - friendDependencies(friendLibraries.map { it.toPath().toAbsolutePath() }) - } - targetPlatform.isNative() -> { - val runtimeKlibsPaths = NativeEnvironmentConfigurator.getRuntimePathsForModule(mainModule, testServices) - val (transitiveLibraries, friendLibraries) = getTransitivesAndFriends(mainModule, testServices) - dependencies(runtimeKlibsPaths.map { Paths.get(it).toAbsolutePath() }) - dependencies(transitiveLibraries.map { it.toPath().toAbsolutePath() }) - friendDependencies(friendLibraries.map { it.toPath().toAbsolutePath() }) - } - else -> error("Unsupported") - } - } - } - private fun createLibrarySession( module: TestModule, project: Project, @@ -414,4 +382,39 @@ open class FirFrontendFacade( else -> error("Unsupported") } } + + companion object { + fun initializeLibraryList( + mainModule: TestModule, + binaryModuleData: BinaryModuleData, + targetPlatform: TargetPlatform, + configuration: CompilerConfiguration, + testServices: TestServices + ): DependencyListForCliModule { + return DependencyListForCliModule.build(binaryModuleData) { + when { + targetPlatform.isCommon() || targetPlatform.isJvm() -> { + dependencies(configuration.jvmModularRoots.map { it.toPath() }) + dependencies(configuration.jvmClasspathRoots.map { it.toPath() }) + friendDependencies(configuration[JVMConfigurationKeys.FRIEND_PATHS] ?: emptyList()) + } + targetPlatform.isJs() -> { + val runtimeKlibsPaths = JsEnvironmentConfigurator.getRuntimePathsForModule(mainModule, testServices) + val (transitiveLibraries, friendLibraries) = getTransitivesAndFriends(mainModule, testServices) + dependencies(runtimeKlibsPaths.map { Paths.get(it).toAbsolutePath() }) + dependencies(transitiveLibraries.map { it.toPath().toAbsolutePath() }) + friendDependencies(friendLibraries.map { it.toPath().toAbsolutePath() }) + } + targetPlatform.isNative() -> { + val runtimeKlibsPaths = NativeEnvironmentConfigurator.getRuntimePathsForModule(mainModule, testServices) + val (transitiveLibraries, friendLibraries) = getTransitivesAndFriends(mainModule, testServices) + dependencies(runtimeKlibsPaths.map { Paths.get(it).toAbsolutePath() }) + dependencies(transitiveLibraries.map { it.toPath().toAbsolutePath() }) + friendDependencies(friendLibraries.map { it.toPath().toAbsolutePath() }) + } + else -> error("Unsupported") + } + } + } + } } diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/model/TestArtifactKinds.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/model/TestArtifactKinds.kt index 809c262ace2..0a1689c7809 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/model/TestArtifactKinds.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/model/TestArtifactKinds.kt @@ -24,6 +24,9 @@ object FrontendKinds { } } +val FrontendKind<*>.isFir: Boolean + get() = this == FrontendKinds.FIR + object BackendKinds { object ClassicBackend : BackendKind("ClassicBackend") object IrBackend : BackendKind("IrBackend") diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/KotlinStandardLibrariesPathProvider.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/KotlinStandardLibrariesPathProvider.kt index 016c99fb9b1..d0eb59e885c 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/KotlinStandardLibrariesPathProvider.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/KotlinStandardLibrariesPathProvider.kt @@ -72,6 +72,21 @@ abstract class KotlinStandardLibrariesPathProvider : TestService { */ abstract fun getAnnotationsJar(): File + /** + * kotlin-stdlib-js.jar + */ + abstract fun fullJsStdlib(): File + + /** + * Jar with minimal version of kotlin stdlib JS (may be same as fullJsStdlib) + */ + abstract fun defaultJsStdlib(): File + + /** + * kotlin-test-js.jar + */ + abstract fun kotlinTestJsKLib(): File + fun getRuntimeJarClassLoader(): ClassLoader = synchronized(this) { var loader = runtimeJarClassLoader.get() if (loader == null) { @@ -108,13 +123,28 @@ object StandardLibrariesPathProviderForKotlinProject : KotlinStandardLibrariesPa override fun scriptRuntimeJarForTests(): File = ForTestCompileRuntime.scriptRuntimeJarForTests() override fun jvmAnnotationsForTests(): File = ForTestCompileRuntime.jvmAnnotationsForTests() override fun getAnnotationsJar(): File = KtTestUtil.getAnnotationsJar() + + override fun fullJsStdlib(): File = extractFromPropertyFirst("kotlin.js.full.stdlib.path") { "kotlin-stdlib-js.jar".dist() } + override fun defaultJsStdlib(): File = extractFromPropertyFirst("kotlin.js.reduced.stdlib.path") { "kotlin-stdlib-js.jar".dist() } + override fun kotlinTestJsKLib(): File = extractFromPropertyFirst("kotlin.js.kotlin.test.path") { "kotlin-test-js.jar".dist() } + + private inline fun extractFromPropertyFirst(prop: String, onMissingProperty: () -> String): File { + val path = System.getProperty(prop, null) ?: onMissingProperty() + return File(path) + } + + private fun String.dist(): String { + return "dist/kotlinc/lib/$this" + } } object EnvironmentBasedStandardLibrariesPathProvider : KotlinStandardLibrariesPathProvider() { const val KOTLIN_STDLIB_PROP = "org.jetbrains.kotlin.test.kotlin-stdlib" + const val KOTLIN_STDLIB_JS_PROP = "org.jetbrains.kotlin.test.kotlin-stdlib-js" const val KOTLIN_STDLIB_JDK8_PROP = "org.jetbrains.kotlin.test.kotlin-stdlib-jdk8" const val KOTLIN_REFLECT_PROP = "org.jetbrains.kotlin.test.kotlin-reflect" const val KOTLIN_TEST_PROP = "org.jetbrains.kotlin.test.kotlin-test" + const val KOTLIN_TEST_JS_PROP = "org.jetbrains.kotlin.test.kotlin-test-js" const val KOTLIN_SCRIPT_RUNTIME_PROP = "org.jetbrains.kotlin.test.kotlin-script-runtime" const val KOTLIN_ANNOTATIONS_JVM_PROP = "org.jetbrains.kotlin.test.kotlin-annotations-jvm" @@ -133,6 +163,9 @@ object EnvironmentBasedStandardLibrariesPathProvider : KotlinStandardLibrariesPa override fun scriptRuntimeJarForTests(): File = getFile(KOTLIN_SCRIPT_RUNTIME_PROP) override fun jvmAnnotationsForTests(): File = getFile(KOTLIN_ANNOTATIONS_JVM_PROP) override fun getAnnotationsJar(): File = getFile(KOTLIN_ANNOTATIONS_JVM_PROP) + override fun fullJsStdlib(): File = getFile(KOTLIN_STDLIB_JS_PROP) + override fun defaultJsStdlib(): File = getFile(KOTLIN_STDLIB_JS_PROP) + override fun kotlinTestJsKLib(): File = getFile(KOTLIN_TEST_JS_PROP) } val TestServices.standardLibrariesPathProvider: KotlinStandardLibrariesPathProvider by TestServices.testServiceAccessor() diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/configuration/JsEnvironmentConfigurator.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/configuration/JsEnvironmentConfigurator.kt index b7b724863ee..4536a7207d0 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/configuration/JsEnvironmentConfigurator.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/services/configuration/JsEnvironmentConfigurator.kt @@ -154,8 +154,13 @@ class JsEnvironmentConfigurator(testServices: TestServices) : EnvironmentConfigu val needsFullIrRuntime = JsEnvironmentConfigurationDirectives.KJS_WITH_FULL_RUNTIME in module.directives || ConfigurationDirectives.WITH_STDLIB in module.directives - val names = if (needsFullIrRuntime) listOf("full.stdlib", "kotlin.test") else listOf("reduced.stdlib") - names.mapNotNullTo(result) { System.getProperty("kotlin.js.$it.path")?.let { File(it).absolutePath } } + val pathProvider = testServices.standardLibrariesPathProvider + if (needsFullIrRuntime) { + result += pathProvider.fullJsStdlib().absolutePath + result += pathProvider.kotlinTestJsKLib().absolutePath + } else { + result += pathProvider.defaultJsStdlib().absolutePath + } val runtimeClasspaths = testServices.runtimeClasspathProviders.flatMap { it.runtimeClassPaths(module) } runtimeClasspaths.mapTo(result) { it.absolutePath } return result diff --git a/js/js.tests/build.gradle.kts b/js/js.tests/build.gradle.kts index dee0ba41067..050f4b6fc93 100644 --- a/js/js.tests/build.gradle.kts +++ b/js/js.tests/build.gradle.kts @@ -37,6 +37,7 @@ dependencies { testApi(projectTests(":compiler:test-infrastructure-utils")) testApi(projectTests(":compiler:tests-compiler-utils")) testApi(projectTests(":compiler:tests-common-new")) + testImplementation(projectTests(":compiler:fir:analysis-tests")) testCompileOnly(project(":compiler:frontend")) testCompileOnly(project(":compiler:cli")) diff --git a/js/js.tests/test/org/jetbrains/kotlin/generators/tests/GenerateJsTests.kt b/js/js.tests/test/org/jetbrains/kotlin/generators/tests/GenerateJsTests.kt index 92eb7ffbf27..0af65025b96 100644 --- a/js/js.tests/test/org/jetbrains/kotlin/generators/tests/GenerateJsTests.kt +++ b/js/js.tests/test/org/jetbrains/kotlin/generators/tests/GenerateJsTests.kt @@ -230,6 +230,11 @@ fun main(args: Array) { // testClass { // model("debug/stepping") // } + + testClass { + model("loadJava/compiledKotlin", extension = "kt") + model("loadJava/compiledKotlinWithStdlib", extension = "kt") + } } } } diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/fir/AbstractFirLoadCompiledJsKotlinTestBase.kt b/js/js.tests/test/org/jetbrains/kotlin/js/test/fir/AbstractFirLoadCompiledJsKotlinTestBase.kt new file mode 100644 index 00000000000..e245a426aca --- /dev/null +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/fir/AbstractFirLoadCompiledJsKotlinTestBase.kt @@ -0,0 +1,58 @@ +/* + * Copyright 2010-2023 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.js.test.fir + +import org.jetbrains.kotlin.js.test.converters.FirJsKlibBackendFacade +import org.jetbrains.kotlin.js.test.ir.commonConfigurationForJsCodegenTest +import org.jetbrains.kotlin.test.* +import org.jetbrains.kotlin.test.backend.ir.IrBackendInput +import org.jetbrains.kotlin.test.builders.TestConfigurationBuilder +import org.jetbrains.kotlin.test.builders.configureKlibArtifactsHandlersStep +import org.jetbrains.kotlin.test.directives.FirDiagnosticsDirectives.FIR_PARSER +import org.jetbrains.kotlin.test.frontend.fir.Fir2IrResultsConverter +import org.jetbrains.kotlin.test.frontend.fir.FirFrontendFacade +import org.jetbrains.kotlin.test.frontend.fir.FirOutputArtifact +import org.jetbrains.kotlin.test.model.* +import org.jetbrains.kotlin.test.runners.AbstractKotlinCompilerWithTargetBackendTest + +abstract class AbstractFirLoadCompiledJsKotlinTestBase> : + AbstractKotlinCompilerWithTargetBackendTest(TargetBackend.JS_IR) +{ + protected abstract val frontendKind: FrontendKind + protected abstract val frontendFacade: Constructor> + protected abstract val frontendToBackendConverter: Constructor> + + override fun TestConfigurationBuilder.configuration() { + commonConfigurationForJsCodegenTest( + frontendKind, + frontendFacade, + frontendToBackendConverter, + ::FirJsKlibBackendFacade, + ) + + configureKlibArtifactsHandlersStep { + useHandlers(::KlibLoadedMetadataDumpHandler) + } + + useAfterAnalysisCheckers(::FirMetadataLoadingTestSuppressor) + } +} + +open class AbstractFirLoadK2CompiledJsKotlinTest : AbstractFirLoadCompiledJsKotlinTestBase() { + override val frontendKind: FrontendKind + get() = FrontendKinds.FIR + override val frontendFacade: Constructor> + get() = ::FirFrontendFacade + override val frontendToBackendConverter: Constructor> + get() = ::Fir2IrResultsConverter + + override fun configure(builder: TestConfigurationBuilder) { + super.configure(builder) + builder.defaultDirectives { + FIR_PARSER with FirParser.LightTree + } + } +} diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/ir/AbstractJsBlackBoxCodegenTestBase.kt b/js/js.tests/test/org/jetbrains/kotlin/js/test/ir/AbstractJsBlackBoxCodegenTestBase.kt index 05e0b2e09ed..5f14dc8d930 100644 --- a/js/js.tests/test/org/jetbrains/kotlin/js/test/ir/AbstractJsBlackBoxCodegenTestBase.kt +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/ir/AbstractJsBlackBoxCodegenTestBase.kt @@ -56,15 +56,10 @@ abstract class AbstractJsBlackBoxCodegenTestBase, + I : ResultingArtifact.BackendInput, + A : ResultingArtifact.Binary +> TestConfigurationBuilder.commonConfigurationForJsCodegenTest( + targetFrontend: FrontendKind, + frontendFacade: Constructor>, + frontendToBackendConverter: Constructor>, + backendFacade: Constructor>, +) { + globalDefaults { + frontend = targetFrontend + targetPlatform = JsPlatforms.defaultJsPlatform + dependencyKind = DependencyKind.Binary + } + + defaultDirectives { + +DiagnosticsDirectives.REPORT_ONLY_EXPLICITLY_DEFINED_DEBUG_INFO + } + + useConfigurators( + ::CommonEnvironmentConfigurator, + ::JsEnvironmentConfigurator, + ) + + useAdditionalService(::JsLibraryProvider) + + useAfterAnalysisCheckers( + ::JsFailingTestSuppressor, + ::BlackBoxCodegenSuppressor, + ) + + facadeStep(frontendFacade) + classicFrontendHandlersStep { + commonClassicFrontendHandlersForCodegenTest() + useHandlers(::ClassicDiagnosticsHandler) + } + + firHandlersStep { + useHandlers(::FirDiagnosticsHandler) + } + + facadeStep(frontendToBackendConverter) + irHandlersStep() + + facadeStep(backendFacade) + klibArtifactsHandlersStep() +} diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/utils/JsIrIncrementalDataProvider.kt b/js/js.tests/test/org/jetbrains/kotlin/js/test/utils/JsIrIncrementalDataProvider.kt index 2acd6af5007..48d0e362615 100644 --- a/js/js.tests/test/org/jetbrains/kotlin/js/test/utils/JsIrIncrementalDataProvider.kt +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/utils/JsIrIncrementalDataProvider.kt @@ -20,11 +20,8 @@ import org.jetbrains.kotlin.name.FqName import org.jetbrains.kotlin.test.TargetBackend import org.jetbrains.kotlin.test.directives.JsEnvironmentConfigurationDirectives import org.jetbrains.kotlin.test.model.TestModule -import org.jetbrains.kotlin.test.services.TestService -import org.jetbrains.kotlin.test.services.TestServices -import org.jetbrains.kotlin.test.services.compilerConfigurationProvider +import org.jetbrains.kotlin.test.services.* import org.jetbrains.kotlin.test.services.configuration.JsEnvironmentConfigurator -import org.jetbrains.kotlin.test.services.jsLibraryProvider import java.io.ByteArrayOutputStream import java.io.File @@ -46,14 +43,14 @@ private class TestArtifactCache(val moduleName: String, val binaryAsts: MutableM } class JsIrIncrementalDataProvider(private val testServices: TestServices) : TestService { - private val fullRuntimeKlib: String = System.getProperty("kotlin.js.full.stdlib.path") - private val defaultRuntimeKlib = System.getProperty("kotlin.js.reduced.stdlib.path") - private val kotlinTestKLib = System.getProperty("kotlin.js.kotlin.test.path") + private val fullRuntimeKlib = testServices.standardLibrariesPathProvider.fullJsStdlib() + private val defaultRuntimeKlib = testServices.standardLibrariesPathProvider.defaultJsStdlib() + private val kotlinTestKLib = testServices.standardLibrariesPathProvider.kotlinTestJsKLib() private val predefinedKlibHasIcCache = mutableMapOf( - File(fullRuntimeKlib).absolutePath to null, - File(kotlinTestKLib).absolutePath to null, - File(defaultRuntimeKlib).absolutePath to null + fullRuntimeKlib.absolutePath to null, + kotlinTestKLib.absolutePath to null, + defaultRuntimeKlib.absolutePath to null ) private val icCache: MutableMap = mutableMapOf() diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirLoadK2CompiledJsKotlinTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirLoadK2CompiledJsKotlinTestGenerated.java new file mode 100644 index 00000000000..9950a442f95 --- /dev/null +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirLoadK2CompiledJsKotlinTestGenerated.java @@ -0,0 +1,3542 @@ +/* + * Copyright 2010-2023 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.js.test.fir; + +import com.intellij.testFramework.TestDataPath; +import org.jetbrains.kotlin.test.util.KtTestUtil; +import org.jetbrains.kotlin.test.TargetBackend; +import org.jetbrains.kotlin.test.TestMetadata; +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.GenerateJsTestsKt}. DO NOT MODIFY MANUALLY */ +@SuppressWarnings("all") +public class FirLoadK2CompiledJsKotlinTestGenerated extends AbstractFirLoadK2CompiledJsKotlinTest { + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin") + @TestDataPath("$PROJECT_ROOT") + public class CompiledKotlin { + @Test + public void testAllFilesPresentInCompiledKotlin() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations") + @TestDataPath("$PROJECT_ROOT") + public class Annotations { + @Test + public void testAllFilesPresentInAnnotations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("AnnotatedAnnotation.kt") + public void testAnnotatedAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/AnnotatedAnnotation.kt"); + } + + @Test + @TestMetadata("AnnotatedMethod.kt") + public void testAnnotatedMethod() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/AnnotatedMethod.kt"); + } + + @Test + @TestMetadata("AnnotationInArray.kt") + public void testAnnotationInArray() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/AnnotationInArray.kt"); + } + + @Test + @TestMetadata("AnnotationOnTypeParameter.kt") + public void testAnnotationOnTypeParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/AnnotationOnTypeParameter.kt"); + } + + @Test + @TestMetadata("ClassLiteralArguments.kt") + public void testClassLiteralArguments() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/ClassLiteralArguments.kt"); + } + + @Test + @TestMetadata("MultiDimensionalArrayMethod.kt") + public void testMultiDimensionalArrayMethod() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/MultiDimensionalArrayMethod.kt"); + } + + @Test + @TestMetadata("PrimitiveArrayArguments.kt") + public void testPrimitiveArrayArguments() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/PrimitiveArrayArguments.kt"); + } + + @Test + @TestMetadata("SelfReferentialAnnotation.kt") + public void testSelfReferentialAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/SelfReferentialAnnotation.kt"); + } + + @Test + @TestMetadata("SimpleAnnotation.kt") + public void testSimpleAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/SimpleAnnotation.kt"); + } + + @Test + @TestMetadata("TargetedAnnotation.kt") + public void testTargetedAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/TargetedAnnotation.kt"); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/classMembers") + @TestDataPath("$PROJECT_ROOT") + public class ClassMembers { + @Test + public void testAllFilesPresentInClassMembers() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/classMembers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("ClassObjectPropertyField.kt") + public void testClassObjectPropertyField() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/ClassObjectPropertyField.kt"); + } + + @Test + @TestMetadata("Constructor.kt") + public void testConstructor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/Constructor.kt"); + } + + @Test + @TestMetadata("DelegatedProperty.kt") + public void testDelegatedProperty() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/DelegatedProperty.kt"); + } + + @Test + @TestMetadata("EnumArgument.kt") + public void testEnumArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/EnumArgument.kt"); + } + + @Test + @TestMetadata("Function.kt") + public void testFunction() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/Function.kt"); + } + + @Test + @TestMetadata("Getter.kt") + public void testGetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/Getter.kt"); + } + + @Test + @TestMetadata("HiddenConstructorWithInlineClassParameters.kt") + public void testHiddenConstructorWithInlineClassParameters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/HiddenConstructorWithInlineClassParameters.kt"); + } + + @Test + @TestMetadata("PropertyField.kt") + public void testPropertyField() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/PropertyField.kt"); + } + + @Test + @TestMetadata("PublishedApiAnnotationOnInlineClassCosntructor.kt") + public void testPublishedApiAnnotationOnInlineClassCosntructor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/PublishedApiAnnotationOnInlineClassCosntructor.kt"); + } + + @Test + @TestMetadata("Setter.kt") + public void testSetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/Setter.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/classes") + @TestDataPath("$PROJECT_ROOT") + public class Classes { + @Test + public void testAllFilesPresentInClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/classes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("AnnotationInClassObject.kt") + public void testAnnotationInClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/AnnotationInClassObject.kt"); + } + + @Test + @TestMetadata("ClassInClassObject.kt") + public void testClassInClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/ClassInClassObject.kt"); + } + + @Test + @TestMetadata("ClassObject.kt") + public void testClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/ClassObject.kt"); + } + + @Test + @TestMetadata("ClassObjectInStaticNestedClass.kt") + public void testClassObjectInStaticNestedClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/ClassObjectInStaticNestedClass.kt"); + } + + @Test + @TestMetadata("DataClass.kt") + public void testDataClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/DataClass.kt"); + } + + @Test + @TestMetadata("Deprecated.kt") + public void testDeprecated() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/Deprecated.kt"); + } + + @Test + @TestMetadata("DollarsInAnnotationName.kt") + public void testDollarsInAnnotationName() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/DollarsInAnnotationName.kt"); + } + + @Test + @TestMetadata("EnumArgument.kt") + public void testEnumArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/EnumArgument.kt"); + } + + @Test + @TestMetadata("MultipleAnnotations.kt") + public void testMultipleAnnotations() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/MultipleAnnotations.kt"); + } + + @Test + @TestMetadata("NestedAnnotation.kt") + public void testNestedAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/NestedAnnotation.kt"); + } + + @Test + @TestMetadata("NestedClass.kt") + public void testNestedClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/NestedClass.kt"); + } + + @Test + @TestMetadata("Retention.kt") + public void testRetention() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/Retention.kt"); + } + + @Test + @TestMetadata("Simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/Simple.kt"); + } + + @Test + @TestMetadata("WithArgument.kt") + public void testWithArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/WithArgument.kt"); + } + + @Test + @TestMetadata("WithMultipleArguments.kt") + public void testWithMultipleArguments() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/WithMultipleArguments.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers") + @TestDataPath("$PROJECT_ROOT") + public class PackageMembers { + @Test + public void testAllFilesPresentInPackageMembers() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("DelegatedProperty.kt") + public void testDelegatedProperty() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/DelegatedProperty.kt"); + } + + @Test + @TestMetadata("EnumArgument.kt") + public void testEnumArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/EnumArgument.kt"); + } + + @Test + @TestMetadata("EnumArrayArgument.kt") + public void testEnumArrayArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/EnumArrayArgument.kt"); + } + + @Test + @TestMetadata("Function.kt") + public void testFunction() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/Function.kt"); + } + + @Test + @TestMetadata("Getter.kt") + public void testGetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/Getter.kt"); + } + + @Test + @TestMetadata("PropertyField.kt") + public void testPropertyField() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/PropertyField.kt"); + } + + @Test + @TestMetadata("Setter.kt") + public void testSetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/Setter.kt"); + } + + @Test + @TestMetadata("StringArrayArgument.kt") + public void testStringArrayArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/StringArrayArgument.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/parameters") + @TestDataPath("$PROJECT_ROOT") + public class Parameters { + @Test + public void testAllFilesPresentInParameters() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/parameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("Constructor.kt") + public void testConstructor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/Constructor.kt"); + } + + @Test + @TestMetadata("ExtensionFunction.kt") + public void testExtensionFunction() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/ExtensionFunction.kt"); + } + + @Test + @TestMetadata("ExtensionFunctionInClass.kt") + public void testExtensionFunctionInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/ExtensionFunctionInClass.kt"); + } + + @Test + @TestMetadata("ExtensionPropertySetter.kt") + public void testExtensionPropertySetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/ExtensionPropertySetter.kt"); + } + + @Test + @TestMetadata("FunctionInClass.kt") + public void testFunctionInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/FunctionInClass.kt"); + } + + @Test + @TestMetadata("FunctionInTrait.kt") + public void testFunctionInTrait() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/FunctionInTrait.kt"); + } + + @Test + @TestMetadata("InnerClassConstructor.kt") + public void testInnerClassConstructor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/InnerClassConstructor.kt"); + } + + @Test + @TestMetadata("ManyAnnotations.kt") + public void testManyAnnotations() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/ManyAnnotations.kt"); + } + + @Test + @TestMetadata("PropertySetterInClass.kt") + public void testPropertySetterInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/PropertySetterInClass.kt"); + } + + @Test + @TestMetadata("TopLevelFunction.kt") + public void testTopLevelFunction() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/TopLevelFunction.kt"); + } + + @Test + @TestMetadata("TopLevelPropertySetter.kt") + public void testTopLevelPropertySetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/TopLevelPropertySetter.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields") + @TestDataPath("$PROJECT_ROOT") + public class PropertiesWithoutBackingFields { + @Test + public void testAllFilesPresentInPropertiesWithoutBackingFields() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("Class.kt") + public void testClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/Class.kt"); + } + + @Test + @TestMetadata("ClassObject.kt") + public void testClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/ClassObject.kt"); + } + + @Test + @TestMetadata("ExtensionsWithSameNameClass.kt") + public void testExtensionsWithSameNameClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/ExtensionsWithSameNameClass.kt"); + } + + @Test + @TestMetadata("ExtensionsWithSameNamePackage.kt") + public void testExtensionsWithSameNamePackage() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/ExtensionsWithSameNamePackage.kt"); + } + + @Test + @TestMetadata("NestedTrait.kt") + public void testNestedTrait() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/NestedTrait.kt"); + } + + @Test + @TestMetadata("TopLevel.kt") + public void testTopLevel() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/TopLevel.kt"); + } + + @Test + @TestMetadata("Trait.kt") + public void testTrait() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/Trait.kt"); + } + + @Test + @TestMetadata("TraitClassObject.kt") + public void testTraitClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/TraitClassObject.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/types") + @TestDataPath("$PROJECT_ROOT") + public class Types { + @Test + public void testAllFilesPresentInTypes() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/types"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("ClassLiteralArgument.kt") + public void testClassLiteralArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/ClassLiteralArgument.kt"); + } + + @Test + @TestMetadata("DefinitelyNotNull.kt") + public void testDefinitelyNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/DefinitelyNotNull.kt"); + } + + @Test + @TestMetadata("ReceiverParameter.kt") + public void testReceiverParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/ReceiverParameter.kt"); + } + + @Test + @TestMetadata("SimpleTypeAnnotation.kt") + public void testSimpleTypeAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/SimpleTypeAnnotation.kt"); + } + + @Test + @TestMetadata("SourceRetention.kt") + public void testSourceRetention() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/SourceRetention.kt"); + } + + @Test + @TestMetadata("SupertypesAndBounds.kt") + public void testSupertypesAndBounds() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/SupertypesAndBounds.kt"); + } + + @Test + @TestMetadata("TypeAnnotationWithArguments.kt") + public void testTypeAnnotationWithArguments() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/TypeAnnotationWithArguments.kt"); + } + + @Test + @TestMetadata("TypeArgument.kt") + public void testTypeArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/TypeArgument.kt"); + } + + @Test + @TestMetadata("TypeParameterAnnotation.kt") + public void testTypeParameterAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/TypeParameterAnnotation.kt"); + } + + @Test + @TestMetadata("TypeParameterAnnotationWithArguments.kt") + public void testTypeParameterAnnotationWithArguments() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/TypeParameterAnnotationWithArguments.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget") + @TestDataPath("$PROJECT_ROOT") + public class WithUseSiteTarget { + @Test + public void testAllFilesPresentInWithUseSiteTarget() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("DelegateTarget.kt") + public void testDelegateTarget() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget/DelegateTarget.kt"); + } + + @Test + @TestMetadata("FieldTarget.kt") + public void testFieldTarget() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget/FieldTarget.kt"); + } + + @Test + @TestMetadata("PropertyAndAccessor.kt") + public void testPropertyAndAccessor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget/PropertyAndAccessor.kt"); + } + + @Test + @TestMetadata("ReceiverTarget.kt") + public void testReceiverTarget() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget/ReceiverTarget.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/class") + @TestDataPath("$PROJECT_ROOT") + public class Class { + @Test + public void testAllFilesPresentInClass() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/class"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("Class.kt") + public void testClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/Class.kt"); + } + + @Test + @TestMetadata("ClassInParam.kt") + public void testClassInParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassInParam.kt"); + } + + @Test + @TestMetadata("ClassInnerClass.kt") + public void testClassInnerClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassInnerClass.kt"); + } + + @Test + @TestMetadata("ClassMemberConflict.kt") + public void testClassMemberConflict() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassMemberConflict.kt"); + } + + @Test + @TestMetadata("ClassOutParam.kt") + public void testClassOutParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassOutParam.kt"); + } + + @Test + @TestMetadata("ClassParam.kt") + public void testClassParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParam.kt"); + } + + @Test + @TestMetadata("ClassParamReferencesParam.kt") + public void testClassParamReferencesParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParamReferencesParam.kt"); + } + + @Test + @TestMetadata("ClassParamReferencesParam2.kt") + public void testClassParamReferencesParam2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParamReferencesParam2.kt"); + } + + @Test + @TestMetadata("ClassParamReferencesSelf.kt") + public void testClassParamReferencesSelf() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParamReferencesSelf.kt"); + } + + @Test + @TestMetadata("ClassParamUpperClassBound.kt") + public void testClassParamUpperClassBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParamUpperClassBound.kt"); + } + + @Test + @TestMetadata("ClassParamUpperClassInterfaceBound.kt") + public void testClassParamUpperClassInterfaceBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParamUpperClassInterfaceBound.kt"); + } + + @Test + @TestMetadata("ClassParamUpperInterfaceBound.kt") + public void testClassParamUpperInterfaceBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParamUpperInterfaceBound.kt"); + } + + @Test + @TestMetadata("ClassTwoParams.kt") + public void testClassTwoParams() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassTwoParams.kt"); + } + + @Test + @TestMetadata("ClassTwoParams2.kt") + public void testClassTwoParams2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassTwoParams2.kt"); + } + + @Test + @TestMetadata("FunInterface.kt") + public void testFunInterface() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/FunInterface.kt"); + } + + @Test + @TestMetadata("InheritClassSimple.kt") + public void testInheritClassSimple() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/InheritClassSimple.kt"); + } + + @Test + @TestMetadata("InheritClassWithParam.kt") + public void testInheritClassWithParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/InheritClassWithParam.kt"); + } + + @Test + @TestMetadata("InheritSubstitutedMethod.kt") + public void testInheritSubstitutedMethod() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/InheritSubstitutedMethod.kt"); + } + + @Test + @TestMetadata("InheritTraitWithFunctionParam.kt") + public void testInheritTraitWithFunctionParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/InheritTraitWithFunctionParam.kt"); + } + + @Test + @TestMetadata("InheritTraitWithParam.kt") + public void testInheritTraitWithParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/InheritTraitWithParam.kt"); + } + + @Test + @TestMetadata("InnerClassExtendInnerClass.kt") + public void testInnerClassExtendInnerClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/InnerClassExtendInnerClass.kt"); + } + + @Test + @TestMetadata("InnerGenericClass.kt") + public void testInnerGenericClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/InnerGenericClass.kt"); + } + + @Test + @TestMetadata("InnerTypes.kt") + public void testInnerTypes() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/InnerTypes.kt"); + } + + @Test + @TestMetadata("NamedObject.kt") + public void testNamedObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/NamedObject.kt"); + } + + @Test + @TestMetadata("NamedObjectInClass.kt") + public void testNamedObjectInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/NamedObjectInClass.kt"); + } + + @Test + @TestMetadata("NamedObjectInClassObject.kt") + public void testNamedObjectInClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/NamedObjectInClassObject.kt"); + } + + @Test + @TestMetadata("NamedObjectInNamedObject.kt") + public void testNamedObjectInNamedObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/NamedObjectInNamedObject.kt"); + } + + @Test + @TestMetadata("NamedObjectWithAnotherTopLevelProperty.kt") + public void testNamedObjectWithAnotherTopLevelProperty() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/NamedObjectWithAnotherTopLevelProperty.kt"); + } + + @Test + @TestMetadata("NestedClass.kt") + public void testNestedClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/NestedClass.kt"); + } + + @Test + @TestMetadata("NestedClassExtendNestedClass.kt") + public void testNestedClassExtendNestedClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/NestedClassExtendNestedClass.kt"); + } + + @Test + @TestMetadata("NestedGenericClass.kt") + public void testNestedGenericClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/NestedGenericClass.kt"); + } + + @Test + @TestMetadata("RecursiveGeneric.kt") + public void testRecursiveGeneric() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/RecursiveGeneric.kt"); + } + + @Test + @TestMetadata("SealedClass.kt") + public void testSealedClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/SealedClass.kt"); + } + + @Test + @TestMetadata("SingleAbstractMethod.kt") + public void testSingleAbstractMethod() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/SingleAbstractMethod.kt"); + } + + @Test + @TestMetadata("Trait.kt") + public void testTrait() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/Trait.kt"); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/class/javaBean") + @TestDataPath("$PROJECT_ROOT") + public class JavaBean { + @Test + public void testAllFilesPresentInJavaBean() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/class/javaBean"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("DifferentGetterAndSetter.kt") + public void testDifferentGetterAndSetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/javaBean/DifferentGetterAndSetter.kt"); + } + + @Test + @TestMetadata("JavaBeanAbstractGetter.kt") + public void testJavaBeanAbstractGetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/javaBean/JavaBeanAbstractGetter.kt"); + } + + @Test + @TestMetadata("JavaBeanVal.kt") + public void testJavaBeanVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/javaBean/JavaBeanVal.kt"); + } + + @Test + @TestMetadata("JavaBeanVar.kt") + public void testJavaBeanVar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/javaBean/JavaBeanVar.kt"); + } + + @Test + @TestMetadata("JavaBeanVarOfGenericType.kt") + public void testJavaBeanVarOfGenericType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/javaBean/JavaBeanVarOfGenericType.kt"); + } + + @Test + @TestMetadata("TwoSetters.kt") + public void testTwoSetters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/javaBean/TwoSetters.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/classFun") + @TestDataPath("$PROJECT_ROOT") + public class ClassFun { + @Test + public void testAllFilesPresentInClassFun() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/classFun"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("ClassInParamUsedInFun.kt") + public void testClassInParamUsedInFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classFun/ClassInParamUsedInFun.kt"); + } + + @Test + @TestMetadata("ClassParamUsedInFun.kt") + public void testClassParamUsedInFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classFun/ClassParamUsedInFun.kt"); + } + + @Test + @TestMetadata("FunDelegationToTraitImpl.kt") + public void testFunDelegationToTraitImpl() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classFun/FunDelegationToTraitImpl.kt"); + } + + @Test + @TestMetadata("FunInParamSuper.kt") + public void testFunInParamSuper() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classFun/FunInParamSuper.kt"); + } + + @Test + @TestMetadata("TraitOpenFun.kt") + public void testTraitOpenFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classFun/TraitOpenFun.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/classObject") + @TestDataPath("$PROJECT_ROOT") + public class ClassObject { + @Test + public void testAllFilesPresentInClassObject() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/classObject"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("ClassObjectDeclaresVal.kt") + public void testClassObjectDeclaresVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectDeclaresVal.kt"); + } + + @Test + @TestMetadata("ClassObjectDeclaresVar.kt") + public void testClassObjectDeclaresVar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectDeclaresVar.kt"); + } + + @Test + @TestMetadata("ClassObjectDefaultVisibility.kt") + public void testClassObjectDefaultVisibility() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectDefaultVisibility.kt"); + } + + @Test + @TestMetadata("ClassObjectExplicitVisibility.kt") + public void testClassObjectExplicitVisibility() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectExplicitVisibility.kt"); + } + + @Test + @TestMetadata("ClassObjectExtendsTrait.kt") + public void testClassObjectExtendsTrait() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectExtendsTrait.kt"); + } + + @Test + @TestMetadata("ClassObjectExtendsTraitWithTP.kt") + public void testClassObjectExtendsTraitWithTP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectExtendsTraitWithTP.kt"); + } + + @Test + @TestMetadata("classObjectInClassStaticFields.kt") + public void testClassObjectInClassStaticFields() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/classObjectInClassStaticFields.kt"); + } + + @Test + @TestMetadata("classObjectInTraitStaticFields.kt") + public void testClassObjectInTraitStaticFields() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/classObjectInTraitStaticFields.kt"); + } + + @Test + @TestMetadata("ClassObjectPropertyInClass.kt") + public void testClassObjectPropertyInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectPropertyInClass.kt"); + } + + @Test + @TestMetadata("Delegation.kt") + public void testDelegation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/Delegation.kt"); + } + + @Test + @TestMetadata("InnerClassInClassObject.kt") + public void testInnerClassInClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/InnerClassInClassObject.kt"); + } + + @Test + @TestMetadata("NamedClassObject.kt") + public void testNamedClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/NamedClassObject.kt"); + } + + @Test + @TestMetadata("SimpleClassObject.kt") + public void testSimpleClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/SimpleClassObject.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/constructor") + @TestDataPath("$PROJECT_ROOT") + public class Constructor { + @Test + public void testAllFilesPresentInConstructor() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/constructor"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("Constructor0.kt") + public void testConstructor0() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/Constructor0.kt"); + } + + @Test + @TestMetadata("Constructor1.kt") + public void testConstructor1() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/Constructor1.kt"); + } + + @Test + @TestMetadata("Constructor1WithParamDefaultValue.kt") + public void testConstructor1WithParamDefaultValue() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/Constructor1WithParamDefaultValue.kt"); + } + + @Test + @TestMetadata("Constructor2WithOneParamDefaultValue.kt") + public void testConstructor2WithOneParamDefaultValue() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/Constructor2WithOneParamDefaultValue.kt"); + } + + @Test + @TestMetadata("ConstructorCollectionParameter.kt") + public void testConstructorCollectionParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorCollectionParameter.kt"); + } + + @Test + @TestMetadata("ConstructorGenericDeep.kt") + public void testConstructorGenericDeep() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorGenericDeep.kt"); + } + + @Test + @TestMetadata("ConstructorGenericSimple.kt") + public void testConstructorGenericSimple() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorGenericSimple.kt"); + } + + @Test + @TestMetadata("ConstructorGenericUpperBound.kt") + public void testConstructorGenericUpperBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorGenericUpperBound.kt"); + } + + @Test + @TestMetadata("ConstructorWithTwoDefArgs.kt") + public void testConstructorWithTwoDefArgs() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorWithTwoDefArgs.kt"); + } + + @Test + @TestMetadata("ConstructorWithTwoTypeParameters.kt") + public void testConstructorWithTwoTypeParameters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorWithTwoTypeParameters.kt"); + } + + @Test + @TestMetadata("ConstructorWithTwoTypeParametersAndOneIntValueParameter.kt") + public void testConstructorWithTwoTypeParametersAndOneIntValueParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorWithTwoTypeParametersAndOneIntValueParameter.kt"); + } + + @Test + @TestMetadata("ConstructorWithTwoTypeParametersAndOnePValueParameter.kt") + public void testConstructorWithTwoTypeParametersAndOnePValueParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorWithTwoTypeParametersAndOnePValueParameter.kt"); + } + + @Test + @TestMetadata("ConstructorWithTypeParameter.kt") + public void testConstructorWithTypeParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorWithTypeParameter.kt"); + } + + @Test + @TestMetadata("ConstructorWithTypeParametersEAndOnePValueParameter.kt") + public void testConstructorWithTypeParametersEAndOnePValueParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorWithTypeParametersEAndOnePValueParameter.kt"); + } + + @Test + @TestMetadata("InnerClassConstructorWithDefArgs.kt") + public void testInnerClassConstructorWithDefArgs() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/InnerClassConstructorWithDefArgs.kt"); + } + + @Test + @TestMetadata("PrivateConstructor1WithParamDefaultValue.kt") + public void testPrivateConstructor1WithParamDefaultValue() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/PrivateConstructor1WithParamDefaultValue.kt"); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/constructor/vararg") + @TestDataPath("$PROJECT_ROOT") + public class Vararg { + @Test + public void testAllFilesPresentInVararg() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/constructor/vararg"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("ConstructorNonLastVararg.kt") + public void testConstructorNonLastVararg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/vararg/ConstructorNonLastVararg.kt"); + } + + @Test + @TestMetadata("ConstructorVararg.kt") + public void testConstructorVararg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/vararg/ConstructorVararg.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/contextReceivers") + @TestDataPath("$PROJECT_ROOT") + public class ContextReceivers { + @Test + public void testAllFilesPresentInContextReceivers() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/contextReceivers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("SimpleContextReceivers.kt") + public void testSimpleContextReceivers() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/contextReceivers/SimpleContextReceivers.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/coroutines") + @TestDataPath("$PROJECT_ROOT") + public class Coroutines { + @Test + public void testAllFilesPresentInCoroutines() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("Basic.kt") + public void testBasic() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/coroutines/Basic.kt"); + } + + @Test + @TestMetadata("TypeAliasFTSuspendWithReceiver.kt") + public void testTypeAliasFTSuspendWithReceiver() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/coroutines/TypeAliasFTSuspendWithReceiver.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/dataClass") + @TestDataPath("$PROJECT_ROOT") + public class DataClass { + @Test + public void testAllFilesPresentInDataClass() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/dataClass"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("MixedComponents.kt") + public void testMixedComponents() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/dataClass/MixedComponents.kt"); + } + + @Test + @TestMetadata("OneVal.kt") + public void testOneVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/dataClass/OneVal.kt"); + } + + @Test + @TestMetadata("TwoVals.kt") + public void testTwoVals() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/dataClass/TwoVals.kt"); + } + + @Test + @TestMetadata("TwoVars.kt") + public void testTwoVars() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/dataClass/TwoVars.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava") + @TestDataPath("$PROJECT_ROOT") + public class FromLoadJava { + @Test + public void testAllFilesPresentInFromLoadJava() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("ArrayTypeVariance.kt") + public void testArrayTypeVariance() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ArrayTypeVariance.kt"); + } + + @Test + @TestMetadata("ClassDoesNotOverrideMethod.kt") + public void testClassDoesNotOverrideMethod() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassDoesNotOverrideMethod.kt"); + } + + @Test + @TestMetadata("ClassObject.kt") + public void testClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassObject.kt"); + } + + @Test + @TestMetadata("classObjectAnnotation.kt") + public void testClassObjectAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/classObjectAnnotation.kt"); + } + + @Test + @TestMetadata("ClassWithConstVal.kt") + public void testClassWithConstVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithConstVal.kt"); + } + + @Test + @TestMetadata("ClassWithTypeP.kt") + public void testClassWithTypeP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithTypeP.kt"); + } + + @Test + @TestMetadata("ClassWithTypePExtendsIterableP.kt") + public void testClassWithTypePExtendsIterableP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithTypePExtendsIterableP.kt"); + } + + @Test + @TestMetadata("ClassWithTypePP.kt") + public void testClassWithTypePP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithTypePP.kt"); + } + + @Test + @TestMetadata("ClassWithTypePRefNext.kt") + public void testClassWithTypePRefNext() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithTypePRefNext.kt"); + } + + @Test + @TestMetadata("ClassWithTypePRefSelf.kt") + public void testClassWithTypePRefSelf() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithTypePRefSelf.kt"); + } + + @Test + @TestMetadata("ClassWithTypePRefSelfAndClass.kt") + public void testClassWithTypePRefSelfAndClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithTypePRefSelfAndClass.kt"); + } + + @Test + @TestMetadata("FieldAsVar.kt") + public void testFieldAsVar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/FieldAsVar.kt"); + } + + @Test + @TestMetadata("FieldOfArrayType.kt") + public void testFieldOfArrayType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/FieldOfArrayType.kt"); + } + + @Test + @TestMetadata("FinalFieldAsVal.kt") + public void testFinalFieldAsVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/FinalFieldAsVal.kt"); + } + + @Test + @TestMetadata("genericFunction.kt") + public void testGenericFunction() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/genericFunction.kt"); + } + + @Test + @TestMetadata("InheritMethodsDifferentReturnTypes.kt") + public void testInheritMethodsDifferentReturnTypes() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypes.kt"); + } + + @Test + @TestMetadata("InheritMethodsDifferentReturnTypesGeneric.kt") + public void testInheritMethodsDifferentReturnTypesGeneric() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypesGeneric.kt"); + } + + @Test + @TestMetadata("InnerClass.kt") + public void testInnerClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/InnerClass.kt"); + } + + @Test + @TestMetadata("MethodTypePOneUpperBound.kt") + public void testMethodTypePOneUpperBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MethodTypePOneUpperBound.kt"); + } + + @Test + @TestMetadata("MethodTypePTwoUpperBounds.kt") + public void testMethodTypePTwoUpperBounds() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MethodTypePTwoUpperBounds.kt"); + } + + @Test + @TestMetadata("MethodWithTypeP.kt") + public void testMethodWithTypeP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MethodWithTypeP.kt"); + } + + @Test + @TestMetadata("MethodWithTypePP.kt") + public void testMethodWithTypePP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MethodWithTypePP.kt"); + } + + @Test + @TestMetadata("MethodWithTypePRefClassP.kt") + public void testMethodWithTypePRefClassP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MethodWithTypePRefClassP.kt"); + } + + @Test + @TestMetadata("MethosWithPRefTP.kt") + public void testMethosWithPRefTP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MethosWithPRefTP.kt"); + } + + @Test + @TestMetadata("MyException.kt") + public void testMyException() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MyException.kt"); + } + + @Test + @TestMetadata("NestedClass.kt") + public void testNestedClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/NestedClass.kt"); + } + + @Test + @TestMetadata("objectInClass.kt") + public void testObjectInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/objectInClass.kt"); + } + + @Test + @TestMetadata("objectMembers.kt") + public void testObjectMembers() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/objectMembers.kt"); + } + + @Test + @TestMetadata("packageLevelObject.kt") + public void testPackageLevelObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/packageLevelObject.kt"); + } + + @Test + @TestMetadata("RemoveRedundantProjectionKind.kt") + public void testRemoveRedundantProjectionKind() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/RemoveRedundantProjectionKind.kt"); + } + + @Test + @TestMetadata("Simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/Simple.kt"); + } + + @Test + @TestMetadata("TwoFields.kt") + public void testTwoFields() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/TwoFields.kt"); + } + + @Test + @TestMetadata("UnboundWildcard.kt") + public void testUnboundWildcard() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/UnboundWildcard.kt"); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature") + @TestDataPath("$PROJECT_ROOT") + public class KotlinSignature { + @Test + @TestMetadata("AllBoundsInWhen.kt") + public void testAllBoundsInWhen() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/AllBoundsInWhen.kt"); + } + + @Test + public void testAllFilesPresentInKotlinSignature() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("ArrayType.kt") + public void testArrayType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/ArrayType.kt"); + } + + @Test + @TestMetadata("ConstructorWithNewTypeParams.kt") + public void testConstructorWithNewTypeParams() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/ConstructorWithNewTypeParams.kt"); + } + + @Test + @TestMetadata("ConstructorWithParentTypeParams.kt") + public void testConstructorWithParentTypeParams() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/ConstructorWithParentTypeParams.kt"); + } + + @Test + @TestMetadata("ConstructorWithSeveralParams.kt") + public void testConstructorWithSeveralParams() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/ConstructorWithSeveralParams.kt"); + } + + @Test + @TestMetadata("ConstructorWithoutParams.kt") + public void testConstructorWithoutParams() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/ConstructorWithoutParams.kt"); + } + + @Test + @TestMetadata("CustomProjectionKind.kt") + public void testCustomProjectionKind() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/CustomProjectionKind.kt"); + } + + @Test + @TestMetadata("MethodWithFunctionTypes.kt") + public void testMethodWithFunctionTypes() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/MethodWithFunctionTypes.kt"); + } + + @Test + @TestMetadata("MethodWithGenerics.kt") + public void testMethodWithGenerics() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/MethodWithGenerics.kt"); + } + + @Test + @TestMetadata("MethodWithMappedClasses.kt") + public void testMethodWithMappedClasses() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/MethodWithMappedClasses.kt"); + } + + @Test + @TestMetadata("MethodWithTypeParameters.kt") + public void testMethodWithTypeParameters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/MethodWithTypeParameters.kt"); + } + + @Test + @TestMetadata("MethodWithVararg.kt") + public void testMethodWithVararg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/MethodWithVararg.kt"); + } + + @Test + @TestMetadata("PropertyArrayTypes.kt") + public void testPropertyArrayTypes() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/PropertyArrayTypes.kt"); + } + + @Test + @TestMetadata("PropertyComplexTypes.kt") + public void testPropertyComplexTypes() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/PropertyComplexTypes.kt"); + } + + @Test + @TestMetadata("PropertySimpleType.kt") + public void testPropertySimpleType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/PropertySimpleType.kt"); + } + + @Test + @TestMetadata("StarProjection.kt") + public void testStarProjection() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/StarProjection.kt"); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error") + @TestDataPath("$PROJECT_ROOT") + public class Error { + @Test + @TestMetadata("AddingNullability.kt") + public void testAddingNullability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/AddingNullability.kt"); + } + + @Test + public void testAllFilesPresentInError() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("ConflictingProjectionKind.kt") + public void testConflictingProjectionKind() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/ConflictingProjectionKind.kt"); + } + + @Test + @TestMetadata("ExplicitFieldGettersAndSetters.kt") + public void testExplicitFieldGettersAndSetters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/ExplicitFieldGettersAndSetters.kt"); + } + + @Test + @TestMetadata("ExtraUpperBound.kt") + public void testExtraUpperBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/ExtraUpperBound.kt"); + } + + @Test + @TestMetadata("MissingUpperBound.kt") + public void testMissingUpperBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/MissingUpperBound.kt"); + } + + @Test + @TestMetadata("NoFieldTypeRef.kt") + public void testNoFieldTypeRef() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/NoFieldTypeRef.kt"); + } + + @Test + @TestMetadata("NotVarargReplacedWithVararg.kt") + public void testNotVarargReplacedWithVararg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/NotVarargReplacedWithVararg.kt"); + } + + @Test + @TestMetadata("RedundantProjectionKind.kt") + public void testRedundantProjectionKind() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/RedundantProjectionKind.kt"); + } + + @Test + @TestMetadata("ReturnTypeMissing.kt") + public void testReturnTypeMissing() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/ReturnTypeMissing.kt"); + } + + @Test + @TestMetadata("SyntaxError.kt") + public void testSyntaxError() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/SyntaxError.kt"); + } + + @Test + @TestMetadata("SyntaxErrorInFieldAnnotation.kt") + public void testSyntaxErrorInFieldAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/SyntaxErrorInFieldAnnotation.kt"); + } + + @Test + @TestMetadata("VarargReplacedWithNotVararg.kt") + public void testVarargReplacedWithNotVararg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/VarargReplacedWithNotVararg.kt"); + } + + @Test + @TestMetadata("WrongFieldInitializer.kt") + public void testWrongFieldInitializer() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongFieldInitializer.kt"); + } + + @Test + @TestMetadata("WrongFieldMutability.kt") + public void testWrongFieldMutability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongFieldMutability.kt"); + } + + @Test + @TestMetadata("WrongFieldName.kt") + public void testWrongFieldName() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongFieldName.kt"); + } + + @Test + @TestMetadata("WrongMethodName.kt") + public void testWrongMethodName() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongMethodName.kt"); + } + + @Test + @TestMetadata("WrongProjectionKind.kt") + public void testWrongProjectionKind() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongProjectionKind.kt"); + } + + @Test + @TestMetadata("WrongReturnTypeStructure.kt") + public void testWrongReturnTypeStructure() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongReturnTypeStructure.kt"); + } + + @Test + @TestMetadata("WrongTypeName1.kt") + public void testWrongTypeName1() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeName1.kt"); + } + + @Test + @TestMetadata("WrongTypeName2.kt") + public void testWrongTypeName2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeName2.kt"); + } + + @Test + @TestMetadata("WrongTypeName3.kt") + public void testWrongTypeName3() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeName3.kt"); + } + + @Test + @TestMetadata("WrongTypeParameterBoundStructure1.kt") + public void testWrongTypeParameterBoundStructure1() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeParameterBoundStructure1.kt"); + } + + @Test + @TestMetadata("WrongTypeParameterBoundStructure2.kt") + public void testWrongTypeParameterBoundStructure2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeParameterBoundStructure2.kt"); + } + + @Test + @TestMetadata("WrongTypeParametersCount.kt") + public void testWrongTypeParametersCount() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeParametersCount.kt"); + } + + @Test + @TestMetadata("WrongValueParameterStructure1.kt") + public void testWrongValueParameterStructure1() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongValueParameterStructure1.kt"); + } + + @Test + @TestMetadata("WrongValueParameterStructure2.kt") + public void testWrongValueParameterStructure2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongValueParameterStructure2.kt"); + } + + @Test + @TestMetadata("WrongValueParametersCount.kt") + public void testWrongValueParametersCount() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongValueParametersCount.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation") + @TestDataPath("$PROJECT_ROOT") + public class Propagation { + @Test + public void testAllFilesPresentInPropagation() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("PropagateTypeArgumentNullable.kt") + public void testPropagateTypeArgumentNullable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/PropagateTypeArgumentNullable.kt"); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter") + @TestDataPath("$PROJECT_ROOT") + public class Parameter { + @Test + public void testAllFilesPresentInParameter() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("ChangeProjectionKind1.kt") + public void testChangeProjectionKind1() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ChangeProjectionKind1.kt"); + } + + @Test + @TestMetadata("ChangeProjectionKind2.kt") + public void testChangeProjectionKind2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ChangeProjectionKind2.kt"); + } + + @Test + @TestMetadata("DeeplySubstitutedClassParameter.kt") + public void testDeeplySubstitutedClassParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/DeeplySubstitutedClassParameter.kt"); + } + + @Test + @TestMetadata("DeeplySubstitutedClassParameter2.kt") + public void testDeeplySubstitutedClassParameter2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/DeeplySubstitutedClassParameter2.kt"); + } + + @Test + @TestMetadata("InheritMutability.kt") + public void testInheritMutability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritMutability.kt"); + } + + @Test + @TestMetadata("InheritNotVararg.kt") + public void testInheritNotVararg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVararg.kt"); + } + + @Test + @TestMetadata("InheritNotVarargInteger.kt") + public void testInheritNotVarargInteger() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargInteger.kt"); + } + + @Test + @TestMetadata("InheritNotVarargNotNull.kt") + public void testInheritNotVarargNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargNotNull.kt"); + } + + @Test + @TestMetadata("InheritNotVarargPrimitive.kt") + public void testInheritNotVarargPrimitive() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargPrimitive.kt"); + } + + @Test + @TestMetadata("InheritNullability.kt") + public void testInheritNullability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNullability.kt"); + } + + @Test + @TestMetadata("InheritProjectionKind.kt") + public void testInheritProjectionKind() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritProjectionKind.kt"); + } + + @Test + @TestMetadata("InheritReadOnliness.kt") + public void testInheritReadOnliness() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritReadOnliness.kt"); + } + + @Test + @TestMetadata("InheritVararg.kt") + public void testInheritVararg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVararg.kt"); + } + + @Test + @TestMetadata("InheritVarargInteger.kt") + public void testInheritVarargInteger() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargInteger.kt"); + } + + @Test + @TestMetadata("InheritVarargNotNull.kt") + public void testInheritVarargNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargNotNull.kt"); + } + + @Test + @TestMetadata("InheritVarargPrimitive.kt") + public void testInheritVarargPrimitive() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargPrimitive.kt"); + } + + @Test + @TestMetadata("Kt3302.kt") + public void testKt3302() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/Kt3302.kt"); + } + + @Test + @TestMetadata("MutableToReadOnly.kt") + public void testMutableToReadOnly() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/MutableToReadOnly.kt"); + } + + @Test + @TestMetadata("NotNullToNullable.kt") + public void testNotNullToNullable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NotNullToNullable.kt"); + } + + @Test + @TestMetadata("NullableToNotNull.kt") + public void testNullableToNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NullableToNotNull.kt"); + } + + @Test + @TestMetadata("NullableToNotNullKotlinSignature.kt") + public void testNullableToNotNullKotlinSignature() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NullableToNotNullKotlinSignature.kt"); + } + + @Test + @TestMetadata("OverrideWithErasedParameter.kt") + public void testOverrideWithErasedParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/OverrideWithErasedParameter.kt"); + } + + @Test + @TestMetadata("ReadOnlyToMutable.kt") + public void testReadOnlyToMutable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ReadOnlyToMutable.kt"); + } + + @Test + @TestMetadata("SubclassFromGenericAndNot.kt") + public void testSubclassFromGenericAndNot() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubclassFromGenericAndNot.kt"); + } + + @Test + @TestMetadata("SubstitutedClassParameter.kt") + public void testSubstitutedClassParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubstitutedClassParameter.kt"); + } + + @Test + @TestMetadata("SubstitutedClassParameters.kt") + public void testSubstitutedClassParameters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubstitutedClassParameters.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return") + @TestDataPath("$PROJECT_ROOT") + public class Return { + @Test + @TestMetadata("AddNotNullJavaSubtype.kt") + public void testAddNotNullJavaSubtype() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNotNullJavaSubtype.kt"); + } + + @Test + @TestMetadata("AddNotNullSameJavaType.kt") + public void testAddNotNullSameJavaType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNotNullSameJavaType.kt"); + } + + @Test + @TestMetadata("AddNullabilityJavaSubtype.kt") + public void testAddNullabilityJavaSubtype() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilityJavaSubtype.kt"); + } + + @Test + @TestMetadata("AddNullabilitySameGenericType1.kt") + public void testAddNullabilitySameGenericType1() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameGenericType1.kt"); + } + + @Test + @TestMetadata("AddNullabilitySameGenericType2.kt") + public void testAddNullabilitySameGenericType2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameGenericType2.kt"); + } + + @Test + @TestMetadata("AddNullabilitySameJavaType.kt") + public void testAddNullabilitySameJavaType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameJavaType.kt"); + } + + @Test + public void testAllFilesPresentInReturn() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("CantMakeImmutableInSubclass.kt") + public void testCantMakeImmutableInSubclass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/CantMakeImmutableInSubclass.kt"); + } + + @Test + @TestMetadata("DeeplySubstitutedClassParameter.kt") + public void testDeeplySubstitutedClassParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/DeeplySubstitutedClassParameter.kt"); + } + + @Test + @TestMetadata("DeeplySubstitutedClassParameter2.kt") + public void testDeeplySubstitutedClassParameter2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/DeeplySubstitutedClassParameter2.kt"); + } + + @Test + @TestMetadata("HalfSubstitutedTypeParameters.kt") + public void testHalfSubstitutedTypeParameters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/HalfSubstitutedTypeParameters.kt"); + } + + @Test + @TestMetadata("InheritNullabilityGenericSubclassSimple.kt") + public void testInheritNullabilityGenericSubclassSimple() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilityGenericSubclassSimple.kt"); + } + + @Test + @TestMetadata("InheritNullabilityJavaSubtype.kt") + public void testInheritNullabilityJavaSubtype() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilityJavaSubtype.kt"); + } + + @Test + @TestMetadata("InheritNullabilitySameGenericType.kt") + public void testInheritNullabilitySameGenericType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilitySameGenericType.kt"); + } + + @Test + @TestMetadata("InheritNullabilitySameJavaType.kt") + public void testInheritNullabilitySameJavaType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilitySameJavaType.kt"); + } + + @Test + @TestMetadata("InheritProjectionKind.kt") + public void testInheritProjectionKind() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritProjectionKind.kt"); + } + + @Test + @TestMetadata("InheritReadOnlinessOfArgument.kt") + public void testInheritReadOnlinessOfArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessOfArgument.kt"); + } + + @Test + @TestMetadata("InheritReadOnlinessSameClass.kt") + public void testInheritReadOnlinessSameClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessSameClass.kt"); + } + + @Test + @TestMetadata("InheritReadOnlinessSubclass.kt") + public void testInheritReadOnlinessSubclass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessSubclass.kt"); + } + + @Test + @TestMetadata("SameProjectionKind.kt") + public void testSameProjectionKind() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SameProjectionKind.kt"); + } + + @Test + @TestMetadata("SubclassFromGenericAndNot.kt") + public void testSubclassFromGenericAndNot() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubclassFromGenericAndNot.kt"); + } + + @Test + @TestMetadata("SubclassOfCollection.kt") + public void testSubclassOfCollection() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubclassOfCollection.kt"); + } + + @Test + @TestMetadata("SubclassOfMapEntry.kt") + public void testSubclassOfMapEntry() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubclassOfMapEntry.kt"); + } + + @Test + @TestMetadata("SubstitutedClassParameter.kt") + public void testSubstitutedClassParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubstitutedClassParameter.kt"); + } + + @Test + @TestMetadata("SubstitutedClassParameters.kt") + public void testSubstitutedClassParameters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubstitutedClassParameters.kt"); + } + + @Test + @TestMetadata("TwoSuperclassesConflictingProjectionKinds.kt") + public void testTwoSuperclassesConflictingProjectionKinds() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesConflictingProjectionKinds.kt"); + } + + @Test + @TestMetadata("TwoSuperclassesInvariantAndCovariantInferMutability.kt") + public void testTwoSuperclassesInvariantAndCovariantInferMutability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesInvariantAndCovariantInferMutability.kt"); + } + + @Test + @TestMetadata("TwoSuperclassesInvariantAndCovariantInferNullability.kt") + public void testTwoSuperclassesInvariantAndCovariantInferNullability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesInvariantAndCovariantInferNullability.kt"); + } + + @Test + @TestMetadata("TwoSuperclassesMutableAndNot.kt") + public void testTwoSuperclassesMutableAndNot() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesMutableAndNot.kt"); + } + + @Test + @TestMetadata("TwoSuperclassesReturnJavaSubtype.kt") + public void testTwoSuperclassesReturnJavaSubtype() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesReturnJavaSubtype.kt"); + } + + @Test + @TestMetadata("TwoSuperclassesReturnSameJavaType.kt") + public void testTwoSuperclassesReturnSameJavaType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesReturnSameJavaType.kt"); + } + + @Test + @TestMetadata("TwoSuperclassesSupplementNotNull.kt") + public void testTwoSuperclassesSupplementNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesSupplementNotNull.kt"); + } + + @Test + @TestMetadata("TypeParamOfClass.kt") + public void testTypeParamOfClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfClass.kt"); + } + + @Test + @TestMetadata("TypeParamOfClassSubstituted.kt") + public void testTypeParamOfClassSubstituted() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfClassSubstituted.kt"); + } + + @Test + @TestMetadata("TypeParamOfFun.kt") + public void testTypeParamOfFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfFun.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter") + @TestDataPath("$PROJECT_ROOT") + public class TypeParameter { + @Test + public void testAllFilesPresentInTypeParameter() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("InheritMutability.kt") + public void testInheritMutability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritMutability.kt"); + } + + @Test + @TestMetadata("InheritNullability.kt") + public void testInheritNullability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritNullability.kt"); + } + + @Test + @TestMetadata("InheritReadOnliness.kt") + public void testInheritReadOnliness() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritReadOnliness.kt"); + } + + @Test + @TestMetadata("TwoBounds.kt") + public void testTwoBounds() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoBounds.kt"); + } + + @Test + @TestMetadata("TwoSuperclasses.kt") + public void testTwoSuperclasses() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoSuperclasses.kt"); + } + + @Test + @TestMetadata("TwoTypeParameters.kt") + public void testTwoTypeParameters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoTypeParameters.kt"); + } + + @Test + @TestMetadata("UseParameterAsUpperBound.kt") + public void testUseParameterAsUpperBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterAsUpperBound.kt"); + } + + @Test + @TestMetadata("UseParameterInUpperBound.kt") + public void testUseParameterInUpperBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterInUpperBound.kt"); + } + + @Test + @TestMetadata("UseParameterInUpperBoundWithKotlinSignature.kt") + public void testUseParameterInUpperBoundWithKotlinSignature() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterInUpperBoundWithKotlinSignature.kt"); + } + } + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/library") + @TestDataPath("$PROJECT_ROOT") + public class Library { + @Test + public void testAllFilesPresentInLibrary() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/library"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("LoadIterable.kt") + public void testLoadIterable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/library/LoadIterable.kt"); + } + + @Test + @TestMetadata("LoadIterator.kt") + public void testLoadIterator() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/library/LoadIterator.kt"); + } + + @Test + @TestMetadata("Max.kt") + public void testMax() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/library/Max.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/modality") + @TestDataPath("$PROJECT_ROOT") + public class Modality { + @Test + public void testAllFilesPresentInModality() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/modality"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("ModalityOfFakeOverrides.kt") + public void testModalityOfFakeOverrides() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/modality/ModalityOfFakeOverrides.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull") + @TestDataPath("$PROJECT_ROOT") + public class NotNull { + @Test + public void testAllFilesPresentInNotNull() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("NotNullField.kt") + public void testNotNullField() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull/NotNullField.kt"); + } + + @Test + @TestMetadata("NotNullIntArray.kt") + public void testNotNullIntArray() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull/NotNullIntArray.kt"); + } + + @Test + @TestMetadata("NotNullMethod.kt") + public void testNotNullMethod() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull/NotNullMethod.kt"); + } + + @Test + @TestMetadata("NotNullObjectArray.kt") + public void testNotNullObjectArray() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull/NotNullObjectArray.kt"); + } + + @Test + @TestMetadata("NotNullParameter.kt") + public void testNotNullParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull/NotNullParameter.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fun") + @TestDataPath("$PROJECT_ROOT") + public class Fun { + @Test + public void testAllFilesPresentInFun() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fun"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("Assert.kt") + public void testAssert() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/Assert.kt"); + } + + @Test + @TestMetadata("DeclaredMemberOverridesDelegated.kt") + public void testDeclaredMemberOverridesDelegated() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/DeclaredMemberOverridesDelegated.kt"); + } + + @Test + @TestMetadata("InfixKeyword.kt") + public void testInfixKeyword() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/InfixKeyword.kt"); + } + + @Test + @TestMetadata("InheritMethodsDifferentReturnTypesAndVisibilities.kt") + public void testInheritMethodsDifferentReturnTypesAndVisibilities() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/InheritMethodsDifferentReturnTypesAndVisibilities.kt"); + } + + @Test + @TestMetadata("InheritValAndVar.kt") + public void testInheritValAndVar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/InheritValAndVar.kt"); + } + + @Test + @TestMetadata("InheritValsDifferentTypes.kt") + public void testInheritValsDifferentTypes() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/InheritValsDifferentTypes.kt"); + } + + @Test + @TestMetadata("NoSamAdapter.kt") + public void testNoSamAdapter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/NoSamAdapter.kt"); + } + + @Test + @TestMetadata("NoSamConstructor.kt") + public void testNoSamConstructor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/NoSamConstructor.kt"); + } + + @Test + @TestMetadata("OperatorKeyword.kt") + public void testOperatorKeyword() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/OperatorKeyword.kt"); + } + + @Test + @TestMetadata("PropagateDeepSubclass.kt") + public void testPropagateDeepSubclass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/PropagateDeepSubclass.kt"); + } + + @Test + @TestMetadata("PropagateSubclassOfComparable.kt") + public void testPropagateSubclassOfComparable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/PropagateSubclassOfComparable.kt"); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables") + @TestDataPath("$PROJECT_ROOT") + public class GenericWithTypeVariables { + @Test + public void testAllFilesPresentInGenericWithTypeVariables() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("FunGenericParam.kt") + public void testFunGenericParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunGenericParam.kt"); + } + + @Test + @TestMetadata("FunParamParam.kt") + public void testFunParamParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamParam.kt"); + } + + @Test + @TestMetadata("FunParamParamErased.kt") + public void testFunParamParamErased() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamParamErased.kt"); + } + + @Test + @TestMetadata("FunParamReferencesParam.kt") + public void testFunParamReferencesParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamReferencesParam.kt"); + } + + @Test + @TestMetadata("FunParamTwoUpperBounds.kt") + public void testFunParamTwoUpperBounds() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamTwoUpperBounds.kt"); + } + + @Test + @TestMetadata("FunParamUpperClassBound.kt") + public void testFunParamUpperClassBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamUpperClassBound.kt"); + } + + @Test + @TestMetadata("FunParamUpperClassInterfaceBound.kt") + public void testFunParamUpperClassInterfaceBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamUpperClassInterfaceBound.kt"); + } + + @Test + @TestMetadata("FunParamUpperInterfaceBound.kt") + public void testFunParamUpperInterfaceBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamUpperInterfaceBound.kt"); + } + + @Test + @TestMetadata("FunParamVaragParam.kt") + public void testFunParamVaragParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamVaragParam.kt"); + } + + @Test + @TestMetadata("FunTwoTypeParams.kt") + public void testFunTwoTypeParams() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunTwoTypeParams.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables") + @TestDataPath("$PROJECT_ROOT") + public class GenericWithoutTypeVariables { + @Test + public void testAllFilesPresentInGenericWithoutTypeVariables() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("FunClassParamNotNull.kt") + public void testFunClassParamNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables/FunClassParamNotNull.kt"); + } + + @Test + @TestMetadata("FunClassParamNullable.kt") + public void testFunClassParamNullable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables/FunClassParamNullable.kt"); + } + + @Test + @TestMetadata("FunParamNullable.kt") + public void testFunParamNullable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables/FunParamNullable.kt"); + } + + @Test + @TestMetadata("ReturnTypeClassParamNotNull.kt") + public void testReturnTypeClassParamNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables/ReturnTypeClassParamNotNull.kt"); + } + + @Test + @TestMetadata("ReturnTypeClassParamNullable.kt") + public void testReturnTypeClassParamNullable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables/ReturnTypeClassParamNullable.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric") + @TestDataPath("$PROJECT_ROOT") + public class NonGeneric { + @Test + public void testAllFilesPresentInNonGeneric() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("ClassFun.kt") + public void testClassFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ClassFun.kt"); + } + + @Test + @TestMetadata("ClassFunGetFoo.kt") + public void testClassFunGetFoo() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ClassFunGetFoo.kt"); + } + + @Test + @TestMetadata("ClassFunGetFooSetFoo.kt") + public void testClassFunGetFooSetFoo() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ClassFunGetFooSetFoo.kt"); + } + + @Test + @TestMetadata("ClassFunSetFoo.kt") + public void testClassFunSetFoo() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ClassFunSetFoo.kt"); + } + + @Test + @TestMetadata("ExtFun.kt") + public void testExtFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ExtFun.kt"); + } + + @Test + @TestMetadata("ExtFunInClass.kt") + public void testExtFunInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ExtFunInClass.kt"); + } + + @Test + @TestMetadata("FunDefaultArg.kt") + public void testFunDefaultArg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/FunDefaultArg.kt"); + } + + @Test + @TestMetadata("FunParamNotNull.kt") + public void testFunParamNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/FunParamNotNull.kt"); + } + + @Test + @TestMetadata("FunVarargInt.kt") + public void testFunVarargInt() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/FunVarargInt.kt"); + } + + @Test + @TestMetadata("FunVarargInteger.kt") + public void testFunVarargInteger() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/FunVarargInteger.kt"); + } + + @Test + @TestMetadata("ModifierAbstract.kt") + public void testModifierAbstract() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ModifierAbstract.kt"); + } + + @Test + @TestMetadata("ModifierOpen.kt") + public void testModifierOpen() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ModifierOpen.kt"); + } + + @Test + @TestMetadata("NsFun.kt") + public void testNsFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/NsFun.kt"); + } + + @Test + @TestMetadata("NsFunGetFoo.kt") + public void testNsFunGetFoo() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/NsFunGetFoo.kt"); + } + + @Test + @TestMetadata("ReturnTypeNotNull.kt") + public void testReturnTypeNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ReturnTypeNotNull.kt"); + } + + @Test + @TestMetadata("ReturnTypeNullable.kt") + public void testReturnTypeNullable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ReturnTypeNullable.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fun/vararg") + @TestDataPath("$PROJECT_ROOT") + public class Vararg { + @Test + public void testAllFilesPresentInVararg() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fun/vararg"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("nonLastVararg.kt") + public void testNonLastVararg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/vararg/nonLastVararg.kt"); + } + + @Test + @TestMetadata("VarargInt.kt") + public void testVarargInt() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/vararg/VarargInt.kt"); + } + + @Test + @TestMetadata("VarargString.kt") + public void testVarargString() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/vararg/VarargString.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/inline") + @TestDataPath("$PROJECT_ROOT") + public class Inline { + @Test + public void testAllFilesPresentInInline() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("inlineFunction.kt") + public void testInlineFunction() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/inline/inlineFunction.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/memberOrder") + @TestDataPath("$PROJECT_ROOT") + public class MemberOrder { + @Test + public void testAllFilesPresentInMemberOrder() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/memberOrder"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("callablesNameClash.kt") + public void testCallablesNameClash() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/memberOrder/callablesNameClash.kt"); + } + + @Test + @TestMetadata("extensionMembers.kt") + public void testExtensionMembers() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/memberOrder/extensionMembers.kt"); + } + + @Test + @TestMetadata("extensionPropertiesNameClash.kt") + public void testExtensionPropertiesNameClash() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/memberOrder/extensionPropertiesNameClash.kt"); + } + + @Test + @TestMetadata("innerClasses.kt") + public void testInnerClasses() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/memberOrder/innerClasses.kt"); + } + + @Test + @TestMetadata("topLevelCallables.kt") + public void testTopLevelCallables() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/memberOrder/topLevelCallables.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/nestedClasses") + @TestDataPath("$PROJECT_ROOT") + public class NestedClasses { + @Test + public void testAllFilesPresentInNestedClasses() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/nestedClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("deepInnerGeneric.kt") + public void testDeepInnerGeneric() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/nestedClasses/deepInnerGeneric.kt"); + } + + @Test + @TestMetadata("innerClassReferencesOuterTP.kt") + public void testInnerClassReferencesOuterTP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/nestedClasses/innerClassReferencesOuterTP.kt"); + } + + @Test + @TestMetadata("membersReferenceOuterTP.kt") + public void testMembersReferenceOuterTP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/nestedClasses/membersReferenceOuterTP.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/platformTypes") + @TestDataPath("$PROJECT_ROOT") + public class PlatformTypes { + @Test + public void testAllFilesPresentInPlatformTypes() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/platformTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("notnullTypeArgument.kt") + public void testNotnullTypeArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/platformTypes/notnullTypeArgument.kt"); + } + + @Test + @TestMetadata("nullableTypeArgument.kt") + public void testNullableTypeArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/platformTypes/nullableTypeArgument.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/prop") + @TestDataPath("$PROJECT_ROOT") + public class Prop { + @Test + public void testAllFilesPresentInProp() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/prop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("ClassVal.kt") + public void testClassVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ClassVal.kt"); + } + + @Test + @TestMetadata("ClassValAbstract.kt") + public void testClassValAbstract() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ClassValAbstract.kt"); + } + + @Test + @TestMetadata("ClassVar.kt") + public void testClassVar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ClassVar.kt"); + } + + @Test + @TestMetadata("CollectionSize.kt") + public void testCollectionSize() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/CollectionSize.kt"); + } + + @Test + @TestMetadata("Const.kt") + public void testConst() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/Const.kt"); + } + + @Test + @TestMetadata("Constants.kt") + public void testConstants() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/Constants.kt"); + } + + @Test + @TestMetadata("ExtValClass.kt") + public void testExtValClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValClass.kt"); + } + + @Test + @TestMetadata("ExtValInClass.kt") + public void testExtValInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValInClass.kt"); + } + + @Test + @TestMetadata("ExtValInt.kt") + public void testExtValInt() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValInt.kt"); + } + + @Test + @TestMetadata("ExtValIntCharSequence.kt") + public void testExtValIntCharSequence() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValIntCharSequence.kt"); + } + + @Test + @TestMetadata("ExtValIntCharSequenceQ.kt") + public void testExtValIntCharSequenceQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValIntCharSequenceQ.kt"); + } + + @Test + @TestMetadata("ExtValIntListQOfIntInClass.kt") + public void testExtValIntListQOfIntInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValIntListQOfIntInClass.kt"); + } + + @Test + @TestMetadata("ExtValIntTInClass.kt") + public void testExtValIntTInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValIntTInClass.kt"); + } + + @Test + @TestMetadata("ExtValIntTQInClass.kt") + public void testExtValIntTQInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValIntTQInClass.kt"); + } + + @Test + @TestMetadata("ExtValTIntInClass.kt") + public void testExtValTIntInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValTIntInClass.kt"); + } + + @Test + @TestMetadata("ExtVarClass.kt") + public void testExtVarClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarClass.kt"); + } + + @Test + @TestMetadata("ExtVarInClass.kt") + public void testExtVarInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarInClass.kt"); + } + + @Test + @TestMetadata("ExtVarInt.kt") + public void testExtVarInt() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarInt.kt"); + } + + @Test + @TestMetadata("ExtVarIntTInClass.kt") + public void testExtVarIntTInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarIntTInClass.kt"); + } + + @Test + @TestMetadata("ExtVarIntTQInClass.kt") + public void testExtVarIntTQInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarIntTQInClass.kt"); + } + + @Test + @TestMetadata("ExtVarMapPQInt.kt") + public void testExtVarMapPQInt() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarMapPQInt.kt"); + } + + @Test + @TestMetadata("ExtVarTIntInClass.kt") + public void testExtVarTIntInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarTIntInClass.kt"); + } + + @Test + @TestMetadata("ExtVarTQIntInClass.kt") + public void testExtVarTQIntInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarTQIntInClass.kt"); + } + + @Test + @TestMetadata("ExtVarl.kt") + public void testExtVarl() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarl.kt"); + } + + @Test + @TestMetadata("nonConstValWithConstantValueAttribute.kt") + public void testNonConstValWithConstantValueAttribute() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/nonConstValWithConstantValueAttribute.kt"); + } + + @Test + @TestMetadata("NsVal.kt") + public void testNsVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/NsVal.kt"); + } + + @Test + @TestMetadata("NsVar.kt") + public void testNsVar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/NsVar.kt"); + } + + @Test + @TestMetadata("OverrideClassVal.kt") + public void testOverrideClassVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/OverrideClassVal.kt"); + } + + @Test + @TestMetadata("OverrideTraitVal.kt") + public void testOverrideTraitVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/OverrideTraitVal.kt"); + } + + @Test + @TestMetadata("PropFromSuperclass.kt") + public void testPropFromSuperclass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/PropFromSuperclass.kt"); + } + + @Test + @TestMetadata("TraitFinalVar.kt") + public void testTraitFinalVar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/TraitFinalVar.kt"); + } + + @Test + @TestMetadata("TraitOpenVal.kt") + public void testTraitOpenVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/TraitOpenVal.kt"); + } + + @Test + @TestMetadata("VarDelegationToTraitImpl.kt") + public void testVarDelegationToTraitImpl() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/VarDelegationToTraitImpl.kt"); + } + + @Test + @TestMetadata("VarWithDelegated.kt") + public void testVarWithDelegated() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/VarWithDelegated.kt"); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors") + @TestDataPath("$PROJECT_ROOT") + public class DefaultAccessors { + @Test + public void testAllFilesPresentInDefaultAccessors() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("ClassVal.kt") + public void testClassVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVal.kt"); + } + + @Test + @TestMetadata("ClassValParams.kt") + public void testClassValParams() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassValParams.kt"); + } + + @Test + @TestMetadata("ClassValWithGet.kt") + public void testClassValWithGet() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassValWithGet.kt"); + } + + @Test + @TestMetadata("ClassVar.kt") + public void testClassVar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVar.kt"); + } + + @Test + @TestMetadata("ClassVarModality.kt") + public void testClassVarModality() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarModality.kt"); + } + + @Test + @TestMetadata("ClassVarParams.kt") + public void testClassVarParams() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarParams.kt"); + } + + @Test + @TestMetadata("ClassVarWithGet.kt") + public void testClassVarWithGet() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarWithGet.kt"); + } + + @Test + @TestMetadata("ClassVarWithSet.kt") + public void testClassVarWithSet() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarWithSet.kt"); + } + + @Test + @TestMetadata("ExtValLong.kt") + public void testExtValLong() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ExtValLong.kt"); + } + + @Test + @TestMetadata("ExtVarLong.kt") + public void testExtVarLong() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ExtVarLong.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/type") + @TestDataPath("$PROJECT_ROOT") + public class Type { + @Test + public void testAllFilesPresentInType() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/type"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("Any.kt") + public void testAny() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/Any.kt"); + } + + @Test + @TestMetadata("AnyQ.kt") + public void testAnyQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/AnyQ.kt"); + } + + @Test + @TestMetadata("ArrayOfInNumber.kt") + public void testArrayOfInNumber() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ArrayOfInNumber.kt"); + } + + @Test + @TestMetadata("ArrayOfInt.kt") + public void testArrayOfInt() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ArrayOfInt.kt"); + } + + @Test + @TestMetadata("ArrayOfInteger.kt") + public void testArrayOfInteger() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ArrayOfInteger.kt"); + } + + @Test + @TestMetadata("ArrayOfOutNumber.kt") + public void testArrayOfOutNumber() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ArrayOfOutNumber.kt"); + } + + @Test + @TestMetadata("ArrayOfOutT.kt") + public void testArrayOfOutT() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ArrayOfOutT.kt"); + } + + @Test + @TestMetadata("ArrayOfString.kt") + public void testArrayOfString() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ArrayOfString.kt"); + } + + @Test + @TestMetadata("Function1IntString.kt") + public void testFunction1IntString() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/Function1IntString.kt"); + } + + @Test + @TestMetadata("Int.kt") + public void testInt() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/Int.kt"); + } + + @Test + @TestMetadata("IntArray.kt") + public void testIntArray() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/IntArray.kt"); + } + + @Test + @TestMetadata("IntQ.kt") + public void testIntQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/IntQ.kt"); + } + + @Test + @TestMetadata("jlInteger.kt") + public void testJlInteger() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/jlInteger.kt"); + } + + @Test + @TestMetadata("jlIntegerQ.kt") + public void testJlIntegerQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/jlIntegerQ.kt"); + } + + @Test + @TestMetadata("jlNumber.kt") + public void testJlNumber() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/jlNumber.kt"); + } + + @Test + @TestMetadata("jlObject.kt") + public void testJlObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/jlObject.kt"); + } + + @Test + @TestMetadata("jlObjectQ.kt") + public void testJlObjectQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/jlObjectQ.kt"); + } + + @Test + @TestMetadata("jlString.kt") + public void testJlString() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/jlString.kt"); + } + + @Test + @TestMetadata("jlStringQ.kt") + public void testJlStringQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/jlStringQ.kt"); + } + + @Test + @TestMetadata("ListOfAny.kt") + public void testListOfAny() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ListOfAny.kt"); + } + + @Test + @TestMetadata("ListOfAnyQ.kt") + public void testListOfAnyQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ListOfAnyQ.kt"); + } + + @Test + @TestMetadata("ListOfStar.kt") + public void testListOfStar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ListOfStar.kt"); + } + + @Test + @TestMetadata("ListOfString.kt") + public void testListOfString() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ListOfString.kt"); + } + + @Test + @TestMetadata("ListOfjlString.kt") + public void testListOfjlString() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ListOfjlString.kt"); + } + + @Test + @TestMetadata("Nothing.kt") + public void testNothing() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/Nothing.kt"); + } + + @Test + @TestMetadata("NothingQ.kt") + public void testNothingQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/NothingQ.kt"); + } + + @Test + @TestMetadata("platform.kt") + public void testPlatform() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/platform.kt"); + } + + @Test + @TestMetadata("String.kt") + public void testString() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/String.kt"); + } + + @Test + @TestMetadata("StringQ.kt") + public void testStringQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/StringQ.kt"); + } + + @Test + @TestMetadata("SuspendFunction.kt") + public void testSuspendFunction() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/SuspendFunction.kt"); + } + + @Test + @TestMetadata("Unit.kt") + public void testUnit() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/Unit.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/typealias") + @TestDataPath("$PROJECT_ROOT") + public class Typealias { + @Test + public void testAllFilesPresentInTypealias() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/typealias"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("Annotations.kt") + public void testAnnotations() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/typealias/Annotations.kt"); + } + + @Test + @TestMetadata("Basic.kt") + public void testBasic() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/typealias/Basic.kt"); + } + + @Test + @TestMetadata("Generic.kt") + public void testGeneric() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/typealias/Generic.kt"); + } + + @Test + @TestMetadata("TypeAliasToExtension.kt") + public void testTypeAliasToExtension() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/typealias/TypeAliasToExtension.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlin/visibility") + @TestDataPath("$PROJECT_ROOT") + public class Visibility { + @Test + public void testAllFilesPresentInVisibility() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/visibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("InternalClass.kt") + public void testInternalClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/InternalClass.kt"); + } + + @Test + @TestMetadata("InternalConstructor.kt") + public void testInternalConstructor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/InternalConstructor.kt"); + } + + @Test + @TestMetadata("InternalTopLevelMembers.kt") + public void testInternalTopLevelMembers() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/InternalTopLevelMembers.kt"); + } + + @Test + @TestMetadata("PrivateClass.kt") + public void testPrivateClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/PrivateClass.kt"); + } + + @Test + @TestMetadata("PrivateClassMembers.kt") + public void testPrivateClassMembers() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/PrivateClassMembers.kt"); + } + + @Test + @TestMetadata("PrivateToThis.kt") + public void testPrivateToThis() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/PrivateToThis.kt"); + } + + @Test + @TestMetadata("PrivateTopLevelFun.kt") + public void testPrivateTopLevelFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/PrivateTopLevelFun.kt"); + } + + @Test + @TestMetadata("PrivateTopLevelVal.kt") + public void testPrivateTopLevelVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/PrivateTopLevelVal.kt"); + } + + @Test + @TestMetadata("PropertyInConstructor.kt") + public void testPropertyInConstructor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/PropertyInConstructor.kt"); + } + + @Test + @TestMetadata("PropertyInConstructorExplicitVisibility.kt") + public void testPropertyInConstructorExplicitVisibility() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/PropertyInConstructorExplicitVisibility.kt"); + } + + @Test + @TestMetadata("TopLevelVarWithPrivateSetter.kt") + public void testTopLevelVarWithPrivateSetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/TopLevelVarWithPrivateSetter.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib") + @TestDataPath("$PROJECT_ROOT") + public class CompiledKotlinWithStdlib { + @Test + public void testAllFilesPresentInCompiledKotlinWithStdlib() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations") + @TestDataPath("$PROJECT_ROOT") + public class Annotations { + @Test + public void testAllFilesPresentInAnnotations() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("annotationClassDefaultValues.kt") + public void testAnnotationClassDefaultValues() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/annotationClassDefaultValues.kt"); + } + + @Test + @TestMetadata("AnnotationInAnnotationArguments.kt") + public void testAnnotationInAnnotationArguments() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/AnnotationInAnnotationArguments.kt"); + } + + @Test + @TestMetadata("ConstValInMultifileClass.kt") + public void testConstValInMultifileClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/ConstValInMultifileClass.kt"); + } + + @Test + @TestMetadata("EnumArgumentWithCustomToString.kt") + public void testEnumArgumentWithCustomToString() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/EnumArgumentWithCustomToString.kt"); + } + + @Test + @TestMetadata("JvmFieldInInterfaceCompanion.kt") + public void testJvmFieldInInterfaceCompanion() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/JvmFieldInInterfaceCompanion.kt"); + } + + @Test + @TestMetadata("WithUnsignedTypeParameters.kt") + public void testWithUnsignedTypeParameters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/WithUnsignedTypeParameters.kt"); + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/classMembers") + @TestDataPath("$PROJECT_ROOT") + public class ClassMembers { + @Test + public void testAllFilesPresentInClassMembers() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/classMembers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("EnumEntry.kt") + public void testEnumEntry() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/classMembers/EnumEntry.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/parameters") + @TestDataPath("$PROJECT_ROOT") + public class Parameters { + @Test + public void testAllFilesPresentInParameters() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/parameters"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("EnumConstructor.kt") + public void testEnumConstructor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/parameters/EnumConstructor.kt"); + } + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/class") + @TestDataPath("$PROJECT_ROOT") + public class Class { + @Test + public void testAllFilesPresentInClass() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/class"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("EnumWithGenericConstructorParameter.kt") + public void testEnumWithGenericConstructorParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/class/EnumWithGenericConstructorParameter.kt"); + } + + @Test + @TestMetadata("EnumWithPrimitiveConstructorParameter.kt") + public void testEnumWithPrimitiveConstructorParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/class/EnumWithPrimitiveConstructorParameter.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts") + @TestDataPath("$PROJECT_ROOT") + public class Contracts { + @Test + public void testAllFilesPresentInContracts() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("callsEffect.kt") + public void testCallsEffect() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/callsEffect.kt"); + } + + @Test + @TestMetadata("contractWithRefiedGeneric.kt") + public void testContractWithRefiedGeneric() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/contractWithRefiedGeneric.kt"); + } + + @Test + @TestMetadata("contractsOnMembers.kt") + public void testContractsOnMembers() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/contractsOnMembers.kt"); + } + + @Test + @TestMetadata("deeplyNestedExpression.kt") + public void testDeeplyNestedExpression() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/deeplyNestedExpression.kt"); + } + + @Test + @TestMetadata("embedding.kt") + public void testEmbedding() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/embedding.kt"); + } + + @Test + @TestMetadata("fromStandardKt.kt") + public void testFromStandardKt() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/fromStandardKt.kt"); + } + + @Test + @TestMetadata("isInstancePredicate.kt") + public void testIsInstancePredicate() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/isInstancePredicate.kt"); + } + + @Test + @TestMetadata("logicOperators.kt") + public void testLogicOperators() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/logicOperators.kt"); + } + + @Test + @TestMetadata("multieffectContracts.kt") + public void testMultieffectContracts() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/multieffectContracts.kt"); + } + + @Test + @TestMetadata("mutualRecursion.kt") + public void testMutualRecursion() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/mutualRecursion.kt"); + } + + @Test + @TestMetadata("recursion.kt") + public void testRecursion() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/recursion.kt"); + } + + @Test + @TestMetadata("withReceiver.kt") + public void testWithReceiver() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/withReceiver.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/coroutines") + @TestDataPath("$PROJECT_ROOT") + public class Coroutines { + @Test + public void testAllFilesPresentInCoroutines() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("annotatedSuspendFun.kt") + public void testAnnotatedSuspendFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/coroutines/annotatedSuspendFun.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/enum") + @TestDataPath("$PROJECT_ROOT") + public class Enum { + @Test + public void testAllFilesPresentInEnum() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/enum"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("enumVisibility.kt") + public void testEnumVisibility() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/enum/enumVisibility.kt"); + } + + @Test + @TestMetadata("enumWithConstuctor.kt") + public void testEnumWithConstuctor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/enum/enumWithConstuctor.kt"); + } + + @Test + @TestMetadata("enumWithInnerClasses.kt") + public void testEnumWithInnerClasses() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/enum/enumWithInnerClasses.kt"); + } + + @Test + @TestMetadata("innerEnum.kt") + public void testInnerEnum() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/enum/innerEnum.kt"); + } + + @Test + @TestMetadata("innerEnumExistingClassObject.kt") + public void testInnerEnumExistingClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/enum/innerEnumExistingClassObject.kt"); + } + + @Test + @TestMetadata("simpleEnum.kt") + public void testSimpleEnum() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/enum/simpleEnum.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/fromLoadJava") + @TestDataPath("$PROJECT_ROOT") + public class FromLoadJava { + @Test + public void testAllFilesPresentInFromLoadJava() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/fromLoadJava"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("enum.kt") + public void testEnum() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/fromLoadJava/enum.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/memberOrder") + @TestDataPath("$PROJECT_ROOT") + public class MemberOrder { + @Test + public void testAllFilesPresentInMemberOrder() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/memberOrder"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("enumEntries.kt") + public void testEnumEntries() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/memberOrder/enumEntries.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/mutability") + @TestDataPath("$PROJECT_ROOT") + public class Mutability { + @Test + public void testAllFilesPresentInMutability() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/mutability"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("LoadIterable.kt") + public void testLoadIterable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/mutability/LoadIterable.kt"); + } + + @Test + @TestMetadata("LoadIterableWithConflict.kt") + public void testLoadIterableWithConflict() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/mutability/LoadIterableWithConflict.kt"); + } + + @Test + @TestMetadata("LoadIterableWithNullability.kt") + public void testLoadIterableWithNullability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/mutability/LoadIterableWithNullability.kt"); + } + + @Test + @TestMetadata("LoadIterableWithPropagation.kt") + public void testLoadIterableWithPropagation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/mutability/LoadIterableWithPropagation.kt"); + } + } + + @Nested + @TestMetadata("compiler/testData/loadJava/compiledKotlinWithStdlib/platformNames") + @TestDataPath("$PROJECT_ROOT") + public class PlatformNames { + @Test + public void testAllFilesPresentInPlatformNames() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava/compiledKotlinWithStdlib/platformNames"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); + } + + @Test + @TestMetadata("functionName.kt") + public void testFunctionName() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/platformNames/functionName.kt"); + } + } + } +}