diff --git a/.idea/vcs.xml b/.idea/vcs.xml
index 2a7b87e56c9..0dabf9b5533 100644
--- a/.idea/vcs.xml
+++ b/.idea/vcs.xml
@@ -8,13 +8,6 @@
-
-
-
diff --git a/ReadMe.md b/ReadMe.md
index fc1d8b944da..ba956e7a677 100644
--- a/ReadMe.md
+++ b/ReadMe.md
@@ -18,6 +18,7 @@ Some handy links:
* [Issue Tracker](https://youtrack.jetbrains.com/issues/KT)
* [Forum](https://discuss.kotlinlang.org/)
* [Kotlin Blog](https://blog.jetbrains.com/kotlin/)
+ * [Subscribe to Kotlin YouTube channel](https://www.youtube.com/channel/UCP7uiEZIqci43m22KDl0sNw)
* [Follow Kotlin on Twitter](https://twitter.com/kotlin)
* [Public Slack channel](https://slack.kotlinlang.org/)
* [TeamCity CI build](https://teamcity.jetbrains.com/project.html?tab=projectOverview&projectId=Kotlin)
diff --git a/build-common/test/org/jetbrains/kotlin/incremental/testingUtils/BuildLogFinder.kt b/build-common/test/org/jetbrains/kotlin/incremental/testingUtils/BuildLogFinder.kt
index 8d06a700d58..e4e3ef196e5 100644
--- a/build-common/test/org/jetbrains/kotlin/incremental/testingUtils/BuildLogFinder.kt
+++ b/build-common/test/org/jetbrains/kotlin/incremental/testingUtils/BuildLogFinder.kt
@@ -22,12 +22,12 @@ data class BuildLogFinder(
private val isDataContainerBuildLogEnabled: Boolean = false,
private val isGradleEnabled: Boolean = false,
private val isJsEnabled: Boolean = false,
- private val isJsIrEnabled: Boolean = false, // TODO rename as it is used for metadata-only test
- private val isScopeExpansionEnabled: Boolean = false
+ private val isScopeExpansionEnabled: Boolean = false,
+ private val isKlibEnabled: Boolean = false
) {
companion object {
private const val JS_LOG = "js-build.log"
- private const val JS_IR_LOG = "js-ir-build.log"
+ private const val KLIB_LOG = "klib-build.log"
private const val SCOPE_EXPANDING_LOG = "build-with-scope-expansion.log"
private const val GRADLE_LOG = "gradle-build.log"
private const val DATA_CONTAINER_LOG = "data-container-version-build.log"
@@ -43,7 +43,7 @@ data class BuildLogFinder(
val files = names.filter { File(dir, it).isFile }.toSet()
val matchedName = when {
isScopeExpansionEnabled && SCOPE_EXPANDING_LOG in files -> SCOPE_EXPANDING_LOG
- isJsIrEnabled && JS_IR_LOG in files -> JS_IR_LOG
+ isKlibEnabled && KLIB_LOG in files -> KLIB_LOG
isJsEnabled && JS_LOG in files -> JS_LOG
isGradleEnabled && GRADLE_LOG in files -> GRADLE_LOG
isJsEnabled && JS_JPS_LOG in files -> JS_JPS_LOG
diff --git a/build-common/test/org/jetbrains/kotlin/incremental/testingUtils/classFilesComparison.kt b/build-common/test/org/jetbrains/kotlin/incremental/testingUtils/classFilesComparison.kt
index 237c037691e..d10b89f3cec 100644
--- a/build-common/test/org/jetbrains/kotlin/incremental/testingUtils/classFilesComparison.kt
+++ b/build-common/test/org/jetbrains/kotlin/incremental/testingUtils/classFilesComparison.kt
@@ -151,29 +151,35 @@ private fun classFileToString(classFile: File): String {
val traceVisitor = TraceClassVisitor(PrintWriter(out))
ClassReader(classFile.readBytes()).accept(traceVisitor, 0)
- val classHeader = LocalFileKotlinClass.create(classFile)?.classHeader
+ val classHeader = LocalFileKotlinClass.create(classFile)?.classHeader ?: return ""
+ if (!classHeader.metadataVersion.isCompatible()) {
+ error("Incompatible class ($classHeader): $classFile")
+ }
- val annotationDataEncoded = classHeader?.data
- if (annotationDataEncoded != null) {
- ByteArrayInputStream(BitEncoding.decodeBytes(annotationDataEncoded)).use {
- input ->
+ when (classHeader.kind) {
+ KotlinClassHeader.Kind.FILE_FACADE, KotlinClassHeader.Kind.CLASS, KotlinClassHeader.Kind.MULTIFILE_CLASS_PART -> {
+ ByteArrayInputStream(BitEncoding.decodeBytes(classHeader.data!!)).use { input ->
+ out.write("\n------ string table types proto -----\n${DebugJvmProtoBuf.StringTableTypes.parseDelimitedFrom(input)}")
- out.write("\n------ string table types proto -----\n${DebugJvmProtoBuf.StringTableTypes.parseDelimitedFrom(input)}")
-
- if (!classHeader.metadataVersion.isCompatible()) {
- error("Incompatible class ($classHeader): $classFile")
- }
-
- when (classHeader.kind) {
- KotlinClassHeader.Kind.FILE_FACADE ->
- out.write("\n------ file facade proto -----\n${DebugProtoBuf.Package.parseFrom(input, getExtensionRegistry())}")
- KotlinClassHeader.Kind.CLASS ->
- out.write("\n------ class proto -----\n${DebugProtoBuf.Class.parseFrom(input, getExtensionRegistry())}")
- KotlinClassHeader.Kind.MULTIFILE_CLASS_PART ->
- out.write("\n------ multi-file part proto -----\n${DebugProtoBuf.Package.parseFrom(input, getExtensionRegistry())}")
- else -> throw IllegalStateException()
+ when (classHeader.kind) {
+ KotlinClassHeader.Kind.FILE_FACADE ->
+ out.write("\n------ file facade proto -----\n${DebugProtoBuf.Package.parseFrom(input, getExtensionRegistry())}")
+ KotlinClassHeader.Kind.CLASS ->
+ out.write("\n------ class proto -----\n${DebugProtoBuf.Class.parseFrom(input, getExtensionRegistry())}")
+ KotlinClassHeader.Kind.MULTIFILE_CLASS_PART ->
+ out.write("\n------ multi-file part proto -----\n${DebugProtoBuf.Package.parseFrom(input, getExtensionRegistry())}")
+ else -> error(classHeader.kind)
+ }
}
}
+ KotlinClassHeader.Kind.MULTIFILE_CLASS -> {
+ out.write("\n------ multi-file facade data -----\n")
+ out.write(classHeader.data!!.joinToString("\n"))
+ }
+ KotlinClassHeader.Kind.SYNTHETIC_CLASS -> {
+ // Synthetic class has no metadata, thus there can be no differences in it.
+ }
+ KotlinClassHeader.Kind.UNKNOWN -> error("Should not meet unknown classes here: $classFile")
}
return out.toString()
diff --git a/build.gradle.kts b/build.gradle.kts
index 3b44f0ece96..7fdbcc9da7c 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -74,7 +74,7 @@ val kotlinVersion by extra(
} ?: buildNumber
)
-val kotlinLanguageVersion by extra("1.4")
+val kotlinLanguageVersion by extra("1.5")
allprojects {
group = "org.jetbrains.kotlin"
@@ -166,13 +166,12 @@ extra["versions.jansi"] = "1.16"
extra["versions.jline"] = "3.3.1"
extra["versions.junit"] = "4.12"
extra["versions.javaslang"] = "2.0.6"
-extra["versions.ant"] = "1.8.2"
+extra["versions.ant"] = "1.10.7"
extra["versions.android"] = "2.3.1"
extra["versions.kotlinx-coroutines-core"] = "1.3.8"
extra["versions.kotlinx-coroutines-jdk8"] = "1.3.8"
extra["versions.json"] = "20160807"
extra["versions.native-platform"] = "0.14"
-extra["versions.ant-launcher"] = "1.8.0"
extra["versions.robolectric"] = "4.0"
extra["versions.org.springframework"] = "4.2.0.RELEASE"
extra["versions.jflex"] = "1.7.0"
@@ -326,11 +325,13 @@ extra["tasksWithWarnings"] = listOf(
":kotlin-stdlib:compileTestKotlin",
":kotlin-stdlib-jdk7:compileTestKotlin",
":kotlin-stdlib-jdk8:compileTestKotlin",
+ ":compiler:cli:compileKotlin",
":compiler:frontend:compileKotlin",
":compiler:fir:tree:compileKotlin",
":compiler:fir:resolve:compileKotlin",
":compiler:fir:checkers:compileKotlin",
":compiler:fir:java:compileKotlin",
+ ":kotlin-scripting-compiler:compileKotlin",
":plugins:uast-kotlin:compileKotlin",
":plugins:uast-kotlin:compileTestKotlin",
":plugins:uast-kotlin-idea:compileKotlin"
@@ -351,8 +352,7 @@ val coreLibProjects = listOfNotNull(
":kotlin-test:kotlin-test-junit5",
":kotlin-test:kotlin-test-testng",
":kotlin-test:kotlin-test-js".takeIf { !kotlinBuildProperties.isInJpsBuildIdeaSync },
- ":kotlin-reflect",
- ":kotlin-coroutines-experimental-compat"
+ ":kotlin-reflect"
)
val gradlePluginProjects = listOf(
@@ -977,8 +977,7 @@ tasks {
":kotlin-reflect:publish",
":kotlin-main-kts:publish",
":kotlin-stdlib-js:publish",
- ":kotlin-test:kotlin-test-js:publish",
- ":kotlin-coroutines-experimental-compat:publish"
+ ":kotlin-test:kotlin-test-js:publish"
)
}
}
diff --git a/compiler/android-tests/android-module/build.gradle b/compiler/android-tests/android-module/build.gradle
index 979124f4231..91bbd497f93 100644
--- a/compiler/android-tests/android-module/build.gradle
+++ b/compiler/android-tests/android-module/build.gradle
@@ -1,14 +1,11 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
-ext {
- isD8Enabled = project.findProperty('android.enableD8').toBoolean()
-}
buildscript {
repositories {
google()
jcenter()
}
dependencies {
- classpath 'com.android.tools.build:gradle:3.5.3'
+ classpath 'com.android.tools.build:gradle:4.1.1'
}
}
apply plugin: 'com.android.application'
@@ -20,7 +17,7 @@ repositories {
android {
compileSdkVersion 26
- buildToolsVersion "28.0.3"
+ buildToolsVersion "29.0.3"
defaultConfig {
applicationId "org.jetbrains.kotlin.android.tests"
@@ -60,11 +57,9 @@ android {
resultsDir = "build/test/results"
}
- if (isD8Enabled) {
- compileOptions {
- sourceCompatibility = 1.8
- targetCompatibility = 1.8
- }
+ compileOptions {
+ sourceCompatibility = 1.8
+ targetCompatibility = 1.8
}
flavorDimensions "box"
@@ -86,15 +81,12 @@ android {
dimension "box"
}
+ jvm80 {
+ dimension "box"
+ }
- if (isD8Enabled) {
- jvm80 {
- dimension "box"
- }
-
- reflectjvm80 {
- dimension "box"
- }
+ reflectjvm80 {
+ dimension "box"
}
}
diff --git a/compiler/android-tests/android-module/gradle.properties b/compiler/android-tests/android-module/gradle.properties
index b5cbc3bf649..2d32c803a44 100644
--- a/compiler/android-tests/android-module/gradle.properties
+++ b/compiler/android-tests/android-module/gradle.properties
@@ -1,3 +1,2 @@
#don't try to download android specific tools within gradle: licence acceptance will be required
-android.builder.sdkDownload=false
-android.enableD8=true
\ No newline at end of file
+android.builder.sdkDownload=false
\ No newline at end of file
diff --git a/compiler/android-tests/tests/org/jetbrains/kotlin/android/tests/AndroidRunner.java b/compiler/android-tests/tests/org/jetbrains/kotlin/android/tests/AndroidRunner.java
index d7b8b853795..a95405af339 100644
--- a/compiler/android-tests/tests/org/jetbrains/kotlin/android/tests/AndroidRunner.java
+++ b/compiler/android-tests/tests/org/jetbrains/kotlin/android/tests/AndroidRunner.java
@@ -25,7 +25,7 @@ import org.junit.runners.AllTests;
import java.io.File;
-//@RunWith(AllTests.class)
+@RunWith(AllTests.class)
public class AndroidRunner {
private static PathManager pathManager;
diff --git a/compiler/android-tests/tests/org/jetbrains/kotlin/android/tests/CodegenTestsOnAndroidGenerator.kt b/compiler/android-tests/tests/org/jetbrains/kotlin/android/tests/CodegenTestsOnAndroidGenerator.kt
index d11d15d3c30..28c8dd9799a 100644
--- a/compiler/android-tests/tests/org/jetbrains/kotlin/android/tests/CodegenTestsOnAndroidGenerator.kt
+++ b/compiler/android-tests/tests/org/jetbrains/kotlin/android/tests/CodegenTestsOnAndroidGenerator.kt
@@ -321,8 +321,8 @@ class CodegenTestsOnAndroidGenerator private constructor(private val pathManager
CodegenTestCase.createTestFilesFromFile(file, expectedText, false, TargetBackend.JVM)
companion object {
- const val GRADLE_VERSION = "5.6.4" // update GRADLE_SHA_256 on change
- const val GRADLE_SHA_256 = "1f3067073041bc44554d0efe5d402a33bc3d3c93cc39ab684f308586d732a80d"
+ const val GRADLE_VERSION = "6.8.1" // update GRADLE_SHA_256 on change
+ const val GRADLE_SHA_256 = "fd591a34af7385730970399f473afabdb8b28d57fd97d6625c388d090039d6fd"
const val testClassPackage = "org.jetbrains.kotlin.android.tests"
const val testClassName = "CodegenTestCaseOnAndroid"
const val baseTestClassPackage = "org.jetbrains.kotlin.android.tests"
diff --git a/compiler/android-tests/tests/org/jetbrains/kotlin/android/tests/CodegenTestsOnAndroidRunner.kt b/compiler/android-tests/tests/org/jetbrains/kotlin/android/tests/CodegenTestsOnAndroidRunner.kt
index 9d9a05be748..b435d38066d 100644
--- a/compiler/android-tests/tests/org/jetbrains/kotlin/android/tests/CodegenTestsOnAndroidRunner.kt
+++ b/compiler/android-tests/tests/org/jetbrains/kotlin/android/tests/CodegenTestsOnAndroidRunner.kt
@@ -55,16 +55,6 @@ class CodegenTestsOnAndroidRunner private constructor(private val pathManager: P
runTestsOnEmulator(gradleRunner, TestSuite("D8")).apply {
rootSuite.addTest(this)
}
-
- renameFlavorFolder()
- enableD8(false)
- runTestsOnEmulator(gradleRunner, TestSuite("DX")).apply {
- (0 until this.countTestCases()).forEach {
- val testCase = testAt(it) as TestCase
- testCase.name += "_DX"
- }
- rootSuite.addTest(this)
- }
} catch (e: RuntimeException) {
e.printStackTrace()
throw e
@@ -81,16 +71,6 @@ class CodegenTestsOnAndroidRunner private constructor(private val pathManager: P
return rootSuite
}
- private fun enableD8(enable: Boolean) {
- val file = File(pathManager.androidTmpFolder, "gradle.properties")
- val lines = file.readLines().map {
- if (it.startsWith("android.enableD8=")) {
- "android.enableD8=$enable"
- } else it
- }
- file.writeText(lines.joinToString("\n"))
- }
-
private fun processReport(suite: TestSuite, resultOutput: String) {
val reportFolder = File(flavorFolder())
try {
diff --git a/compiler/android-tests/tests/org/jetbrains/kotlin/android/tests/emulator/Emulator.java b/compiler/android-tests/tests/org/jetbrains/kotlin/android/tests/emulator/Emulator.java
index 79fe6e5b066..d14a7cad83f 100644
--- a/compiler/android-tests/tests/org/jetbrains/kotlin/android/tests/emulator/Emulator.java
+++ b/compiler/android-tests/tests/org/jetbrains/kotlin/android/tests/emulator/Emulator.java
@@ -121,8 +121,11 @@ public class Emulator {
public void startEmulator() {
startServer();
- System.out.println("Starting emulator...");
- RunUtils.executeOnSeparateThread(new RunUtils.RunSettings(getStartCommand(), null, false, "START: ", true));
+ System.out.println("Starting emulator with ANDROID_HOME/ANDROID_SDK_ROOT: " + pathManager.getAndroidSdkRoot());
+ GeneralCommandLine startCommand = getStartCommand();
+ startCommand.withEnvironment("ANDROID_SDK_ROOT", pathManager.getAndroidSdkRoot());
+ startCommand.withEnvironment("ANDROID_HOME", pathManager.getAndroidSdkRoot());
+ RunUtils.executeOnSeparateThread(new RunUtils.RunSettings(startCommand, null, false, "START: ", true));
printLog();
}
@@ -144,6 +147,7 @@ public class Emulator {
bootCheckCommand.addParameter("shell");
bootCheckCommand.addParameter("getprop");
bootCheckCommand.addParameter("sys.boot_completed");
+
int counter = 0;
RunResult execute = RunUtils.execute(bootCheckCommand);
while (counter < 20) {
diff --git a/compiler/backend/src/org/jetbrains/kotlin/codegen/ClassFileFactory.java b/compiler/backend/src/org/jetbrains/kotlin/codegen/ClassFileFactory.java
index f6fe43879ad..80edfb9bf18 100644
--- a/compiler/backend/src/org/jetbrains/kotlin/codegen/ClassFileFactory.java
+++ b/compiler/backend/src/org/jetbrains/kotlin/codegen/ClassFileFactory.java
@@ -264,7 +264,7 @@ public class ClassFileFactory implements OutputFileCollection {
return new MultifileClassCodegenImpl(state, files, facadeFqName);
}
- private void registerSourceFiles(Collection files) {
+ public void registerSourceFiles(@NotNull Collection files) {
sourceFiles.addAll(toIoFilesIgnoringNonPhysical(files));
}
@@ -272,6 +272,7 @@ public class ClassFileFactory implements OutputFileCollection {
private static List toIoFilesIgnoringNonPhysical(@NotNull Collection extends PsiFile> psiFiles) {
List result = new ArrayList<>(psiFiles.size());
for (PsiFile psiFile : psiFiles) {
+ if (psiFile == null) continue;
VirtualFile virtualFile = psiFile.getVirtualFile();
// We ignore non-physical files here, because this code is needed to tell the make what inputs affect which outputs
// a non-physical file cannot be processed by make
diff --git a/compiler/backend/src/org/jetbrains/kotlin/codegen/ConstructorCodegen.java b/compiler/backend/src/org/jetbrains/kotlin/codegen/ConstructorCodegen.java
index cf1bb8fab10..5d6cdd92961 100644
--- a/compiler/backend/src/org/jetbrains/kotlin/codegen/ConstructorCodegen.java
+++ b/compiler/backend/src/org/jetbrains/kotlin/codegen/ConstructorCodegen.java
@@ -19,7 +19,6 @@ import org.jetbrains.kotlin.resolve.BindingContext;
import org.jetbrains.kotlin.resolve.DescriptorToSourceUtils;
import org.jetbrains.kotlin.resolve.InlineClassesUtilsKt;
import org.jetbrains.kotlin.resolve.calls.model.ResolvedCall;
-import org.jetbrains.kotlin.resolve.jvm.InlineClassManglingRulesKt;
import org.jetbrains.kotlin.resolve.jvm.diagnostics.JvmDeclarationOrigin;
import org.jetbrains.kotlin.resolve.jvm.diagnostics.JvmDeclarationOriginKt;
import org.jetbrains.kotlin.resolve.jvm.jvmSignature.JvmMethodParameterKind;
@@ -118,8 +117,9 @@ public class ConstructorCodegen {
}
private void registerAccessorForHiddenConstructorIfNeeded(ClassConstructorDescriptor descriptor) {
- if (!InlineClassManglingRulesKt.shouldHideConstructorDueToInlineClassTypeValueParameters(descriptor)) return;
- context.getAccessor(descriptor, AccessorKind.NORMAL, null, null);
+ if (DescriptorAsmUtil.isHiddenConstructor(descriptor)) {
+ context.getAccessor(descriptor, AccessorKind.NORMAL, null, null);
+ }
}
public void generateSecondaryConstructor(
@@ -371,11 +371,13 @@ public class ConstructorCodegen {
JvmMethodParameterKind delegatingKind = delegatingParameters.get(index).getKind();
if (delegatingKind == JvmMethodParameterKind.VALUE) {
assert index == parameters.size() || parameters.get(index).getKind() == JvmMethodParameterKind.VALUE:
- "Delegating constructor has not enough implicit parameters";
+ "Delegating constructor has not enough implicit parameters: " + delegatingConstructor;
break;
}
- assert index < parameters.size() && parameters.get(index).getKind() == delegatingKind :
- "Constructors of the same class should have the same set of implicit arguments";
+ if (index >= parameters.size() || parameters.get(index).getKind() != delegatingKind) {
+ throw new AssertionError(
+ "Constructors of the same class should have the same set of implicit arguments: " + delegatingConstructor);
+ }
JvmMethodParameterSignature parameter = parameters.get(index);
iv.load(offset, parameter.getAsmType());
@@ -383,7 +385,7 @@ public class ConstructorCodegen {
}
assert index == parameters.size() || parameters.get(index).getKind() == JvmMethodParameterKind.VALUE :
- "Delegating constructor has not enough parameters";
+ "Delegating constructor has not enough parameters: " + delegatingConstructor;
return new CallBasedArgumentGenerator(codegen, codegen.defaultCallGenerator, delegatingConstructor.getValueParameters(),
delegatingCallable.getValueParameterTypes());
diff --git a/compiler/backend/src/org/jetbrains/kotlin/codegen/DescriptorAsmUtil.java b/compiler/backend/src/org/jetbrains/kotlin/codegen/DescriptorAsmUtil.java
index 2ab32eba3b0..2764a922a58 100644
--- a/compiler/backend/src/org/jetbrains/kotlin/codegen/DescriptorAsmUtil.java
+++ b/compiler/backend/src/org/jetbrains/kotlin/codegen/DescriptorAsmUtil.java
@@ -61,7 +61,8 @@ import static org.jetbrains.kotlin.codegen.JvmCodegenUtil.isJvmInterface;
import static org.jetbrains.kotlin.resolve.DescriptorUtils.*;
import static org.jetbrains.kotlin.resolve.inline.InlineOnlyKt.isInlineOnlyPrivateInBytecode;
import static org.jetbrains.kotlin.resolve.inline.InlineOnlyKt.isInlineWithReified;
-import static org.jetbrains.kotlin.resolve.jvm.AsmTypes.*;
+import static org.jetbrains.kotlin.resolve.jvm.AsmTypes.JAVA_STRING_TYPE;
+import static org.jetbrains.kotlin.resolve.jvm.AsmTypes.OBJECT_TYPE;
import static org.jetbrains.kotlin.resolve.jvm.annotations.JvmAnnotationUtilKt.hasJvmSyntheticAnnotation;
import static org.jetbrains.kotlin.types.TypeUtils.isNullableType;
import static org.jetbrains.org.objectweb.asm.Opcodes.*;
@@ -368,6 +369,18 @@ public class DescriptorAsmUtil {
return ACC_PRIVATE;
}
+ // Sealed class constructors should be ACC_PRIVATE.
+ // In 1.4 and before, sealed class constructors had PRIVATE visibility, and were represented as private methods in bytecode.
+ // In 1.5 (+AllowSealedInheritorsInDifferentFilesOfSamePackage), sealed class constructors became INTERNAL,
+ // but still should be represented as private methods in bytecode in order to prevent inheriting from sealed classes on JVM.
+ if (memberDescriptor instanceof ConstructorDescriptor &&
+ !(memberDescriptor instanceof AccessorForConstructorDescriptor) &&
+ isSealedClass(((ConstructorDescriptor) memberDescriptor).getConstructedClass()) &&
+ memberDescriptor.getVisibility() != DescriptorVisibilities.PUBLIC
+ ) {
+ return ACC_PRIVATE;
+ }
+
if (isInlineOnlyPrivateInBytecode(memberDescriptor)) {
return ACC_PRIVATE;
}
@@ -893,4 +906,19 @@ public class DescriptorAsmUtil {
//Trait always should have this descriptor
return kind != OwnerKind.DEFAULT_IMPLS && isStaticMethod(kind, descriptor) ? 0 : 1;
}
+
+ public static boolean isHiddenConstructor(FunctionDescriptor descriptor) {
+ if (!(descriptor instanceof ClassConstructorDescriptor)) return false;
+
+ ClassConstructorDescriptor classConstructorDescriptor = (ClassConstructorDescriptor) descriptor;
+ if (InlineClassManglingRulesKt.shouldHideConstructorDueToInlineClassTypeValueParameters(descriptor)) {
+ return true;
+ }
+ if (isSealedClass(classConstructorDescriptor.getConstructedClass()) &&
+ classConstructorDescriptor.getVisibility() != DescriptorVisibilities.PUBLIC
+ ) {
+ return true;
+ }
+ return false;
+ }
}
diff --git a/compiler/backend/src/org/jetbrains/kotlin/codegen/ExpressionCodegen.java b/compiler/backend/src/org/jetbrains/kotlin/codegen/ExpressionCodegen.java
index 7abf69564b4..974f617c47d 100644
--- a/compiler/backend/src/org/jetbrains/kotlin/codegen/ExpressionCodegen.java
+++ b/compiler/backend/src/org/jetbrains/kotlin/codegen/ExpressionCodegen.java
@@ -2523,21 +2523,39 @@ public class ExpressionCodegen extends KtVisitor impleme
// $default method is not private, so you need no accessor to call it
return descriptor;
}
- else if (InlineClassManglingRulesKt.shouldHideConstructorDueToInlineClassTypeValueParameters(descriptor.getOriginal())) {
- // Constructors with inline class type value parameters should always be called using an accessor.
- // NB this will require accessors even if the constructor itself is in a different module.
- return new AccessorForConstructorDescriptor(
- (ClassConstructorDescriptor) descriptor.getOriginal(),
- descriptor.getContainingDeclaration(),
- getSuperCallTarget(resolvedCall.getCall()),
- AccessorKind.NORMAL
- );
+ else if (shouldForceAccessorForConstructor(descriptor.getOriginal())) {
+ return createAccessorForHiddenConstructor(resolvedCall, descriptor);
}
else {
return context.accessibleDescriptor(descriptor, getSuperCallTarget(resolvedCall.getCall()));
}
}
+ private boolean shouldForceAccessorForConstructor(FunctionDescriptor descriptor) {
+ // Force using accessors on hidden constructors only
+ if (!isHiddenConstructor(descriptor)) {
+ return false;
+ }
+ // Don't use accessor when calling hidden constructor from the same class.
+ if (descriptor.getContainingDeclaration() == context.getContextDescriptor().getContainingDeclaration()) {
+ return false;
+ }
+ return true;
+ }
+
+ @NotNull
+ private AccessorForConstructorDescriptor createAccessorForHiddenConstructor(
+ @NotNull ResolvedCall> resolvedCall,
+ FunctionDescriptor descriptor
+ ) {
+ return new AccessorForConstructorDescriptor(
+ (ClassConstructorDescriptor) descriptor.getOriginal(),
+ descriptor.getContainingDeclaration(),
+ getSuperCallTarget(resolvedCall.getCall()),
+ AccessorKind.NORMAL
+ );
+ }
+
@NotNull
public StackValue invokeFunction(@NotNull ResolvedCall> resolvedCall, @NotNull StackValue receiver) {
return invokeFunction(resolvedCall.getCall(), resolvedCall, receiver);
diff --git a/compiler/backend/src/org/jetbrains/kotlin/codegen/state/GenerationState.kt b/compiler/backend/src/org/jetbrains/kotlin/codegen/state/GenerationState.kt
index ddc5fc3e414..ae7ffae8b83 100644
--- a/compiler/backend/src/org/jetbrains/kotlin/codegen/state/GenerationState.kt
+++ b/compiler/backend/src/org/jetbrains/kotlin/codegen/state/GenerationState.kt
@@ -207,6 +207,14 @@ class GenerationState private constructor(
configuration.get(JVMConfigurationKeys.STRING_CONCAT) ?: JvmStringConcat.INLINE
else JvmStringConcat.INLINE
+ val samConversionsScheme = run {
+ val fromConfig = configuration.get(JVMConfigurationKeys.SAM_CONVERSIONS) ?: JvmSamConversions.DEFAULT
+ if (target >= fromConfig.minJvmTarget)
+ fromConfig
+ else
+ JvmSamConversions.DEFAULT
+ }
+
val moduleName: String = moduleName ?: JvmCodegenUtil.getModuleName(module)
val classBuilderMode: ClassBuilderMode = builderFactory.classBuilderMode
val bindingTrace: BindingTrace = DelegatingBindingTrace(
diff --git a/compiler/backend/src/org/jetbrains/kotlin/codegen/state/KotlinTypeMapper.kt b/compiler/backend/src/org/jetbrains/kotlin/codegen/state/KotlinTypeMapper.kt
index 6fa8f12fb98..7c2ab8f0614 100644
--- a/compiler/backend/src/org/jetbrains/kotlin/codegen/state/KotlinTypeMapper.kt
+++ b/compiler/backend/src/org/jetbrains/kotlin/codegen/state/KotlinTypeMapper.kt
@@ -375,13 +375,27 @@ class KotlinTypeMapper @JvmOverloads constructor(
kind: OwnerKind? = null,
resolvedCall: ResolvedCall<*>? = null
): CallableMethod {
+ fun mapDefaultCallback(descriptor: FunctionDescriptor, kind: OwnerKind): () -> Method {
+ if (useOldManglingRulesForFunctionAcceptingInlineClass && !useOldInlineClassesManglingScheme) {
+ return {
+ val prevManglingState = useOldManglingRulesForFunctionAcceptingInlineClass
+ useOldManglingRulesForFunctionAcceptingInlineClass = true
+ mapDefaultMethod(descriptor, kind).also {
+ useOldManglingRulesForFunctionAcceptingInlineClass = prevManglingState
+ }
+ }
+ } else {
+ return { mapDefaultMethod(descriptor, kind) }
+ }
+ }
+
// we generate constructors of inline classes as usual functions
if (descriptor is ConstructorDescriptor && kind != OwnerKind.ERASED_INLINE_CLASS) {
val method = mapSignatureSkipGeneric(descriptor.original)
val owner = mapOwner(descriptor)
val originalDescriptor = descriptor.original
return CallableMethod(
- owner, owner, { mapDefaultMethod(originalDescriptor, OwnerKind.IMPLEMENTATION) }, method, INVOKESPECIAL,
+ owner, owner, mapDefaultCallback(originalDescriptor, OwnerKind.IMPLEMENTATION), method, INVOKESPECIAL,
null, null, null, null, null, originalDescriptor.returnType, isInterfaceMethod = false, isDefaultMethodInInterface = false,
boxInlineClassBeforeInvoke = false
)
@@ -557,7 +571,7 @@ class KotlinTypeMapper @JvmOverloads constructor(
return CallableMethod(
owner, ownerForDefaultImpl,
- { mapDefaultMethod(baseMethodDescriptor, getKindForDefaultImplCall(baseMethodDescriptor)) },
+ mapDefaultCallback(baseMethodDescriptor, getKindForDefaultImplCall(baseMethodDescriptor)),
signature, invokeOpcode, thisClass, dispatchReceiverKotlinType, receiverParameterType, extensionReceiverKotlinType,
calleeType, returnKotlinType,
if (jvmTarget >= JvmTarget.JVM_1_8) isInterfaceMember else invokeOpcode == INVOKEINTERFACE,
diff --git a/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/K2JSCompilerArguments.kt b/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/K2JSCompilerArguments.kt
index 1ac840bd657..2841ed056df 100644
--- a/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/K2JSCompilerArguments.kt
+++ b/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/K2JSCompilerArguments.kt
@@ -33,6 +33,13 @@ class K2JSCompilerArguments : CommonCompilerArguments() {
)
var libraries: String? by NullableStringFreezableVar(null)
+ @Argument(
+ value = "-Xrepositories",
+ valueDescription = "",
+ description = "Paths to additional places where libraries could be found"
+ )
+ var repositries: String? by NullableStringFreezableVar(null)
+
@GradleOption(DefaultValues.BooleanFalseDefault::class)
@Argument(value = "-source-map", description = "Generate source map")
var sourceMap: Boolean by FreezableVar(false)
diff --git a/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/K2JVMCompilerArguments.kt b/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/K2JVMCompilerArguments.kt
index b31275c493d..cd7237ce2ad 100644
--- a/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/K2JVMCompilerArguments.kt
+++ b/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/K2JVMCompilerArguments.kt
@@ -362,6 +362,15 @@ class K2JVMCompilerArguments : CommonCompilerArguments() {
)
var stringConcat: String? by NullableStringFreezableVar(JvmStringConcat.INLINE.description)
+ @Argument(
+ value = "-Xsam-conversions",
+ valueDescription = "{class|indy}",
+ description = """Select code generation scheme for SAM conversions.
+-Xsam-conversions=indy Generate SAM conversions using `invokedynamic` with `LambdaMetafactory.metafactory`. Requires `-jvm-target 8` or greater.
+-Xsam-conversions=class Generate SAM conversions as explicit classes"""
+ )
+ var samConversions: String? by NullableStringFreezableVar(JvmSamConversions.CLASS.description)
+
@Argument(
value = "-Xklib",
valueDescription = "",
diff --git a/compiler/cli/cli-js-klib/src/GenerateJsIrKlib.kt b/compiler/cli/cli-js-klib/src/GenerateJsIrKlib.kt
index b174de5c487..44586cd43cc 100644
--- a/compiler/cli/cli-js-klib/src/GenerateJsIrKlib.kt
+++ b/compiler/cli/cli-js-klib/src/GenerateJsIrKlib.kt
@@ -134,7 +134,7 @@ fun main(args: Array) {
}
val resolvedLibraries = jsResolveLibraries(
- dependencies, messageCollectorLogger(MessageCollector.NONE)
+ dependencies, emptyList(), messageCollectorLogger(MessageCollector.NONE)
)
buildKLib(moduleName, listOfKtFilesFrom(inputFiles), outputPath, resolvedLibraries, listOfKtFilesFrom(commonSources))
diff --git a/compiler/cli/cli-js/src/org/jetbrains/kotlin/cli/js/K2JsIrCompiler.kt b/compiler/cli/cli-js/src/org/jetbrains/kotlin/cli/js/K2JsIrCompiler.kt
index efa64a745a8..bcd18138905 100644
--- a/compiler/cli/cli-js/src/org/jetbrains/kotlin/cli/js/K2JsIrCompiler.kt
+++ b/compiler/cli/cli-js/src/org/jetbrains/kotlin/cli/js/K2JsIrCompiler.kt
@@ -39,6 +39,7 @@ import org.jetbrains.kotlin.incremental.js.IncrementalResultsConsumer
import org.jetbrains.kotlin.ir.backend.js.*
import org.jetbrains.kotlin.ir.declarations.persistent.PersistentIrFactory
import org.jetbrains.kotlin.js.config.*
+import org.jetbrains.kotlin.library.KLIB_FILE_EXTENSION
import org.jetbrains.kotlin.metadata.deserialization.BinaryVersion
import org.jetbrains.kotlin.name.FqName
import org.jetbrains.kotlin.psi.KtFile
@@ -113,9 +114,11 @@ class K2JsIrCompiler : CLICompiler() {
val libraries: List = configureLibraries(arguments.libraries) + listOfNotNull(arguments.includes)
val friendLibraries: List = configureLibraries(arguments.friendModules)
+ val repositories: List = configureLibraries(arguments.repositries)
configuration.put(JSConfigurationKeys.LIBRARIES, libraries)
configuration.put(JSConfigurationKeys.TRANSITIVE_LIBRARIES, libraries)
+ configuration.put(JSConfigurationKeys.REPOSITORIES, repositories)
val commonSourcesArray = arguments.commonSources
val commonSources = commonSourcesArray?.toSet() ?: emptySet()
@@ -175,6 +178,7 @@ class K2JsIrCompiler : CLICompiler() {
val resolvedLibraries = jsResolveLibraries(
libraries,
+ configuration[JSConfigurationKeys.REPOSITORIES] ?: emptyList(),
messageCollectorLogger(configuration[CLIConfigurationKeys.MESSAGE_COLLECTOR_KEY] ?: error("Could not find message collector"))
)
@@ -184,11 +188,9 @@ class K2JsIrCompiler : CLICompiler() {
}
if (arguments.irProduceKlibDir || arguments.irProduceKlibFile) {
- val outputKlibPath =
- if (arguments.irProduceKlibDir)
- File(outputFilePath).parent
- else
- outputFilePath
+ if (arguments.irProduceKlibFile) {
+ require(outputFile.extension == KLIB_FILE_EXTENSION) { "Please set up .klib file as output" }
+ }
try {
generateKLib(
@@ -199,7 +201,7 @@ class K2JsIrCompiler : CLICompiler() {
allDependencies = resolvedLibraries,
friendDependencies = friendDependencies,
irFactory = PersistentIrFactory,
- outputKlibPath = outputKlibPath,
+ outputKlibPath = outputFile.path,
nopack = arguments.irProduceKlibDir
)
} catch (e: JsIrCompilationError) {
diff --git a/compiler/cli/src/org/jetbrains/kotlin/cli/jvm/jvmArguments.kt b/compiler/cli/src/org/jetbrains/kotlin/cli/jvm/jvmArguments.kt
index c904fce6bf4..3cbe6cc8780 100644
--- a/compiler/cli/src/org/jetbrains/kotlin/cli/jvm/jvmArguments.kt
+++ b/compiler/cli/src/org/jetbrains/kotlin/cli/jvm/jvmArguments.kt
@@ -59,8 +59,28 @@ fun CompilerConfiguration.setupJvmSpecificArguments(arguments: K2JVMCompilerArgu
}
} else {
messageCollector.report(
- ERROR, "Unknown -Xstring-concat mode: ${arguments.jvmTarget}\n" +
- "Supported versions: ${JvmStringConcat.values().joinToString { it.description }}"
+ ERROR, "Unknown `-Xstring-concat` mode: ${arguments.stringConcat}\n" +
+ "Supported modes: ${JvmStringConcat.values().joinToString { it.description }}"
+ )
+ }
+ }
+
+ if (arguments.samConversions != null) {
+ val samConversions = JvmSamConversions.fromString(arguments.samConversions)
+ if (samConversions != null) {
+ put(JVMConfigurationKeys.SAM_CONVERSIONS, samConversions)
+ if (jvmTarget < samConversions.minJvmTarget) {
+ messageCollector.report(
+ WARNING,
+ "`-Xsam-conversions=${arguments.samConversions}` requires JVM target at least " +
+ "${samConversions.minJvmTarget.description} and is ignored."
+ )
+ }
+ } else {
+ messageCollector.report(
+ ERROR,
+ "Unknown `-Xsam-conversions` argument: ${arguments.samConversions}\n" +
+ "Supported arguments: ${JvmSamConversions.values().joinToString { it.description }}"
)
}
}
diff --git a/compiler/compiler.version/src/org/jetbrains/kotlin/config/KotlinCompilerVersion.java b/compiler/compiler.version/src/org/jetbrains/kotlin/config/KotlinCompilerVersion.java
index d4277393ea9..17e53820f0d 100644
--- a/compiler/compiler.version/src/org/jetbrains/kotlin/config/KotlinCompilerVersion.java
+++ b/compiler/compiler.version/src/org/jetbrains/kotlin/config/KotlinCompilerVersion.java
@@ -19,7 +19,7 @@ public class KotlinCompilerVersion {
// Binaries produced by this compiler with that language version (or any future language version) are going to be marked
// as "pre-release" and will not be loaded by release versions of the compiler.
// Change this value before and after every major release
- private static final boolean IS_PRE_RELEASE = false;
+ private static final boolean IS_PRE_RELEASE = true;
public static final String TEST_IS_PRE_RELEASE_SYSTEM_PROPERTY = "kotlin.test.is.pre.release";
diff --git a/compiler/config.jvm/src/org/jetbrains/kotlin/config/JVMConfigurationKeys.java b/compiler/config.jvm/src/org/jetbrains/kotlin/config/JVMConfigurationKeys.java
index b8e6870b0a6..b1c11d8f696 100644
--- a/compiler/config.jvm/src/org/jetbrains/kotlin/config/JVMConfigurationKeys.java
+++ b/compiler/config.jvm/src/org/jetbrains/kotlin/config/JVMConfigurationKeys.java
@@ -114,6 +114,9 @@ public class JVMConfigurationKeys {
public static final CompilerConfigurationKey STRING_CONCAT =
CompilerConfigurationKey.create("Specifies string concatenation scheme");
+ public static final CompilerConfigurationKey SAM_CONVERSIONS =
+ CompilerConfigurationKey.create("SAM conversions code generation scheme");
+
public static final CompilerConfigurationKey> KLIB_PATHS =
CompilerConfigurationKey.create("Paths to .klib libraries");
diff --git a/compiler/config.jvm/src/org/jetbrains/kotlin/config/JvmSamConversions.kt b/compiler/config.jvm/src/org/jetbrains/kotlin/config/JvmSamConversions.kt
new file mode 100644
index 00000000000..3ed25ea0b7f
--- /dev/null
+++ b/compiler/config.jvm/src/org/jetbrains/kotlin/config/JvmSamConversions.kt
@@ -0,0 +1,23 @@
+/*
+ * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
+ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
+ */
+
+package org.jetbrains.kotlin.config
+
+enum class JvmSamConversions(
+ val description: String,
+ val minJvmTarget: JvmTarget
+) {
+ CLASS("class", JvmTarget.JVM_1_6),
+ INDY("indy", JvmTarget.JVM_1_8),
+ ;
+
+ companion object {
+ val DEFAULT = CLASS
+
+ @JvmStatic
+ fun fromString(string: String?) =
+ values().find { it.description == string }
+ }
+}
\ No newline at end of file
diff --git a/compiler/fir/analysis-tests/legacy-fir-tests/tests-gen/org/jetbrains/kotlin/fir/LazyBodyIsNotTouchedTilContractsPhaseTestGenerated.java b/compiler/fir/analysis-tests/legacy-fir-tests/tests-gen/org/jetbrains/kotlin/fir/LazyBodyIsNotTouchedTilContractsPhaseTestGenerated.java
index 633632c5704..18e275d1142 100644
--- a/compiler/fir/analysis-tests/legacy-fir-tests/tests-gen/org/jetbrains/kotlin/fir/LazyBodyIsNotTouchedTilContractsPhaseTestGenerated.java
+++ b/compiler/fir/analysis-tests/legacy-fir-tests/tests-gen/org/jetbrains/kotlin/fir/LazyBodyIsNotTouchedTilContractsPhaseTestGenerated.java
@@ -1231,6 +1231,24 @@ public class LazyBodyIsNotTouchedTilContractsPhaseTestGenerated extends Abstract
public void testValOnAnnotationParameter() throws Exception {
runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/valOnAnnotationParameter.kt");
}
+
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/diagnostics/functionAsExpression")
+ @TestDataPath("$PROJECT_ROOT")
+ @RunWith(JUnit3RunnerWithInners.class)
+ public static class FunctionAsExpression extends AbstractLazyBodyIsNotTouchedTilContractsPhaseTest {
+ private void runTest(String testDataFilePath) throws Exception {
+ KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
+ }
+
+ public void testAllFilesPresentInFunctionAsExpression() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/diagnostics/functionAsExpression"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @TestMetadata("Parameters.kt")
+ public void testParameters() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/functionAsExpression/Parameters.kt");
+ }
+ }
}
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/expresssions")
diff --git a/compiler/fir/analysis-tests/testData/loadCompiledKotlin/annotations/classMembers/HiddenConstructorWithInlineClassParameters.txt b/compiler/fir/analysis-tests/testData/loadCompiledKotlin/annotations/classMembers/HiddenConstructorWithInlineClassParameters.txt
index 0abf465764c..08dd7c55828 100644
--- a/compiler/fir/analysis-tests/testData/loadCompiledKotlin/annotations/classMembers/HiddenConstructorWithInlineClassParameters.txt
+++ b/compiler/fir/analysis-tests/testData/loadCompiledKotlin/annotations/classMembers/HiddenConstructorWithInlineClassParameters.txt
@@ -12,7 +12,7 @@ public sealed class Sealed : R|kotlin/Any| {
public final val z: R|test/Z|
public get(): R|test/Z|
- @R|test/Ann|() private constructor(@R|test/Ann|() z: R|test/Z|): R|test/Sealed|
+ @R|test/Ann|() internal constructor(@R|test/Ann|() z: R|test/Z|): R|test/Sealed|
}
diff --git a/compiler/fir/analysis-tests/testData/loadCompiledKotlin/class/SealedClass.txt b/compiler/fir/analysis-tests/testData/loadCompiledKotlin/class/SealedClass.txt
index 53ae14787a1..7eb9f3de23d 100644
--- a/compiler/fir/analysis-tests/testData/loadCompiledKotlin/class/SealedClass.txt
+++ b/compiler/fir/analysis-tests/testData/loadCompiledKotlin/class/SealedClass.txt
@@ -14,7 +14,7 @@ public sealed class SealedClass : R|kotlin/Any| {
}
- private constructor(): R|test/SealedClass|
+ internal constructor(): R|test/SealedClass|
}
diff --git a/compiler/fir/analysis-tests/testData/resolve/arguments/definetelyNotNullForTypeParameter.fir.txt b/compiler/fir/analysis-tests/testData/resolve/arguments/definetelyNotNullForTypeParameter.fir.txt
index 465f220857f..4dfaae98256 100644
--- a/compiler/fir/analysis-tests/testData/resolve/arguments/definetelyNotNullForTypeParameter.fir.txt
+++ b/compiler/fir/analysis-tests/testData/resolve/arguments/definetelyNotNullForTypeParameter.fir.txt
@@ -7,5 +7,5 @@ FILE: definetelyNotNullForTypeParameter.kt
public final fun foo(computable: R|Out|): R|kotlin/Unit| {
}
public final fun bar(computable: R|Out|): R|kotlin/Unit| {
- R|/foo|(R|/id|(R|/computable|))
+ R|/foo|(R|/id|(R|/computable|))
}
diff --git a/compiler/fir/analysis-tests/testData/resolve/arguments/operatorsOverLiterals.fir.txt b/compiler/fir/analysis-tests/testData/resolve/arguments/operatorsOverLiterals.fir.txt
index 6879a2928fe..3636c3d0df2 100644
--- a/compiler/fir/analysis-tests/testData/resolve/arguments/operatorsOverLiterals.fir.txt
+++ b/compiler/fir/analysis-tests/testData/resolve/arguments/operatorsOverLiterals.fir.txt
@@ -19,7 +19,8 @@ FILE: operatorsOverLiterals.kt
}
public final fun R|kotlin/Int|.bar(): R|kotlin/Int| {
}
- public final fun R|kotlin/Int|.baz(): R|kotlin/Int|
+ public final fun R|kotlin/Int|.baz(): R|kotlin/Int| {
+ }
public final fun R|kotlin/Byte|.baz(): R|kotlin/Byte| {
}
public final fun test_3(): R|kotlin/Unit| {
diff --git a/compiler/fir/analysis-tests/testData/resolve/arguments/operatorsOverLiterals.kt b/compiler/fir/analysis-tests/testData/resolve/arguments/operatorsOverLiterals.kt
index 4e6622f6fcc..445ecf3ff4d 100644
--- a/compiler/fir/analysis-tests/testData/resolve/arguments/operatorsOverLiterals.kt
+++ b/compiler/fir/analysis-tests/testData/resolve/arguments/operatorsOverLiterals.kt
@@ -20,7 +20,7 @@ fun test_2(n: Int) {
fun Int.bar(): Int {}
-fun Int.baz(): Int
+fun Int.baz(): Int {}
fun Byte.baz(): Byte {}
fun test_3() {
diff --git a/compiler/fir/analysis-tests/testData/resolve/cfg/jumps.kt b/compiler/fir/analysis-tests/testData/resolve/cfg/jumps.kt
index a5dc4b78cb6..8f052f6530b 100644
--- a/compiler/fir/analysis-tests/testData/resolve/cfg/jumps.kt
+++ b/compiler/fir/analysis-tests/testData/resolve/cfg/jumps.kt
@@ -15,7 +15,7 @@ fun test_2(x: Int?) {
} else {
x
}
- y.inc()
+ y.inc()
}
fun test_3(x: Int?) {
diff --git a/compiler/fir/analysis-tests/testData/resolve/diagnostics/conflictingOverloads.fir.txt b/compiler/fir/analysis-tests/testData/resolve/diagnostics/conflictingOverloads.fir.txt
index 3e429144200..b732440a451 100644
--- a/compiler/fir/analysis-tests/testData/resolve/diagnostics/conflictingOverloads.fir.txt
+++ b/compiler/fir/analysis-tests/testData/resolve/diagnostics/conflictingOverloads.fir.txt
@@ -111,7 +111,8 @@ FILE: conflictingOverloads.kt
}
}
- public final fun mest(): R|kotlin/Unit|
+ public final fun mest(): R|kotlin/Unit| {
+ }
public final class mest : R|kotlin/Any| {
public constructor(): R|mest| {
super()
diff --git a/compiler/fir/analysis-tests/testData/resolve/diagnostics/conflictingOverloads.kt b/compiler/fir/analysis-tests/testData/resolve/diagnostics/conflictingOverloads.kt
index d123aa55763..737159ad2f5 100644
--- a/compiler/fir/analysis-tests/testData/resolve/diagnostics/conflictingOverloads.kt
+++ b/compiler/fir/analysis-tests/testData/resolve/diagnostics/conflictingOverloads.kt
@@ -59,7 +59,7 @@ class L {
fun B.foo() {}
}
-fun mest()
+fun mest() {}
class mest
diff --git a/compiler/fir/analysis-tests/testData/resolve/diagnostics/functionAsExpression/Parameters.fir.txt b/compiler/fir/analysis-tests/testData/resolve/diagnostics/functionAsExpression/Parameters.fir.txt
new file mode 100644
index 00000000000..ca542e88a54
--- /dev/null
+++ b/compiler/fir/analysis-tests/testData/resolve/diagnostics/functionAsExpression/Parameters.fir.txt
@@ -0,0 +1,45 @@
+FILE: Parameters.kt
+ public final val bar: R|(kotlin/Int) -> kotlin/Unit| = fun (p: R|kotlin/Int| = Int(3)): R|kotlin/Unit| {
+ }
+
+ public get(): R|(kotlin/Int) -> kotlin/Unit|
+ public final val bas: R|(kotlin/Int) -> kotlin/Unit| = fun (vararg p: R|kotlin/Int|): R|kotlin/Unit| {
+ }
+
+ public get(): R|(kotlin/Int) -> kotlin/Unit|
+ public final fun gar(): R|(kotlin/Int) -> kotlin/Unit| {
+ ^gar fun (p: R|kotlin/Int| = Int(3)): R|kotlin/Unit| {
+ }
+
+ }
+ public final fun gas(): R|(kotlin/Int) -> kotlin/Unit| {
+ ^gas fun (vararg p: R|kotlin/Int|): R|kotlin/Unit| {
+ }
+
+ }
+ public final fun outer(b: R|kotlin/Any?|): R|kotlin/Unit| {
+ lval bar: R|(kotlin/Int) -> kotlin/Unit| = fun (p: R|kotlin/Int| = Int(3)): R|kotlin/Unit| {
+ }
+
+ lval bas: R|(kotlin/Int) -> kotlin/Unit| = fun (vararg p: R|kotlin/Int|): R|kotlin/Unit| {
+ }
+
+ local final fun gar(): R|(kotlin/Int) -> kotlin/Unit| {
+ ^gar fun (p: R|kotlin/Int| = Int(3)): R|kotlin/Unit| {
+ }
+
+ }
+
+ local final fun gas(): R|(kotlin/Int) -> kotlin/Unit| {
+ ^gas fun (vararg p: R|kotlin/Int|): R|kotlin/Unit| {
+ }
+
+ }
+
+ R|/outer|(fun (p: R|kotlin/Int| = Int(3)): R|kotlin/Unit| {
+ }
+ )
+ R|/outer|(fun (vararg p: R|kotlin/Int|): R|kotlin/Unit| {
+ }
+ )
+ }
diff --git a/compiler/fir/analysis-tests/testData/resolve/diagnostics/functionAsExpression/Parameters.kt b/compiler/fir/analysis-tests/testData/resolve/diagnostics/functionAsExpression/Parameters.kt
new file mode 100644
index 00000000000..710f7c2dd2f
--- /dev/null
+++ b/compiler/fir/analysis-tests/testData/resolve/diagnostics/functionAsExpression/Parameters.kt
@@ -0,0 +1,16 @@
+val bar = fun(p: Int = 3) {}
+val bas = fun(vararg p: Int) {}
+
+fun gar() = fun(p: Int = 3) {}
+fun gas() = fun(vararg p: Int) {}
+
+fun outer(b: Any?) {
+ val bar = fun(p: Int = 3) {}
+ val bas = fun(vararg p: Int) {}
+
+ fun gar() = fun(p: Int = 3) {}
+ fun gas() = fun(vararg p: Int) {}
+
+ outer(fun(p: Int = 3) {})
+ outer(fun(vararg p: Int) {})
+}
diff --git a/compiler/fir/analysis-tests/testData/resolve/expresssions/syntheticSmartCast.kt b/compiler/fir/analysis-tests/testData/resolve/expresssions/syntheticSmartCast.kt
index f91f7422ce1..680f4d71965 100644
--- a/compiler/fir/analysis-tests/testData/resolve/expresssions/syntheticSmartCast.kt
+++ b/compiler/fir/analysis-tests/testData/resolve/expresssions/syntheticSmartCast.kt
@@ -34,7 +34,7 @@ fun test3(x: AnotherClass?) {
fun test4(x: SomeClass?) {
val bar = x?.bar
if (bar != null) {
- x.bar.length
+ x.bar.length
}
}
diff --git a/compiler/fir/analysis-tests/testData/resolve/intersectionTypes.kt b/compiler/fir/analysis-tests/testData/resolve/intersectionTypes.kt
index 961cd6bacff..40e71a1d06a 100644
--- a/compiler/fir/analysis-tests/testData/resolve/intersectionTypes.kt
+++ b/compiler/fir/analysis-tests/testData/resolve/intersectionTypes.kt
@@ -5,7 +5,7 @@ interface B
class Clazz1 : A, B
class Clazz2 : A, B
-fun select(x: K, y: K): K
+fun select(x: K, y: K): K
fun test() = select(Clazz1(), Clazz2())
diff --git a/compiler/fir/analysis-tests/testData/resolve/multifile/simpleStarImport.kt b/compiler/fir/analysis-tests/testData/resolve/multifile/simpleStarImport.kt
index b442bd93bac..9531ede6c8d 100644
--- a/compiler/fir/analysis-tests/testData/resolve/multifile/simpleStarImport.kt
+++ b/compiler/fir/analysis-tests/testData/resolve/multifile/simpleStarImport.kt
@@ -14,7 +14,7 @@ package a.d
import b.d.*
-fun foo(arg: Other): Another
+fun foo(arg: Other): Another
fun bar() {
baz()
diff --git a/compiler/fir/analysis-tests/testData/resolve/smartcasts/bangbang.kt b/compiler/fir/analysis-tests/testData/resolve/smartcasts/bangbang.kt
index b861d37433d..327e8273b11 100644
--- a/compiler/fir/analysis-tests/testData/resolve/smartcasts/bangbang.kt
+++ b/compiler/fir/analysis-tests/testData/resolve/smartcasts/bangbang.kt
@@ -26,7 +26,7 @@ fun test_3(a: A?, b: Boolean) {
if (b && a!!.foo()) {
a.foo() // OK
}
- a.foo() // Bad
+ a.foo() // Bad
}
fun test_4(a: A?, b: Boolean) {
@@ -38,9 +38,9 @@ fun test_4(a: A?, b: Boolean) {
fun test_5(a: A?, b: Boolean) {
if (b || a!!.foo()) {
- a.foo()
+ a.foo()
}
- a.foo()
+ a.foo()
}
fun test_6(x: X) {
diff --git a/compiler/fir/analysis-tests/testData/resolve/smartcasts/booleans/equalsToBoolean.kt b/compiler/fir/analysis-tests/testData/resolve/smartcasts/booleans/equalsToBoolean.kt
index 97732d845cd..f954bff67f3 100644
--- a/compiler/fir/analysis-tests/testData/resolve/smartcasts/booleans/equalsToBoolean.kt
+++ b/compiler/fir/analysis-tests/testData/resolve/smartcasts/booleans/equalsToBoolean.kt
@@ -8,13 +8,13 @@ fun test_1(b: Boolean?) {
if ((b == true) == true) {
b.not() // OK
} else {
- b.not() // Bad
+ b.not() // Bad
}
}
fun test_2(b: Boolean?) {
if ((b == true) != true) {
- b.not() // Bad
+ b.not() // Bad
} else {
b.not() // OK
}
@@ -22,7 +22,7 @@ fun test_2(b: Boolean?) {
fun test_3(b: Boolean?) {
if ((b == true) == false) {
- b.not() // Bad
+ b.not() // Bad
} else {
b.not() // OK
}
@@ -32,13 +32,13 @@ fun test_4(b: Boolean?) {
if ((b == true) != false) {
b.not() // OK
} else {
- b.not() // Bad
+ b.not() // Bad
}
}
fun test_5(b: Boolean?) {
if ((b != true) == true) {
- b.not() // Bad
+ b.not() // Bad
} else {
b.not() // OK
}
@@ -48,7 +48,7 @@ fun test_6(b: Boolean?) {
if ((b != true) != true) {
b.not() // OK
} else {
- b.not() // Bad
+ b.not() // Bad
}
}
@@ -56,13 +56,13 @@ fun test_7(b: Boolean?) {
if ((b != true) == false) {
b.not() // OK
} else {
- b.not() // Bad
+ b.not() // Bad
}
}
fun test_8(b: Boolean?) {
if ((b != true) != false) {
- b.not() // Bad
+ b.not() // Bad
} else {
b.not() // OK
}
diff --git a/compiler/fir/analysis-tests/testData/resolve/smartcasts/booleans/jumpFromRhsOfOperator.kt b/compiler/fir/analysis-tests/testData/resolve/smartcasts/booleans/jumpFromRhsOfOperator.kt
index be91a791bed..076f593e151 100644
--- a/compiler/fir/analysis-tests/testData/resolve/smartcasts/booleans/jumpFromRhsOfOperator.kt
+++ b/compiler/fir/analysis-tests/testData/resolve/smartcasts/booleans/jumpFromRhsOfOperator.kt
@@ -34,24 +34,24 @@ fun test_4(a: A?) {
fun test_5(a: A?) {
a == null || throw Exception()
- a.foo()
+ a.foo()
}
fun teat_6(a: A?) {
a != null && throw Exception()
- a.foo()
+ a.foo()
}
fun test_7(a: A?) {
if (a == null || throw Exception()) {
- a.foo()
+ a.foo()
}
- a.foo()
+ a.foo()
}
fun test_8(a: A?) {
if (a != null && throw Exception()) {
- a.foo()
+ a.foo()
}
- a.foo()
+ a.foo()
}
diff --git a/compiler/fir/analysis-tests/testData/resolve/smartcasts/boundSmartcasts/boundSmartcastsInBranches.kt b/compiler/fir/analysis-tests/testData/resolve/smartcasts/boundSmartcasts/boundSmartcastsInBranches.kt
index 88992851c5c..2914d63d78d 100644
--- a/compiler/fir/analysis-tests/testData/resolve/smartcasts/boundSmartcasts/boundSmartcastsInBranches.kt
+++ b/compiler/fir/analysis-tests/testData/resolve/smartcasts/boundSmartcasts/boundSmartcastsInBranches.kt
@@ -104,18 +104,18 @@ fun test_7() {
if (x != null) {
x.length // OK
- y.length // Bad
+ y.length // Bad
z.length // OK
}
if (y != null) {
- x.length // Bad
+ x.length // Bad
y.length // OK
- z.length // Bad
+ z.length // Bad
}
if (z != null) {
x.length // OK
- y.length // Bad
+ y.length // Bad
z.length // OK
}
}
diff --git a/compiler/fir/analysis-tests/testData/resolve/smartcasts/equalsAndIdentity.kt b/compiler/fir/analysis-tests/testData/resolve/smartcasts/equalsAndIdentity.kt
index e54a97ef7fd..fcf5c715f73 100644
--- a/compiler/fir/analysis-tests/testData/resolve/smartcasts/equalsAndIdentity.kt
+++ b/compiler/fir/analysis-tests/testData/resolve/smartcasts/equalsAndIdentity.kt
@@ -16,12 +16,12 @@ fun test_1(x: A, y: A?) {
fun test_2(x: A?, y: A?) {
if (x == y) {
- x.foo()
- y.foo()
+ x.foo()
+ y.foo()
}
if (x === y) {
- x.foo()
- y.foo()
+ x.foo()
+ y.foo()
}
}
diff --git a/compiler/fir/analysis-tests/testData/resolve/smartcasts/nullability.kt b/compiler/fir/analysis-tests/testData/resolve/smartcasts/nullability.kt
index a0f9eb98439..3f5877d797c 100644
--- a/compiler/fir/analysis-tests/testData/resolve/smartcasts/nullability.kt
+++ b/compiler/fir/analysis-tests/testData/resolve/smartcasts/nullability.kt
@@ -39,18 +39,18 @@ fun test_1(x: A?) {
if (x != null) {
x.foo()
} else {
- x.foo()
+ x.foo()
}
- x.foo()
+ x.foo()
}
fun test_2(x: A?) {
if (x == null) {
- x.foo()
+ x.foo()
} else {
x.foo()
}
- x.foo()
+ x.foo()
}
fun test_3(x: A?) {
@@ -67,8 +67,8 @@ fun test_5(q: Q?) {
// `q.data` is a property that has an open getter, so we can NOT smartcast it to non-nullable MyData.
if (q?.data?.s?.inc() != null) {
q.data // good
- q.data.s // should be bad
- q.data.s.inc() // should be bad
+ q.data.s // should be bad
+ q.data.s.inc() // should be bad
}
}
@@ -76,15 +76,15 @@ fun test_6(q: Q?) {
// `q.data` is a property that has an open getter, so we can NOT smartcast it to non-nullable MyData.
q?.data?.s?.inc() ?: return
q.data // good
- q.data.s // should be bad
- q.data.s.inc() // should be bad
+ q.data.s // should be bad
+ q.data.s.inc() // should be bad
}
fun test_7(q: Q?) {
if (q?.fdata()?.fs()?.inc() != null) {
q.fdata() // good
- q.fdata().fs() // bad
- q.fdata().fs().inc() // bad
+ q.fdata().fs() // bad
+ q.fdata().fs().inc() // bad
}
}
@@ -98,44 +98,44 @@ fun test_9(a: Int, b: Int?) {
if (a == b) {
b.inc()
}
- b.inc()
+ b.inc()
if (a === b) {
b.inc()
}
- b.inc()
+ b.inc()
if (b == a) {
b.inc()
}
- b.inc()
+ b.inc()
if (b === a) {
b.inc()
}
- b.inc()
+ b.inc()
}
fun test_10(a: Int?, b: Int?) {
if (a == b) {
- b.inc()
+ b.inc()
}
- b.inc()
+ b.inc()
if (a === b) {
- b.inc()
+ b.inc()
}
- b.inc()
+ b.inc()
if (b == a) {
- b.inc()
+ b.inc()
}
- b.inc()
+ b.inc()
if (b === a) {
- b.inc()
+ b.inc()
}
- b.inc()
+ b.inc()
}
fun test_11(q: QImpl?, q2: QImpl) {
@@ -148,8 +148,8 @@ fun test_11(q: QImpl?, q2: QImpl) {
// Smartcasting of `q.data` should have no effect on `q2.data`.
// Issue: Smartcasting of QImpl.data affects all instances
q2.data
- q2.data.s // should be bad
- q2.data.s.inc() // should be bad
+ q2.data.s // should be bad
+ q2.data.s.inc() // should be bad
if (q2.data != null) {
q2.data.s
@@ -162,8 +162,8 @@ fun test_12(q: QImplWithCustomGetter?) {
// `q.data` is a property that has an open getter, so we can NOT smartcast it to non-nullable MyData.
if (q?.data?.s?.inc() != null) {
q.data // good
- q.data.s // should be bad
- q.data.s.inc() // should be bad
+ q.data.s // should be bad
+ q.data.s.inc() // should be bad
}
}
@@ -171,7 +171,7 @@ fun test_13(q: QImplMutable?) {
// `q.data` is a property that is mutable, so we can NOT smartcast it to non-nullable MyData.
if (q?.data?.s?.inc() != null) {
q.data // good
- q.data.s // should be bad
- q.data.s.inc() // should be bad
+ q.data.s // should be bad
+ q.data.s.inc() // should be bad
}
}
diff --git a/compiler/fir/analysis-tests/testData/resolve/smartcasts/orInWhenBranch.kt b/compiler/fir/analysis-tests/testData/resolve/smartcasts/orInWhenBranch.kt
index 9b2ad3bab6f..50a6d0cc510 100644
--- a/compiler/fir/analysis-tests/testData/resolve/smartcasts/orInWhenBranch.kt
+++ b/compiler/fir/analysis-tests/testData/resolve/smartcasts/orInWhenBranch.kt
@@ -22,6 +22,6 @@ fun test_3(a: Any?, b: Boolean) {
fun test_4(a: Any?, b: Boolean) {
if (a is String || b) {
- a.foo() // Should be Bad
+ a.foo() // Should be Bad
}
}
diff --git a/compiler/fir/analysis-tests/testData/resolve/smartcasts/safeCalls/safeCallAndEqualityToBool.kt b/compiler/fir/analysis-tests/testData/resolve/smartcasts/safeCalls/safeCallAndEqualityToBool.kt
index 293db6f24d0..4ed7c2294c1 100644
--- a/compiler/fir/analysis-tests/testData/resolve/smartcasts/safeCalls/safeCallAndEqualityToBool.kt
+++ b/compiler/fir/analysis-tests/testData/resolve/smartcasts/safeCalls/safeCallAndEqualityToBool.kt
@@ -5,7 +5,7 @@ fun test_1(s: String?) {
if (s?.check() == true) {
s.length // Should be OK
} else {
- s.length // Should be bad
+ s.length // Should be bad
}
}
@@ -13,13 +13,13 @@ fun test_2(s: String?) {
if (s?.check() == false) {
s.length // Should be OK
} else {
- s.length // Should be bad
+ s.length // Should be bad
}
}
fun test_3(s: String?) {
if (s?.check() != true) {
- s.length // Should be bad
+ s.length // Should be bad
} else {
s.length // Should be OK
}
@@ -27,7 +27,7 @@ fun test_3(s: String?) {
fun test_4(s: String?) {
if (s?.check() != false) {
- s.length // Should be bad
+ s.length // Should be bad
} else {
s.length // Should be OK
}
diff --git a/compiler/fir/analysis-tests/testData/resolve/smartcasts/safeCalls/safeCalls.kt b/compiler/fir/analysis-tests/testData/resolve/smartcasts/safeCalls/safeCalls.kt
index 455c59ab709..83a74410769 100644
--- a/compiler/fir/analysis-tests/testData/resolve/smartcasts/safeCalls/safeCalls.kt
+++ b/compiler/fir/analysis-tests/testData/resolve/smartcasts/safeCalls/safeCalls.kt
@@ -5,7 +5,7 @@ fun String.let(block: () -> Unit) {}
fun test(x: String?) {
x?.foo(x.length == 1)
- x.length
+ x.length
}
interface A {
@@ -27,12 +27,12 @@ fun test_3(x: Any) {
fun test_4(x: A?) {
x?.id()?.bool()
- x.id()
+ x.id()
}
fun Any?.boo(b: Boolean) {}
fun test_5(x: A?) {
x?.let { return }?.boo(x.bool())
- x.id()
+ x.id()
}
diff --git a/compiler/fir/analysis-tests/testData/resolve/smartcasts/variables/delayedAssignment.kt b/compiler/fir/analysis-tests/testData/resolve/smartcasts/variables/delayedAssignment.kt
index c911291afd8..05c62c6d6d5 100644
--- a/compiler/fir/analysis-tests/testData/resolve/smartcasts/variables/delayedAssignment.kt
+++ b/compiler/fir/analysis-tests/testData/resolve/smartcasts/variables/delayedAssignment.kt
@@ -11,5 +11,5 @@ fun test(b: Boolean) {
} else {
a = null
}
- a.foo()
+ a.foo()
}
diff --git a/compiler/fir/analysis-tests/testData/resolve/smartcasts/variables/smartcastAfterReassignment.kt b/compiler/fir/analysis-tests/testData/resolve/smartcasts/variables/smartcastAfterReassignment.kt
index 056a5620c9c..bee9f7f464e 100644
--- a/compiler/fir/analysis-tests/testData/resolve/smartcasts/variables/smartcastAfterReassignment.kt
+++ b/compiler/fir/analysis-tests/testData/resolve/smartcasts/variables/smartcastAfterReassignment.kt
@@ -18,5 +18,5 @@ fun test_3() {
x = ""
x.length
x = null
- x.length
+ x.length
}
diff --git a/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/beyoundCalls.kt b/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/beyoundCalls.kt
index 93336ccf18e..7a07fc0a08a 100644
--- a/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/beyoundCalls.kt
+++ b/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/beyoundCalls.kt
@@ -1,5 +1,5 @@
-fun bar(x: String): Int = 1
-fun bar(x: String): Double = 1
+fun bar(x: String): Int = 1
+fun bar(x: String): Double = 1
fun baz(x: String): Int = 1
fun foobaz(x: T): R = TODO()
diff --git a/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/companions.kt b/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/companions.kt
index 17ef4ed5510..bb474ca35cb 100644
--- a/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/companions.kt
+++ b/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/companions.kt
@@ -31,16 +31,16 @@ fun main() {
foo1(KotlinClass::baz)
foo2(KotlinClass::baz)
// Ambiguity (companion/class)
- foo3(KotlinClass::baz)
+ foo3(KotlinClass::baz)
// Type mismatch
- foo1(KotlinClass::bar)
+ foo1(KotlinClass::bar)
foo2(KotlinClass::bar)
foo3(KotlinClass::bar)
foo1(KotlinClass2::bar)
// Type mismatch
- foo2(KotlinClass2::bar)
+ foo2(KotlinClass2::bar)
foo3(KotlinClass2::bar)
}
diff --git a/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/resolveCallableReferencesAfterAllSimpleArguments.kt b/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/resolveCallableReferencesAfterAllSimpleArguments.kt
index b2332695285..4c5cb7ea24d 100644
--- a/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/resolveCallableReferencesAfterAllSimpleArguments.kt
+++ b/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/resolveCallableReferencesAfterAllSimpleArguments.kt
@@ -7,6 +7,6 @@ fun bar(f: (T) -> Unit, e: T) {}
fun baz(e: T, f: (T) -> Unit) {}
fun test(a: A, b: B) {
- baz(a, ::fooB)
- bar(::fooB, a)
+ baz(a, ::fooB)
+ bar(::fooB, a)
}
diff --git a/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/implicitTypes.kt b/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/implicitTypes.kt
index 189e45d3611..3d563c207fd 100644
--- a/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/implicitTypes.kt
+++ b/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/implicitTypes.kt
@@ -3,5 +3,5 @@ fun use(x: (T) -> R): (T) -> R = x
fun foo() = use(::bar)
fun bar(x: String) = 1
-fun loop1() = use(::loop2)
+fun loop1() = use(::loop2)
fun loop2() = loop1()
diff --git a/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/javaStatic.kt b/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/javaStatic.kt
index b3057626abe..04a617ff483 100644
--- a/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/javaStatic.kt
+++ b/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/javaStatic.kt
@@ -16,5 +16,5 @@ fun foo3(x: (String) -> Int) {}
fun main() {
foo1(JavaClass::bar)
foo2(JavaClass::bar)
- foo3(JavaClass::bar)
+ foo3(JavaClass::bar)
}
diff --git a/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/manyInnermanyOuterCandidatesAmbiguity.kt b/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/manyInnermanyOuterCandidatesAmbiguity.kt
index 10944f406ca..3ba452fd246 100644
--- a/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/manyInnermanyOuterCandidatesAmbiguity.kt
+++ b/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/manyInnermanyOuterCandidatesAmbiguity.kt
@@ -6,5 +6,5 @@ fun bar(): Int = 1
fun bar(x: String): Int = 1
fun main() {
- foo(::bar)
+ foo(::bar)
}
diff --git a/compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromLibrary/notIsNullOrEmpty.kt b/compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromLibrary/notIsNullOrEmpty.kt
index 4a615ff5aa3..b5ef1f744b1 100644
--- a/compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromLibrary/notIsNullOrEmpty.kt
+++ b/compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromLibrary/notIsNullOrEmpty.kt
@@ -7,7 +7,7 @@ fun test_1(s: String?) {
fun test_2(s: String?) {
// contracts related
if (s.isNullOrEmpty()) {
- s.length // Should be bad
+ s.length // Should be bad
} else {
s.length // Should be OK
}
diff --git a/compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/returnsImplies/booleanOperators.kt b/compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/returnsImplies/booleanOperators.kt
index e310196c7fe..3029d26ca7b 100644
--- a/compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/returnsImplies/booleanOperators.kt
+++ b/compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/returnsImplies/booleanOperators.kt
@@ -59,8 +59,8 @@ fun test_2(x: Any) {
fun test_3(x: Any) {
myRequireOr(x is B, x is C)
x.foo() // OK
- x.bar() // Error
- x.baz() // Error
+ x.bar() // Error
+ x.baz() // Error
}
fun test_4(x: Any) {
diff --git a/compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/returnsImplies/eqNotEq.kt b/compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/returnsImplies/eqNotEq.kt
index af95ad9668c..e0aa879b4a3 100644
--- a/compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/returnsImplies/eqNotEq.kt
+++ b/compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/returnsImplies/eqNotEq.kt
@@ -21,7 +21,7 @@ fun test_1(x: String?) {
if (checkNotNull(x)) {
x.length // OK
} else {
- x.length // Error
+ x.length // Error
}
}
diff --git a/compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/returnsImplies/receivers.kt b/compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/returnsImplies/receivers.kt
index 0e12db35591..6087af3a99d 100644
--- a/compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/returnsImplies/receivers.kt
+++ b/compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/returnsImplies/receivers.kt
@@ -27,7 +27,7 @@ fun test_3(x: A?) {
with(x) {
myRequireNotNull()
}
- x.foo()
+ x.foo()
}
fun test_4(x: A?) {
diff --git a/compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/JavaVisibility2.kt b/compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/JavaVisibility2.kt
index 46bc2d36099..32b967e2377 100644
--- a/compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/JavaVisibility2.kt
+++ b/compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/JavaVisibility2.kt
@@ -27,8 +27,8 @@ class A {
val p3 = JavaProtected().javaPProtectedPackage
fun test() {
- JavaProtected.javaMProtectedStatic()
- JavaPackageLocal.javaMPackage()
+ JavaProtected.javaMProtectedStatic()
+ JavaPackageLocal.javaMPackage()
}
}
@@ -39,7 +39,7 @@ class B : JavaProtected() {
fun test() {
JavaProtected.javaMProtectedStatic()
- JavaPackageLocal.javaMPackage()
+ JavaPackageLocal.javaMPackage()
}
}
diff --git a/compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/KJKComplexHierarchyWithNested.kt b/compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/KJKComplexHierarchyWithNested.kt
index e8c12d5cbf3..99df059cf1c 100644
--- a/compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/KJKComplexHierarchyWithNested.kt
+++ b/compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/KJKComplexHierarchyWithNested.kt
@@ -5,9 +5,9 @@ fun main(k: KSub, vString: SuperClass.NestedInSuperClass, vInt: SuperCla
k.getImpl().nestedI(vString)
// TODO: Support parametrisized inner classes
- k.getImpl().nestedI(vInt)
+ k.getImpl().nestedI(vInt)
k.getNestedSubClass().nested("")
- k.getNestedSubClass().nested(1)
+ k.getNestedSubClass().nested(1)
}
// FILE: J1.java
diff --git a/compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/KotlinClassParameter.kt b/compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/KotlinClassParameter.kt
index c2256f265e2..c9c89e70850 100644
--- a/compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/KotlinClassParameter.kt
+++ b/compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/KotlinClassParameter.kt
@@ -9,5 +9,5 @@ public class JavaClass {
// FILE: K2.kt
fun main() {
JavaClass.baz(KotlinClass())
- JavaClass.baz("")
+ JavaClass.baz("")
}
diff --git a/compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/KotlinClassParameterGeneric.kt b/compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/KotlinClassParameterGeneric.kt
index 970b06ffc7e..972831a8220 100644
--- a/compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/KotlinClassParameterGeneric.kt
+++ b/compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/KotlinClassParameterGeneric.kt
@@ -10,6 +10,6 @@ public class JavaClass {
fun main() {
JavaClass.baz(KotlinClass())
JavaClass.baz(KotlinClass())
- JavaClass.baz(KotlinClass())
- JavaClass.baz("")
+ JavaClass.baz(KotlinClass())
+ JavaClass.baz("")
}
diff --git a/compiler/fir/analysis-tests/testData/resolveWithStdlib/listPlusAssign.kt b/compiler/fir/analysis-tests/testData/resolveWithStdlib/listPlusAssign.kt
index 12a9b9ba7a4..1222881d8fb 100644
--- a/compiler/fir/analysis-tests/testData/resolveWithStdlib/listPlusAssign.kt
+++ b/compiler/fir/analysis-tests/testData/resolveWithStdlib/listPlusAssign.kt
@@ -1,6 +1,6 @@
fun List.modify() {
- this += "Alpha"
- this += "Omega"
+ this += "Alpha"
+ this += "Omega"
}
fun Any.modify() {
diff --git a/compiler/fir/analysis-tests/testData/resolveWithStdlib/lowPriorityInResolution.kt b/compiler/fir/analysis-tests/testData/resolveWithStdlib/lowPriorityInResolution.kt
index bfda7fa1285..7e7ce0cabdf 100644
--- a/compiler/fir/analysis-tests/testData/resolveWithStdlib/lowPriorityInResolution.kt
+++ b/compiler/fir/analysis-tests/testData/resolveWithStdlib/lowPriorityInResolution.kt
@@ -1,8 +1,8 @@
-@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
+@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
@kotlin.internal.LowPriorityInOverloadResolution
-fun foo(): Int = 1
+fun foo(): Int = 1
-fun foo(): String = ""
+fun foo(): String = ""
fun test() {
val s = foo()
diff --git a/compiler/fir/analysis-tests/testData/resolveWithStdlib/problems/KJKComplexHierarchyNestedLoop.kt b/compiler/fir/analysis-tests/testData/resolveWithStdlib/problems/KJKComplexHierarchyNestedLoop.kt
index 151031d03c9..a28bf427821 100644
--- a/compiler/fir/analysis-tests/testData/resolveWithStdlib/problems/KJKComplexHierarchyNestedLoop.kt
+++ b/compiler/fir/analysis-tests/testData/resolveWithStdlib/problems/KJKComplexHierarchyNestedLoop.kt
@@ -2,11 +2,11 @@
class K2: J1() {
class Q : Nested()
fun bar() {
- foo()
- baz()
+ foo()
+ baz()
- superClass()
- superI()
+ superClass()
+ superI()
}
}
diff --git a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirDiagnosticTestGenerated.java b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirDiagnosticTestGenerated.java
index be352eaf06c..0a8480423e5 100644
--- a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirDiagnosticTestGenerated.java
+++ b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirDiagnosticTestGenerated.java
@@ -1424,6 +1424,22 @@ public class FirDiagnosticTestGenerated extends AbstractFirDiagnosticTest {
public void testValOnAnnotationParameter() throws Exception {
runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/valOnAnnotationParameter.kt");
}
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/diagnostics/functionAsExpression")
+ @TestDataPath("$PROJECT_ROOT")
+ public class FunctionAsExpression extends AbstractFirDiagnosticTest {
+ @Test
+ public void testAllFilesPresentInFunctionAsExpression() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/diagnostics/functionAsExpression"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("Parameters.kt")
+ public void testParameters() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/functionAsExpression/Parameters.kt");
+ }
+ }
}
@Nested
diff --git a/compiler/tests-spec/tests/org/jetbrains/kotlin/spec/checkers/FirDiagnosticsTestSpecGenerated.java b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirDiagnosticTestSpecGenerated.java
similarity index 56%
rename from compiler/tests-spec/tests/org/jetbrains/kotlin/spec/checkers/FirDiagnosticsTestSpecGenerated.java
rename to compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirDiagnosticTestSpecGenerated.java
index ce8c4a9319d..6febc8a5ba6 100644
--- a/compiler/tests-spec/tests/org/jetbrains/kotlin/spec/checkers/FirDiagnosticsTestSpecGenerated.java
+++ b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirDiagnosticTestSpecGenerated.java
@@ -1,168 +1,150 @@
/*
- * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
+ * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.spec.checkers;
+package org.jetbrains.kotlin.test.runners;
import com.intellij.testFramework.TestDataPath;
-import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
-import org.jetbrains.kotlin.test.KotlinTestUtils;
+import org.jetbrains.kotlin.test.util.KtTestUtil;
import org.jetbrains.kotlin.test.TestMetadata;
-import org.junit.runner.RunWith;
+import org.junit.jupiter.api.Nested;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.parallel.Execution;
+import org.junit.jupiter.api.parallel.ExecutionMode;
import java.io.File;
import java.util.regex.Pattern;
-/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
+/** This class is generated by {@link GenerateNewCompilerTests.kt}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@TestMetadata("compiler/tests-spec/testData/diagnostics")
@TestDataPath("$PROJECT_ROOT")
-@RunWith(JUnit3RunnerWithInners.class)
-public class FirDiagnosticsTestSpecGenerated extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+public class FirDiagnosticTestSpecGenerated extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInDiagnostics() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "helpers", "linked/annotations", "linked/built-in-types-and-their-semantics", "linked/control--and-data-flow-analysis.control-flow-graph.expressions-1.conditional-expressions", "linked/control--and-data-flow-analysis/performing-analysis-on-the-control-flow-graph", "linked/declarations/classifier-declaration/class-declaration/nested-and-inner-classifiers", "linked/declarations/classifier-declaration/classifier-initialization", "linked/declarations/classifier-declaration/data-class-declaration", "linked/declarations/function-declaration", "linked/declarations/property-declaration/property-initialization", "linked/declarations/type-alias", "linked/expressions/call-and-property-access-expressions", "linked/expressions/function-literals", "linked/inheritance", "linked/overload-resolution/c-level-partition", "linked/overload-resolution/determining-function-applicability-for-a-specific-call/rationale", "linked/overloadable-operators", "linked/statements/assignments/simple-assignments", "linked/type-inference/local-type-inference", "linked/type-inference/smart-casts/smart-cast-types", "linked/type-system/subtyping/subtyping-for-nullable-types", "linked/type-system/type-kinds/type-parameters");
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "helpers", "linked/annotations", "linked/built-in-types-and-their-semantics", "linked/control--and-data-flow-analysis.control-flow-graph.expressions-1.conditional-expressions", "linked/control--and-data-flow-analysis/performing-analysis-on-the-control-flow-graph", "linked/declarations/classifier-declaration/class-declaration/nested-and-inner-classifiers", "linked/declarations/classifier-declaration/classifier-initialization", "linked/declarations/classifier-declaration/data-class-declaration", "linked/declarations/function-declaration", "linked/declarations/property-declaration/property-initialization", "linked/declarations/type-alias", "linked/expressions/call-and-property-access-expressions", "linked/expressions/function-literals", "linked/inheritance", "linked/overload-resolution/c-level-partition", "linked/overload-resolution/determining-function-applicability-for-a-specific-call/rationale", "linked/overloadable-operators", "linked/statements/assignments/simple-assignments", "linked/type-inference/local-type-inference", "linked/type-inference/smart-casts/smart-cast-types", "linked/type-system/subtyping/subtyping-for-nullable-types", "linked/type-system/type-kinds/type-parameters");
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Linked extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Linked extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInLinked() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "annotations", "built-in-types-and-their-semantics", "control--and-data-flow-analysis.control-flow-graph.expressions-1.conditional-expressions", "control--and-data-flow-analysis/performing-analysis-on-the-control-flow-graph", "declarations/classifier-declaration/class-declaration/nested-and-inner-classifiers", "declarations/classifier-declaration/classifier-initialization", "declarations/classifier-declaration/data-class-declaration", "declarations/function-declaration", "declarations/property-declaration/property-initialization", "declarations/type-alias", "expressions/call-and-property-access-expressions", "expressions/function-literals", "inheritance", "overload-resolution/c-level-partition", "overload-resolution/determining-function-applicability-for-a-specific-call/rationale", "overloadable-operators", "statements/assignments/simple-assignments", "type-inference/local-type-inference", "type-inference/smart-casts/smart-cast-types", "type-system/subtyping/subtyping-for-nullable-types", "type-system/type-kinds/type-parameters");
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "annotations", "built-in-types-and-their-semantics", "control--and-data-flow-analysis.control-flow-graph.expressions-1.conditional-expressions", "control--and-data-flow-analysis/performing-analysis-on-the-control-flow-graph", "declarations/classifier-declaration/class-declaration/nested-and-inner-classifiers", "declarations/classifier-declaration/classifier-initialization", "declarations/classifier-declaration/data-class-declaration", "declarations/function-declaration", "declarations/property-declaration/property-initialization", "declarations/type-alias", "expressions/call-and-property-access-expressions", "expressions/function-literals", "inheritance", "overload-resolution/c-level-partition", "overload-resolution/determining-function-applicability-for-a-specific-call/rationale", "overloadable-operators", "statements/assignments/simple-assignments", "type-inference/local-type-inference", "type-inference/smart-casts/smart-cast-types", "type-system/subtyping/subtyping-for-nullable-types", "type-system/type-kinds/type-parameters");
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Control__and_data_flow_analysis extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Control__and_data_flow_analysis extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInControl__and_data_flow_analysis() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "performing-analysis-on-the-control-flow-graph");
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "performing-analysis-on-the-control-flow-graph");
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Control_flow_graph extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Control_flow_graph extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInControl_flow_graph() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Expressions_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Expressions_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInExpressions_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Conditional_expressions extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Conditional_expressions extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInConditional_expressions() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/neg/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/neg/1.2.kt");
}
+ @Test
@TestMetadata("1.3.kt")
public void test1_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/neg/1.3.kt");
}
+ @Test
@TestMetadata("1.4.kt")
public void test1_4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/neg/1.4.kt");
}
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/neg/2.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/pos/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/pos/1.2.kt");
}
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/pos/2.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/control--and-data-flow-analysis/control-flow-graph/expressions-1/conditional-expressions/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
@@ -171,381 +153,368 @@ public class FirDiagnosticsTestSpecGenerated extends AbstractFirDiagnosticsTestS
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/declarations")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Declarations extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Declarations extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInDeclarations() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "classifier-declaration/class-declaration/nested-and-inner-classifiers", "classifier-declaration/classifier-initialization", "classifier-declaration/data-class-declaration", "function-declaration", "property-declaration/property-initialization", "type-alias");
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "classifier-declaration/class-declaration/nested-and-inner-classifiers", "classifier-declaration/classifier-initialization", "classifier-declaration/data-class-declaration", "function-declaration", "property-declaration/property-initialization", "type-alias");
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Classifier_declaration extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Classifier_declaration extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInClassifier_declaration() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "class-declaration/nested-and-inner-classifiers", "classifier-initialization", "data-class-declaration");
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "class-declaration/nested-and-inner-classifiers", "classifier-initialization", "data-class-declaration");
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Class_declaration extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Class_declaration extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInClass_declaration() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "nested-and-inner-classifiers");
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "nested-and-inner-classifiers");
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Abstract_classes extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Abstract_classes extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInAbstract_classes() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-1/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-1/neg/1.1.kt");
}
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-1/neg/2.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-1/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-1/pos/2.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-2")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_2 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_2 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_2() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-2/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-2/neg/1.1.kt");
}
+ @Test
@TestMetadata("1.10.kt")
public void test1_10() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-2/neg/1.10.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-2/neg/1.2.kt");
}
+ @Test
@TestMetadata("1.3.kt")
public void test1_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-2/neg/1.3.kt");
}
+ @Test
@TestMetadata("1.4.kt")
public void test1_4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-2/neg/1.4.kt");
}
+ @Test
@TestMetadata("1.5.kt")
public void test1_5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-2/neg/1.5.kt");
}
+ @Test
@TestMetadata("1.6.kt")
public void test1_6() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-2/neg/1.6.kt");
}
+ @Test
@TestMetadata("1.7.kt")
public void test1_7() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-2/neg/1.7.kt");
}
+ @Test
@TestMetadata("1.8.kt")
public void test1_8() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-2/neg/1.8.kt");
}
+ @Test
@TestMetadata("1.9.kt")
public void test1_9() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-2/neg/1.9.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-2/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-2/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-2/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-2/pos/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-2/pos/1.2.kt");
}
+ @Test
@TestMetadata("1.3.kt")
public void test1_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-2/pos/1.3.kt");
}
+ @Test
@TestMetadata("1.4.kt")
public void test1_4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-2/pos/1.4.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/abstract-classes/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Constructor_declaration extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Constructor_declaration extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInConstructor_declaration() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-4")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_4 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_4 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_4() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-4"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-4"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-4/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-4/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-4/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-4/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-5")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_5 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_5 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_5() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-5"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-5"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-5/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-5/neg/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-5/neg/1.2.kt");
}
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-5/neg/2.1.kt");
}
+ @Test
@TestMetadata("3.1.kt")
public void test3_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-5/neg/3.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-5/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-5/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-5/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-5/pos/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-5/pos/1.2.kt");
}
+ @Test
@TestMetadata("1.3.kt")
public void test1_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-5/pos/1.3.kt");
}
+ @Test
@TestMetadata("1.4.kt")
public void test1_4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-5/pos/1.4.kt");
}
+ @Test
@TestMetadata("1.5.kt")
public void test1_5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-5/pos/1.5.kt");
}
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-5/pos/2.1.kt");
}
+ @Test
@TestMetadata("2.2.kt")
public void test2_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-5/pos/2.2.kt");
}
+ @Test
@TestMetadata("2.3.kt")
public void test2_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-5/pos/2.3.kt");
}
+ @Test
@TestMetadata("2.4.kt")
public void test2_4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-5/pos/2.4.kt");
}
+ @Test
@TestMetadata("3.1.kt")
public void test3_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-5/pos/3.1.kt");
}
+ @Test
@TestMetadata("3.2.kt")
public void test3_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-5/pos/3.2.kt");
}
+ @Test
@TestMetadata("3.3.kt")
public void test3_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-5/pos/3.3.kt");
}
+ @Test
@TestMetadata("3.4.kt")
public void test3_4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-5/pos/3.4.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-5/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/classifier-declaration/class-declaration/constructor-declaration/p-5/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
@@ -553,57 +522,46 @@ public class FirDiagnosticsTestSpecGenerated extends AbstractFirDiagnosticsTestS
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/declarations/property-declaration")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Property_declaration extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Property_declaration extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInProperty_declaration() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/property-declaration"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "property-initialization");
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/property-declaration"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "property-initialization");
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/declarations/property-declaration/local-property-declaration")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Local_property_declaration extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Local_property_declaration extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInLocal_property_declaration() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/property-declaration/local-property-declaration"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/property-declaration/local-property-declaration"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/declarations/property-declaration/local-property-declaration/p-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/property-declaration/local-property-declaration/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/property-declaration/local-property-declaration/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/declarations/property-declaration/local-property-declaration/p-1/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/declarations/property-declaration/local-property-declaration/p-1/neg/1.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/property-declaration/local-property-declaration/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/declarations/property-declaration/local-property-declaration/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
@@ -611,4759 +569,4367 @@ public class FirDiagnosticsTestSpecGenerated extends AbstractFirDiagnosticsTestS
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Expressions extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Expressions extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInExpressions() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "call-and-property-access-expressions", "function-literals");
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "call-and-property-access-expressions", "function-literals");
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/additive-expression")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Additive_expression extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Additive_expression extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInAdditive_expression() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/additive-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/additive-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/additive-expression/p-4")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_4 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_4 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_4() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/additive-expression/p-4"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/additive-expression/p-4"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/additive-expression/p-4/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/additive-expression/p-4/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/additive-expression/p-4/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/additive-expression/p-4/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/built-in-types-and-their-semantics")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Built_in_types_and_their_semantics extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Built_in_types_and_their_semantics extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInBuilt_in_types_and_their_semantics() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/built-in-types-and-their-semantics"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/built-in-types-and-their-semantics"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/built-in-types-and-their-semantics/kotlin.nothing-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Kotlin_nothing_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Kotlin_nothing_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInKotlin_nothing_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/built-in-types-and-their-semantics/kotlin.nothing-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/built-in-types-and-their-semantics/kotlin.nothing-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/built-in-types-and-their-semantics/kotlin.nothing-1/p-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/built-in-types-and-their-semantics/kotlin.nothing-1/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/built-in-types-and-their-semantics/kotlin.nothing-1/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/built-in-types-and-their-semantics/kotlin.nothing-1/p-1/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/built-in-types-and-their-semantics/kotlin.nothing-1/p-1/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/built-in-types-and-their-semantics/kotlin.nothing-1/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/built-in-types-and-their-semantics/kotlin.nothing-1/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/built-in-types-and-their-semantics/kotlin.unit")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Kotlin_unit extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Kotlin_unit extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInKotlin_unit() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/built-in-types-and-their-semantics/kotlin.unit"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/built-in-types-and-their-semantics/kotlin.unit"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/built-in-types-and-their-semantics/kotlin.unit/p-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/built-in-types-and-their-semantics/kotlin.unit/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/built-in-types-and-their-semantics/kotlin.unit/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/built-in-types-and-their-semantics/kotlin.unit/p-1/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/built-in-types-and-their-semantics/kotlin.unit/p-1/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/built-in-types-and-their-semantics/kotlin.unit/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/built-in-types-and-their-semantics/kotlin.unit/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/comparison-expressions")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Comparison_expressions extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Comparison_expressions extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInComparison_expressions() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/comparison-expressions"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/comparison-expressions"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/comparison-expressions/p-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/comparison-expressions/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/comparison-expressions/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/comparison-expressions/p-1/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/comparison-expressions/p-1/neg/2.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/comparison-expressions/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/comparison-expressions/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/comparison-expressions/p-4")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_4 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_4 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_4() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/comparison-expressions/p-4"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/comparison-expressions/p-4"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/comparison-expressions/p-4/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/comparison-expressions/p-4/neg/1.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/comparison-expressions/p-4/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/comparison-expressions/p-4/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/comparison-expressions/p-5")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_5 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_5 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_5() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/comparison-expressions/p-5"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/comparison-expressions/p-5"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/comparison-expressions/p-5/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/comparison-expressions/p-5/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/comparison-expressions/p-5/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/comparison-expressions/p-5/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/conditional-expression")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Conditional_expression extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Conditional_expression extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInConditional_expression() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/conditional-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/conditional-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/conditional-expression/p-6")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_6 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_6 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_6() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/conditional-expression/p-6"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/conditional-expression/p-6"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/conditional-expression/p-6/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/conditional-expression/p-6/neg/1.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/conditional-expression/p-6/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/conditional-expression/p-6/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/conditional-expression/p-6/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/conditional-expression/p-6/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/conditional-expression/p-6/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/conditional-expression/p-6/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Constant_literals extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Constant_literals extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInConstant_literals() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/boolean-literals")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Boolean_literals extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Boolean_literals extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInBoolean_literals() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/boolean-literals"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/boolean-literals"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/boolean-literals/p-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/boolean-literals/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/boolean-literals/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/boolean-literals/p-1/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/boolean-literals/p-1/neg/2.1.kt");
}
+ @Test
@TestMetadata("3.1.kt")
public void test3_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/boolean-literals/p-1/neg/3.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/boolean-literals/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/boolean-literals/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/boolean-literals/p-1/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/boolean-literals/p-1/pos/2.1.kt");
}
+ @Test
@TestMetadata("3.1.kt")
public void test3_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/boolean-literals/p-1/pos/3.1.kt");
}
+ @Test
@TestMetadata("3.2.kt")
public void test3_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/boolean-literals/p-1/pos/3.2.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/boolean-literals/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/boolean-literals/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/character-literals")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Character_literals extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Character_literals extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInCharacter_literals() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/character-literals"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/character-literals"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/character-literals/p-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/character-literals/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/character-literals/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/character-literals/p-1/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/character-literals/p-1/neg/1.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/character-literals/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/character-literals/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/character-literals/p-1/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/character-literals/p-1/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/character-literals/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/character-literals/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/character-literals/p-4")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_4 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_4 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_4() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/character-literals/p-4"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/character-literals/p-4"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/character-literals/p-4/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/character-literals/p-4/neg/1.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/character-literals/p-4/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/character-literals/p-4/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/character-literals/p-4/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/character-literals/p-4/pos/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/character-literals/p-4/pos/1.2.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/character-literals/p-4/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/character-literals/p-4/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Integer_literals extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Integer_literals extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInInteger_literals() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/binary-integer-literals")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Binary_integer_literals extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Binary_integer_literals extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInBinary_integer_literals() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/binary-integer-literals"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/binary-integer-literals"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/binary-integer-literals/p-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/binary-integer-literals/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/binary-integer-literals/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/binary-integer-literals/p-1/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/binary-integer-literals/p-1/neg/1.1.kt");
}
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/binary-integer-literals/p-1/neg/2.1.kt");
}
+ @Test
@TestMetadata("2.2.kt")
public void test2_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/binary-integer-literals/p-1/neg/2.2.kt");
}
+ @Test
@TestMetadata("2.3.kt")
public void test2_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/binary-integer-literals/p-1/neg/2.3.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/binary-integer-literals/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/binary-integer-literals/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/decimal-integer-literals")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Decimal_integer_literals extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Decimal_integer_literals extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInDecimal_integer_literals() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/decimal-integer-literals"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/decimal-integer-literals"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/decimal-integer-literals/p-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/decimal-integer-literals/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/decimal-integer-literals/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/decimal-integer-literals/p-1/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/decimal-integer-literals/p-1/neg/2.1.kt");
}
+ @Test
@TestMetadata("2.2.kt")
public void test2_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/decimal-integer-literals/p-1/neg/2.2.kt");
}
+ @Test
@TestMetadata("2.3.kt")
public void test2_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/decimal-integer-literals/p-1/neg/2.3.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/decimal-integer-literals/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/decimal-integer-literals/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/hexadecimal-integer-literals")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Hexadecimal_integer_literals extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Hexadecimal_integer_literals extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInHexadecimal_integer_literals() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/hexadecimal-integer-literals"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/hexadecimal-integer-literals"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/hexadecimal-integer-literals/p-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/hexadecimal-integer-literals/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/hexadecimal-integer-literals/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/hexadecimal-integer-literals/p-1/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/hexadecimal-integer-literals/p-1/neg/1.1.kt");
}
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/hexadecimal-integer-literals/p-1/neg/2.1.kt");
}
+ @Test
@TestMetadata("2.2.kt")
public void test2_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/hexadecimal-integer-literals/p-1/neg/2.2.kt");
}
+ @Test
@TestMetadata("2.3.kt")
public void test2_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/hexadecimal-integer-literals/p-1/neg/2.3.kt");
}
+ @Test
@TestMetadata("2.4.kt")
public void test2_4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/hexadecimal-integer-literals/p-1/neg/2.4.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/hexadecimal-integer-literals/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/integer-literals/hexadecimal-integer-literals/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Real_literals extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Real_literals extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInReal_literals() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-1/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-1/neg/1.1.kt");
}
+ @Test
@TestMetadata("3.1.kt")
public void test3_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-1/neg/3.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-1/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-1/pos/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-1/pos/1.2.kt");
}
+ @Test
@TestMetadata("3.1.kt")
public void test3_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-1/pos/3.1.kt");
}
+ @Test
@TestMetadata("3.2.kt")
public void test3_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-1/pos/3.2.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-2")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_2 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_2 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_2() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-2/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-2/neg/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-2/neg/1.2.kt");
}
+ @Test
@TestMetadata("1.3.kt")
public void test1_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-2/neg/1.3.kt");
}
+ @Test
@TestMetadata("1.4.kt")
public void test1_4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-2/neg/1.4.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-2/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-2/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-2/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-2/pos/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-2/pos/1.2.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-3")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_3 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_3 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_3() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-3"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-3"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-3/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-3/neg/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-3/neg/1.2.kt");
}
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-3/neg/2.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-3/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-3/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-3/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-3/pos/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-3/pos/1.2.kt");
}
+ @Test
@TestMetadata("1.3.kt")
public void test1_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-3/pos/1.3.kt");
}
+ @Test
@TestMetadata("1.4.kt")
public void test1_4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-3/pos/1.4.kt");
}
+ @Test
@TestMetadata("1.5.kt")
public void test1_5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-3/pos/1.5.kt");
}
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-3/pos/2.1.kt");
}
+ @Test
@TestMetadata("2.2.kt")
public void test2_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-3/pos/2.2.kt");
}
+ @Test
@TestMetadata("2.3.kt")
public void test2_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-3/pos/2.3.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-3/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-3/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-4")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_4 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_4 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_4() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-4"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-4"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-4/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-4/neg/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-4/neg/1.2.kt");
}
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-4/neg/2.1.kt");
}
+ @Test
@TestMetadata("2.2.kt")
public void test2_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-4/neg/2.2.kt");
}
+ @Test
@TestMetadata("2.3.kt")
public void test2_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-4/neg/2.3.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-4/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-4/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-4/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-4/pos/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-4/pos/1.2.kt");
}
+ @Test
@TestMetadata("1.3.kt")
public void test1_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-4/pos/1.3.kt");
}
+ @Test
@TestMetadata("1.4.kt")
public void test1_4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-4/pos/1.4.kt");
}
+ @Test
@TestMetadata("1.5.kt")
public void test1_5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-4/pos/1.5.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-4/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-4/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-5")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_5 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_5 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_5() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-5"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-5"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-5/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-5/pos/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-5/pos/1.2.kt");
}
+ @Test
@TestMetadata("1.3.kt")
public void test1_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-5/pos/1.3.kt");
}
+ @Test
@TestMetadata("1.4.kt")
public void test1_4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-5/pos/1.4.kt");
}
+ @Test
@TestMetadata("1.5.kt")
public void test1_5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-5/pos/1.5.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-5/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/real-literals/p-5/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/the-types-for-integer-literals")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class The_types_for_integer_literals extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class The_types_for_integer_literals extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInThe_types_for_integer_literals() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/the-types-for-integer-literals"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/the-types-for-integer-literals"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/the-types-for-integer-literals/p-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/the-types-for-integer-literals/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/the-types-for-integer-literals/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/the-types-for-integer-literals/p-1/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/the-types-for-integer-literals/p-1/neg/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/the-types-for-integer-literals/p-1/neg/1.2.kt");
}
+ @Test
@TestMetadata("1.3.kt")
public void test1_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/the-types-for-integer-literals/p-1/neg/1.3.kt");
}
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/the-types-for-integer-literals/p-1/neg/2.1.kt");
}
+ @Test
@TestMetadata("2.2.kt")
public void test2_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/the-types-for-integer-literals/p-1/neg/2.2.kt");
}
+ @Test
@TestMetadata("2.3.kt")
public void test2_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/the-types-for-integer-literals/p-1/neg/2.3.kt");
}
+ @Test
@TestMetadata("2.4.kt")
public void test2_4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/the-types-for-integer-literals/p-1/neg/2.4.kt");
}
+ @Test
@TestMetadata("2.5.kt")
public void test2_5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/the-types-for-integer-literals/p-1/neg/2.5.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/the-types-for-integer-literals/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/the-types-for-integer-literals/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/the-types-for-integer-literals/p-1/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/the-types-for-integer-literals/p-1/pos/2.1.kt");
}
+ @Test
@TestMetadata("2.2.kt")
public void test2_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/the-types-for-integer-literals/p-1/pos/2.2.kt");
}
+ @Test
@TestMetadata("2.3.kt")
public void test2_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/the-types-for-integer-literals/p-1/pos/2.3.kt");
}
+ @Test
@TestMetadata("2.4.kt")
public void test2_4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/the-types-for-integer-literals/p-1/pos/2.4.kt");
}
+ @Test
@TestMetadata("2.5.kt")
public void test2_5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/the-types-for-integer-literals/p-1/pos/2.5.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/the-types-for-integer-literals/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/constant-literals/the-types-for-integer-literals/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/elvis-operator-expression")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Elvis_operator_expression extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Elvis_operator_expression extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInElvis_operator_expression() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/elvis-operator-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/elvis-operator-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/elvis-operator-expression/p-3")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_3 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_3 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_3() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/elvis-operator-expression/p-3"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/elvis-operator-expression/p-3"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/elvis-operator-expression/p-3/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/elvis-operator-expression/p-3/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/elvis-operator-expression/p-3/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/elvis-operator-expression/p-3/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/equality-expressions")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Equality_expressions extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Equality_expressions extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInEquality_expressions() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/equality-expressions"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/equality-expressions"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/equality-expressions/value-equality-expressions")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Value_equality_expressions extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Value_equality_expressions extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInValue_equality_expressions() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/equality-expressions/value-equality-expressions"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/equality-expressions/value-equality-expressions"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/equality-expressions/value-equality-expressions/p-3")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_3 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_3 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_3() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/equality-expressions/value-equality-expressions/p-3"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/equality-expressions/value-equality-expressions/p-3"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/equality-expressions/value-equality-expressions/p-3/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/equality-expressions/value-equality-expressions/p-3/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/equality-expressions/value-equality-expressions/p-3/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/equality-expressions/value-equality-expressions/p-3/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Jump_expressions extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Jump_expressions extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInJump_expressions() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/break-expression")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Break_expression extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Break_expression extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInBreak_expression() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/break-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/break-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/break-expression/p-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/break-expression/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/break-expression/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/break-expression/p-1/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/break-expression/p-1/neg/1.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/break-expression/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/break-expression/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/continue-expression")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Continue_expression extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Continue_expression extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInContinue_expression() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/continue-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/continue-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/continue-expression/p-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/continue-expression/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/continue-expression/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/continue-expression/p-1/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/continue-expression/p-1/neg/1.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/continue-expression/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/continue-expression/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/p-2")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_2 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_2 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_2() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/p-2/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/p-2/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/return-expressions")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Return_expressions extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Return_expressions extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInReturn_expressions() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/return-expressions"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/return-expressions"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/return-expressions/p-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/return-expressions/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/return-expressions/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/return-expressions/p-1/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/return-expressions/p-1/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/return-expressions/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/return-expressions/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/return-expressions/p-4")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_4 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_4 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_4() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/return-expressions/p-4"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/return-expressions/p-4"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/return-expressions/p-4/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/return-expressions/p-4/neg/1.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/return-expressions/p-4/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/jump-expressions/return-expressions/p-4/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/logical-conjunction-expression")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Logical_conjunction_expression extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Logical_conjunction_expression extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInLogical_conjunction_expression() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/logical-conjunction-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/logical-conjunction-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/logical-conjunction-expression/p-2")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_2 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_2 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_2() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/logical-conjunction-expression/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/logical-conjunction-expression/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/logical-conjunction-expression/p-2/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/logical-conjunction-expression/p-2/neg/1.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/logical-conjunction-expression/p-2/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/logical-conjunction-expression/p-2/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/logical-conjunction-expression/p-2/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/logical-conjunction-expression/p-2/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/logical-conjunction-expression/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/logical-conjunction-expression/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/logical-disjunction-expression")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Logical_disjunction_expression extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Logical_disjunction_expression extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInLogical_disjunction_expression() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/logical-disjunction-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/logical-disjunction-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/logical-disjunction-expression/p-2")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_2 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_2 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_2() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/logical-disjunction-expression/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/logical-disjunction-expression/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/logical-disjunction-expression/p-2/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/logical-disjunction-expression/p-2/neg/1.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/logical-disjunction-expression/p-2/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/logical-disjunction-expression/p-2/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/logical-disjunction-expression/p-2/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/logical-disjunction-expression/p-2/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/logical-disjunction-expression/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/logical-disjunction-expression/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/multiplicative-expression")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Multiplicative_expression extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Multiplicative_expression extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInMultiplicative_expression() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/multiplicative-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/multiplicative-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/multiplicative-expression/p-5")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_5 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_5 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_5() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/multiplicative-expression/p-5"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/multiplicative-expression/p-5"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/multiplicative-expression/p-5/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/multiplicative-expression/p-5/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/multiplicative-expression/p-5/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/multiplicative-expression/p-5/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Not_null_assertion_expression extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Not_null_assertion_expression extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInNot_null_assertion_expression() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-2")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_2 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_2 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_2() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-2/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-2/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-3")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_3 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_3 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_3() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-3"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-3"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-3/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-3/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-3/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/not-null-assertion-expression/p-3/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Prefix_expressions extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Prefix_expressions extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInPrefix_expressions() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/logical-not-expression")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Logical_not_expression extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Logical_not_expression extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInLogical_not_expression() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/logical-not-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/logical-not-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/logical-not-expression/p-3")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_3 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_3 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_3() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/logical-not-expression/p-3"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/logical-not-expression/p-3"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/logical-not-expression/p-3/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/logical-not-expression/p-3/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/logical-not-expression/p-3/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/logical-not-expression/p-3/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-decrement-expression")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Prefix_decrement_expression extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Prefix_decrement_expression extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInPrefix_decrement_expression() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-decrement-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-decrement-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-decrement-expression/p-4")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_4 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_4 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_4() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-decrement-expression/p-4"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-decrement-expression/p-4"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-decrement-expression/p-4/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-decrement-expression/p-4/neg/1.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-decrement-expression/p-4/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-decrement-expression/p-4/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-decrement-expression/p-5")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_5 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_5 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_5() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-decrement-expression/p-5"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-decrement-expression/p-5"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-decrement-expression/p-5/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-decrement-expression/p-5/neg/2.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-decrement-expression/p-5/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-decrement-expression/p-5/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-increment-expression")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Prefix_increment_expression extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Prefix_increment_expression extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInPrefix_increment_expression() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-increment-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-increment-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-increment-expression/p-4")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_4 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_4 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_4() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-increment-expression/p-4"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-increment-expression/p-4"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-increment-expression/p-4/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-increment-expression/p-4/neg/1.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-increment-expression/p-4/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-increment-expression/p-4/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-increment-expression/p-5")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_5 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_5 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_5() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-increment-expression/p-5"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-increment-expression/p-5"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-increment-expression/p-5/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-increment-expression/p-5/neg/2.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-increment-expression/p-5/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-increment-expression/p-5/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/unary-minus-expression")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Unary_minus_expression extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Unary_minus_expression extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInUnary_minus_expression() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/unary-minus-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/unary-minus-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/unary-minus-expression/p-3")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_3 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_3 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_3() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/unary-minus-expression/p-3"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/unary-minus-expression/p-3"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/unary-minus-expression/p-3/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/unary-minus-expression/p-3/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/unary-minus-expression/p-3/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/unary-minus-expression/p-3/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/unary-plus-expression")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Unary_plus_expression extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Unary_plus_expression extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInUnary_plus_expression() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/unary-plus-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/unary-plus-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/unary-plus-expression/p-3")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_3 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_3 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_3() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/unary-plus-expression/p-3"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/unary-plus-expression/p-3"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/unary-plus-expression/p-3/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/unary-plus-expression/p-3/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/unary-plus-expression/p-3/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/unary-plus-expression/p-3/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/range-expression")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Range_expression extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Range_expression extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInRange_expression() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/range-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/range-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/range-expression/p-4")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_4 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_4 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_4() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/range-expression/p-4"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/range-expression/p-4"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/range-expression/p-4/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/range-expression/p-4/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/range-expression/p-4/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/range-expression/p-4/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Try_expression extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Try_expression extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInTry_expression() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/neg/1.1.kt");
}
+ @Test
@TestMetadata("3.1.kt")
public void test3_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/neg/3.1.kt");
}
+ @Test
@TestMetadata("4.1.kt")
public void test4_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/neg/4.1.kt");
}
+ @Test
@TestMetadata("5.1.kt")
public void test5_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/neg/5.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/pos/1.1.kt");
}
+ @Test
@TestMetadata("3.1.kt")
public void test3_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/pos/3.1.kt");
}
+ @Test
@TestMetadata("3.2.kt")
public void test3_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/pos/3.2.kt");
}
+ @Test
@TestMetadata("4.1.kt")
public void test4_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/pos/4.1.kt");
}
+ @Test
@TestMetadata("4.2.kt")
public void test4_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/pos/4.2.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-2")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_2 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_2 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_2() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-2/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-2/pos/2.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-5")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_5 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_5 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_5() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-5"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-5"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-5/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-5/pos/1.1.kt");
}
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-5/pos/2.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-5/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-5/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-8")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_8 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_8 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_8() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-8"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-8"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-8/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-8/neg/1.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-8/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-8/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-8/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-8/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-8/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/try-expression/p-8/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Type_checking_and_containment_checking_expressions extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Type_checking_and_containment_checking_expressions extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInType_checking_and_containment_checking_expressions() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/containment-checking-expression")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Containment_checking_expression extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Containment_checking_expression extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInContainment_checking_expression() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/containment-checking-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/containment-checking-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/containment-checking-expression/p-5")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_5 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_5 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_5() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/containment-checking-expression/p-5"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/containment-checking-expression/p-5"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/containment-checking-expression/p-5/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/containment-checking-expression/p-5/pos/2.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/containment-checking-expression/p-5/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/containment-checking-expression/p-5/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Type_checking_expression extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Type_checking_expression extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInType_checking_expression() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-4")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_4 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_4 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_4() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-4"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-4"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-4/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-4/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-4/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/type-checking-and-containment-checking-expressions/type-checking-expression/p-4/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class When_expression extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class When_expression extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInWhen_expression() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/exhaustive-when-expressions")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Exhaustive_when_expressions extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Exhaustive_when_expressions extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInExhaustive_when_expressions() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/exhaustive-when-expressions"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/exhaustive-when-expressions"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/exhaustive-when-expressions/p-2")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_2 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_2 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_2() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/exhaustive-when-expressions/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/exhaustive-when-expressions/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/exhaustive-when-expressions/p-2/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("11.1.kt")
public void test11_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/exhaustive-when-expressions/p-2/neg/11.1.kt");
}
+ @Test
@TestMetadata("11.2.kt")
public void test11_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/exhaustive-when-expressions/p-2/neg/11.2.kt");
}
+ @Test
@TestMetadata("11.3.kt")
public void test11_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/exhaustive-when-expressions/p-2/neg/11.3.kt");
}
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/exhaustive-when-expressions/p-2/neg/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/exhaustive-when-expressions/p-2/neg/1.2.kt");
}
+ @Test
@TestMetadata("3.1.kt")
public void test3_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/exhaustive-when-expressions/p-2/neg/3.1.kt");
}
+ @Test
@TestMetadata("9.1.kt")
public void test9_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/exhaustive-when-expressions/p-2/neg/9.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/exhaustive-when-expressions/p-2/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/exhaustive-when-expressions/p-2/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/exhaustive-when-expressions/p-2/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("10.1.kt")
public void test10_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/exhaustive-when-expressions/p-2/pos/10.1.kt");
}
+ @Test
@TestMetadata("11.1.kt")
public void test11_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/exhaustive-when-expressions/p-2/pos/11.1.kt");
}
+ @Test
@TestMetadata("11.2.kt")
public void test11_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/exhaustive-when-expressions/p-2/pos/11.2.kt");
}
+ @Test
@TestMetadata("11.3.kt")
public void test11_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/exhaustive-when-expressions/p-2/pos/11.3.kt");
}
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/exhaustive-when-expressions/p-2/pos/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/exhaustive-when-expressions/p-2/pos/1.2.kt");
}
+ @Test
@TestMetadata("1.3.kt")
public void test1_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/exhaustive-when-expressions/p-2/pos/1.3.kt");
}
+ @Test
@TestMetadata("3.1.kt")
public void test3_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/exhaustive-when-expressions/p-2/pos/3.1.kt");
}
+ @Test
@TestMetadata("7.1.kt")
public void test7_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/exhaustive-when-expressions/p-2/pos/7.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/exhaustive-when-expressions/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/exhaustive-when-expressions/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-1/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("3.1.kt")
public void test3_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-1/pos/3.1.kt");
}
+ @Test
@TestMetadata("3.2.kt")
public void test3_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-1/pos/3.2.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-2")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_2 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_2 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_2() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-2/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-2/neg/2.1.kt");
}
+ @Test
@TestMetadata("2.2.kt")
public void test2_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-2/neg/2.2.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-2/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-2/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-2/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-2/pos/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-2/pos/1.2.kt");
}
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-2/pos/2.1.kt");
}
+ @Test
@TestMetadata("2.2.kt")
public void test2_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-2/pos/2.2.kt");
}
+ @Test
@TestMetadata("2.3.kt")
public void test2_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-2/pos/2.3.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-3")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_3 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_3 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_3() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-3"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-3"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-3/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-3/neg/2.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-3/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-3/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-4")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_4 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_4 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_4() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-4"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-4"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-4/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-4/neg/1.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-4/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-4/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-4/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-4/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-4/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-4/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-5")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_5 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_5 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_5() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-5"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-5"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-5/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-5/pos/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-5/pos/1.2.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-5/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-5/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_6 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_6 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_6() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/neg/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/neg/1.2.kt");
}
+ @Test
@TestMetadata("3.1.kt")
public void test3_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/neg/3.1.kt");
}
+ @Test
@TestMetadata("3.2.kt")
public void test3_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/neg/3.2.kt");
}
+ @Test
@TestMetadata("7.1.kt")
public void test7_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/neg/7.1.kt");
}
+ @Test
@TestMetadata("7.2.kt")
public void test7_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/neg/7.2.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/1.2.kt");
}
+ @Test
@TestMetadata("1.3.kt")
public void test1_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/1.3.kt");
}
+ @Test
@TestMetadata("1.4.kt")
public void test1_4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/1.4.kt");
}
+ @Test
@TestMetadata("3.1.kt")
public void test3_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/3.1.kt");
}
+ @Test
@TestMetadata("3.2.kt")
public void test3_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/3.2.kt");
}
+ @Test
@TestMetadata("5.1.kt")
public void test5_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/5.1.kt");
}
+ @Test
@TestMetadata("5.2.kt")
public void test5_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/5.2.kt");
}
+ @Test
@TestMetadata("6.1.kt")
public void test6_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/6.1.kt");
}
+ @Test
@TestMetadata("7.1.kt")
public void test7_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/7.1.kt");
}
+ @Test
@TestMetadata("7.2.kt")
public void test7_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos/7.2.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Overload_resolution extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Overload_resolution extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInOverload_resolution() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "c-level-partition", "determining-function-applicability-for-a-specific-call/rationale");
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "c-level-partition", "determining-function-applicability-for-a-specific-call/rationale");
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Building_the_overload_candidate_set_ocs extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Building_the_overload_candidate_set_ocs extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInBuilding_the_overload_candidate_set_ocs() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Call_with_an_explicit_receiver extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Call_with_an_explicit_receiver extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInCall_with_an_explicit_receiver() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/call-with-an-explicit-type-receiver")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Call_with_an_explicit_type_receiver extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Call_with_an_explicit_type_receiver extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInCall_with_an_explicit_type_receiver() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/call-with-an-explicit-type-receiver"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/call-with-an-explicit-type-receiver"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/call-with-an-explicit-type-receiver/p-3")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_3 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_3 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_3() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/call-with-an-explicit-type-receiver/p-3"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/call-with-an-explicit-type-receiver/p-3"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/call-with-an-explicit-type-receiver/p-3/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/call-with-an-explicit-type-receiver/p-3/pos/2.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/call-with-an-explicit-type-receiver/p-3/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/call-with-an-explicit-type-receiver/p-3/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/p-6")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_6 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_6 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_6() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/p-6"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/p-6"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/p-6/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/p-6/pos/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/p-6/pos/1.2.kt");
}
+ @Test
@TestMetadata("1.3.kt")
public void test1_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/p-6/pos/1.3.kt");
}
+ @Test
@TestMetadata("1.4.kt")
public void test1_4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/p-6/pos/1.4.kt");
}
+ @Test
@TestMetadata("1.5.kt")
public void test1_5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/p-6/pos/1.5.kt");
}
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/p-6/pos/2.1.kt");
}
+ @Test
@TestMetadata("2.2.kt")
public void test2_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/p-6/pos/2.2.kt");
}
+ @Test
@TestMetadata("2.3.kt")
public void test2_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/p-6/pos/2.3.kt");
}
+ @Test
@TestMetadata("2.4.kt")
public void test2_4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/p-6/pos/2.4.kt");
}
+ @Test
@TestMetadata("3.1.kt")
public void test3_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/p-6/pos/3.1.kt");
}
+ @Test
@TestMetadata("3.2.kt")
public void test3_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/p-6/pos/3.2.kt");
}
+ @Test
@TestMetadata("4.1.kt")
public void test4_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/p-6/pos/4.1.kt");
}
+ @Test
@TestMetadata("4.2.kt")
public void test4_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/p-6/pos/4.2.kt");
}
+ @Test
@TestMetadata("5.1.kt")
public void test5_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/p-6/pos/5.1.kt");
}
+ @Test
@TestMetadata("5.2.kt")
public void test5_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/p-6/pos/5.2.kt");
}
+ @Test
@TestMetadata("6.1.kt")
public void test6_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/p-6/pos/6.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/p-6/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/p-6/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-named-parameters")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Call_with_named_parameters extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Call_with_named_parameters extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInCall_with_named_parameters() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-named-parameters"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-named-parameters"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-named-parameters/p-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-named-parameters/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-named-parameters/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-named-parameters/p-1/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-named-parameters/p-1/pos/2.1.kt");
}
+ @Test
@TestMetadata("2.10.kt")
public void test2_10() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-named-parameters/p-1/pos/2.10.kt");
}
+ @Test
@TestMetadata("2.11.kt")
public void test2_11() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-named-parameters/p-1/pos/2.11.kt");
}
+ @Test
@TestMetadata("2.12.kt")
public void test2_12() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-named-parameters/p-1/pos/2.12.kt");
}
+ @Test
@TestMetadata("2.13.kt")
public void test2_13() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-named-parameters/p-1/pos/2.13.kt");
}
+ @Test
@TestMetadata("2.14.kt")
public void test2_14() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-named-parameters/p-1/pos/2.14.kt");
}
+ @Test
@TestMetadata("2.15.kt")
public void test2_15() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-named-parameters/p-1/pos/2.15.kt");
}
+ @Test
@TestMetadata("2.16.kt")
public void test2_16() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-named-parameters/p-1/pos/2.16.kt");
}
+ @Test
@TestMetadata("2.2.kt")
public void test2_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-named-parameters/p-1/pos/2.2.kt");
}
+ @Test
@TestMetadata("2.3.kt")
public void test2_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-named-parameters/p-1/pos/2.3.kt");
}
+ @Test
@TestMetadata("2.4.kt")
public void test2_4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-named-parameters/p-1/pos/2.4.kt");
}
+ @Test
@TestMetadata("2.5.kt")
public void test2_5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-named-parameters/p-1/pos/2.5.kt");
}
+ @Test
@TestMetadata("2.6.kt")
public void test2_6() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-named-parameters/p-1/pos/2.6.kt");
}
+ @Test
@TestMetadata("2.7.kt")
public void test2_7() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-named-parameters/p-1/pos/2.7.kt");
}
+ @Test
@TestMetadata("2.8.kt")
public void test2_8() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-named-parameters/p-1/pos/2.8.kt");
}
+ @Test
@TestMetadata("2.9.kt")
public void test2_9() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-named-parameters/p-1/pos/2.9.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-named-parameters/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-named-parameters/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-named-parameters/p-5")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_5 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_5 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_5() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-named-parameters/p-5"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-named-parameters/p-5"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-named-parameters/p-5/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-named-parameters/p-5/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-named-parameters/p-5/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-specified-type-parameters")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Call_with_specified_type_parameters extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Call_with_specified_type_parameters extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInCall_with_specified_type_parameters() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-specified-type-parameters"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-specified-type-parameters"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-specified-type-parameters/p-2")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_2 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_2 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_2() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-specified-type-parameters/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-specified-type-parameters/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-specified-type-parameters/p-2/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-specified-type-parameters/p-2/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-specified-type-parameters/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-specified-type-parameters/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-trailing-lambda-expressions")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Call_with_trailing_lambda_expressions extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Call_with_trailing_lambda_expressions extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInCall_with_trailing_lambda_expressions() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-trailing-lambda-expressions"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-trailing-lambda-expressions"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-trailing-lambda-expressions/p-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-trailing-lambda-expressions/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-trailing-lambda-expressions/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-trailing-lambda-expressions/p-1/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-trailing-lambda-expressions/p-1/pos/2.1.kt");
}
+ @Test
@TestMetadata("2.10.kt")
public void test2_10() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-trailing-lambda-expressions/p-1/pos/2.10.kt");
}
+ @Test
@TestMetadata("2.11.kt")
public void test2_11() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-trailing-lambda-expressions/p-1/pos/2.11.kt");
}
+ @Test
@TestMetadata("2.12.kt")
public void test2_12() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-trailing-lambda-expressions/p-1/pos/2.12.kt");
}
+ @Test
@TestMetadata("2.13.kt")
public void test2_13() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-trailing-lambda-expressions/p-1/pos/2.13.kt");
}
+ @Test
@TestMetadata("2.14.kt")
public void test2_14() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-trailing-lambda-expressions/p-1/pos/2.14.kt");
}
+ @Test
@TestMetadata("2.15.kt")
public void test2_15() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-trailing-lambda-expressions/p-1/pos/2.15.kt");
}
+ @Test
@TestMetadata("2.16.kt")
public void test2_16() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-trailing-lambda-expressions/p-1/pos/2.16.kt");
}
+ @Test
@TestMetadata("2.17.kt")
public void test2_17() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-trailing-lambda-expressions/p-1/pos/2.17.kt");
}
+ @Test
@TestMetadata("2.18.kt")
public void test2_18() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-trailing-lambda-expressions/p-1/pos/2.18.kt");
}
+ @Test
@TestMetadata("2.19.kt")
public void test2_19() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-trailing-lambda-expressions/p-1/pos/2.19.kt");
}
+ @Test
@TestMetadata("2.2.kt")
public void test2_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-trailing-lambda-expressions/p-1/pos/2.2.kt");
}
+ @Test
@TestMetadata("2.20.kt")
public void test2_20() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-trailing-lambda-expressions/p-1/pos/2.20.kt");
}
+ @Test
@TestMetadata("2.21.kt")
public void test2_21() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-trailing-lambda-expressions/p-1/pos/2.21.kt");
}
+ @Test
@TestMetadata("2.3.kt")
public void test2_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-trailing-lambda-expressions/p-1/pos/2.3.kt");
}
+ @Test
@TestMetadata("2.4.kt")
public void test2_4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-trailing-lambda-expressions/p-1/pos/2.4.kt");
}
+ @Test
@TestMetadata("2.5.kt")
public void test2_5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-trailing-lambda-expressions/p-1/pos/2.5.kt");
}
+ @Test
@TestMetadata("2.6.kt")
public void test2_6() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-trailing-lambda-expressions/p-1/pos/2.6.kt");
}
+ @Test
@TestMetadata("2.7.kt")
public void test2_7() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-trailing-lambda-expressions/p-1/pos/2.7.kt");
}
+ @Test
@TestMetadata("2.8.kt")
public void test2_8() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-trailing-lambda-expressions/p-1/pos/2.8.kt");
}
+ @Test
@TestMetadata("2.9.kt")
public void test2_9() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-trailing-lambda-expressions/p-1/pos/2.9.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-trailing-lambda-expressions/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-trailing-lambda-expressions/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Call_without_an_explicit_receiver extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Call_without_an_explicit_receiver extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInCall_without_an_explicit_receiver() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver/p-5")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_5 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_5 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_5() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver/p-5"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver/p-5"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver/p-5/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("2.3.kt")
public void test2_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver/p-5/neg/2.3.kt");
}
+ @Test
@TestMetadata("2.4.kt")
public void test2_4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver/p-5/neg/2.4.kt");
}
+ @Test
@TestMetadata("2.5.kt")
public void test2_5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver/p-5/neg/2.5.kt");
}
+ @Test
@TestMetadata("4.1.kt")
public void test4_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver/p-5/neg/4.1.kt");
}
+ @Test
@TestMetadata("4.2.kt")
public void test4_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver/p-5/neg/4.2.kt");
}
+ @Test
@TestMetadata("6.1.kt")
public void test6_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver/p-5/neg/6.1.kt");
}
+ @Test
@TestMetadata("6.4.kt")
public void test6_4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver/p-5/neg/6.4.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver/p-5/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver/p-5/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver/p-5/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver/p-5/pos/2.1.kt");
}
+ @Test
@TestMetadata("2.2.kt")
public void test2_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver/p-5/pos/2.2.kt");
}
+ @Test
@TestMetadata("2.3.kt")
public void test2_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver/p-5/pos/2.3.kt");
}
+ @Test
@TestMetadata("2.4.kt")
public void test2_4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver/p-5/pos/2.4.kt");
}
+ @Test
@TestMetadata("2.5.kt")
public void test2_5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver/p-5/pos/2.5.kt");
}
+ @Test
@TestMetadata("4.1.kt")
public void test4_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver/p-5/pos/4.1.kt");
}
+ @Test
@TestMetadata("4.2.kt")
public void test4_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver/p-5/pos/4.2.kt");
}
+ @Test
@TestMetadata("4.3.kt")
public void test4_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver/p-5/pos/4.3.kt");
}
+ @Test
@TestMetadata("4.4.kt")
public void test4_4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver/p-5/pos/4.4.kt");
}
+ @Test
@TestMetadata("4.5.kt")
public void test4_5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver/p-5/pos/4.5.kt");
}
+ @Test
@TestMetadata("4.6.kt")
public void test4_6() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver/p-5/pos/4.6.kt");
}
+ @Test
@TestMetadata("5.1.kt")
public void test5_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver/p-5/pos/5.1.kt");
}
+ @Test
@TestMetadata("6.1.kt")
public void test6_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver/p-5/pos/6.1.kt");
}
+ @Test
@TestMetadata("6.2.kt")
public void test6_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver/p-5/pos/6.2.kt");
}
+ @Test
@TestMetadata("6.3.kt")
public void test6_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver/p-5/pos/6.3.kt");
}
+ @Test
@TestMetadata("7.1.kt")
public void test7_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver/p-5/pos/7.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver/p-5/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-without-an-explicit-receiver/p-5/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/infix-function-call")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Infix_function_call extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Infix_function_call extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInInfix_function_call() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/infix-function-call"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/infix-function-call"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/infix-function-call/p-2")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_2 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_2 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_2() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/infix-function-call/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/infix-function-call/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/infix-function-call/p-2/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/infix-function-call/p-2/neg/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/infix-function-call/p-2/neg/1.2.kt");
}
+ @Test
@TestMetadata("1.3.kt")
public void test1_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/infix-function-call/p-2/neg/1.3.kt");
}
+ @Test
@TestMetadata("1.4.kt")
public void test1_4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/infix-function-call/p-2/neg/1.4.kt");
}
+ @Test
@TestMetadata("4.5.kt")
public void test4_5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/infix-function-call/p-2/neg/4.5.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/infix-function-call/p-2/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/infix-function-call/p-2/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/infix-function-call/p-2/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("4.1.kt")
public void test4_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/infix-function-call/p-2/pos/4.1.kt");
}
+ @Test
@TestMetadata("4.2.kt")
public void test4_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/infix-function-call/p-2/pos/4.2.kt");
}
+ @Test
@TestMetadata("4.3.kt")
public void test4_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/infix-function-call/p-2/pos/4.3.kt");
}
+ @Test
@TestMetadata("4.4.kt")
public void test4_4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/infix-function-call/p-2/pos/4.4.kt");
}
+ @Test
@TestMetadata("4.5.kt")
public void test4_5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/infix-function-call/p-2/pos/4.5.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/infix-function-call/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/infix-function-call/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Operator_call extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Operator_call extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInOperator_call() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-1/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-1/neg/2.1.kt");
}
+ @Test
@TestMetadata("2.2.kt")
public void test2_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-1/neg/2.2.kt");
}
+ @Test
@TestMetadata("2.4.kt")
public void test2_4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-1/neg/2.4.kt");
}
+ @Test
@TestMetadata("2.5.kt")
public void test2_5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-1/neg/2.5.kt");
}
+ @Test
@TestMetadata("2.6.kt")
public void test2_6() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-1/neg/2.6.kt");
}
+ @Test
@TestMetadata("2.7.kt")
public void test2_7() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-1/neg/2.7.kt");
}
+ @Test
@TestMetadata("2.8.kt")
public void test2_8() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-1/neg/2.8.kt");
}
+ @Test
@TestMetadata("2.9.kt")
public void test2_9() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-1/neg/2.9.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-1/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-1/pos/2.1.kt");
}
+ @Test
@TestMetadata("2.2.kt")
public void test2_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-1/pos/2.2.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-2")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_2 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_2 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_2() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-2/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("3.1.kt")
public void test3_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-2/pos/3.1.kt");
}
+ @Test
@TestMetadata("3.2.kt")
public void test3_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-2/pos/3.2.kt");
}
+ @Test
@TestMetadata("3.3.kt")
public void test3_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-2/pos/3.3.kt");
}
+ @Test
@TestMetadata("3.4.kt")
public void test3_4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-2/pos/3.4.kt");
}
+ @Test
@TestMetadata("3.5.kt")
public void test3_5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-2/pos/3.5.kt");
}
+ @Test
@TestMetadata("3.6.kt")
public void test3_6() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-2/pos/3.6.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-4")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_4 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_4 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_4() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-4"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-4"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-4/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-4/neg/1.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-4/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-4/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-4/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-4/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-4/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/operator-call/p-4/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/callables-and-invoke-convention")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Callables_and_invoke_convention extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Callables_and_invoke_convention extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInCallables_and_invoke_convention() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/callables-and-invoke-convention"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/callables-and-invoke-convention"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/callables-and-invoke-convention/p-2")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_2 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_2 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_2() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/callables-and-invoke-convention/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/callables-and-invoke-convention/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/callables-and-invoke-convention/p-2/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("10.1.kt")
public void test10_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/callables-and-invoke-convention/p-2/pos/10.1.kt");
}
+ @Test
@TestMetadata("8.1.kt")
public void test8_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/callables-and-invoke-convention/p-2/pos/8.1.kt");
}
+ @Test
@TestMetadata("9.1.kt")
public void test9_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/callables-and-invoke-convention/p-2/pos/9.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/callables-and-invoke-convention/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/callables-and-invoke-convention/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Choosing_the_most_specific_candidate_from_the_overload_candidate_set extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Choosing_the_most_specific_candidate_from_the_overload_candidate_set extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInChoosing_the_most_specific_candidate_from_the_overload_candidate_set() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Algorithm_of_msc_selection extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Algorithm_of_msc_selection extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInAlgorithm_of_msc_selection() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-11")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_11 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_11 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_11() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-11"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-11"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-11/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-11/pos/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-11/pos/1.2.kt");
}
+ @Test
@TestMetadata("4.1.kt")
public void test4_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-11/pos/4.1.kt");
}
+ @Test
@TestMetadata("4.2.kt")
public void test4_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-11/pos/4.2.kt");
}
+ @Test
@TestMetadata("4.3.kt")
public void test4_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-11/pos/4.3.kt");
}
+ @Test
@TestMetadata("4.4.kt")
public void test4_4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-11/pos/4.4.kt");
}
+ @Test
@TestMetadata("4.5.kt")
public void test4_5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-11/pos/4.5.kt");
}
+ @Test
@TestMetadata("5.1.kt")
public void test5_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-11/pos/5.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-11/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-11/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-12")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_12 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_12 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_12() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-12"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-12"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-12/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-12/pos/2.1.kt");
}
+ @Test
@TestMetadata("2.2.kt")
public void test2_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-12/pos/2.2.kt");
}
+ @Test
@TestMetadata("2.3.kt")
public void test2_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-12/pos/2.3.kt");
}
+ @Test
@TestMetadata("2.4.kt")
public void test2_4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-12/pos/2.4.kt");
}
+ @Test
@TestMetadata("2.5.kt")
public void test2_5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-12/pos/2.5.kt");
}
+ @Test
@TestMetadata("2.6.kt")
public void test2_6() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-12/pos/2.6.kt");
}
+ @Test
@TestMetadata("2.7.kt")
public void test2_7() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-12/pos/2.7.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-12/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-12/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-14")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_14 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_14 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_14() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-14"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-14"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-14/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-14/neg/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-14/neg/1.2.kt");
}
+ @Test
@TestMetadata("1.3.kt")
public void test1_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-14/neg/1.3.kt");
}
+ @Test
@TestMetadata("1.4.kt")
public void test1_4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-14/neg/1.4.kt");
}
+ @Test
@TestMetadata("1.5.kt")
public void test1_5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-14/neg/1.5.kt");
}
+ @Test
@TestMetadata("1.6.kt")
public void test1_6() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-14/neg/1.6.kt");
}
+ @Test
@TestMetadata("1.7.kt")
public void test1_7() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-14/neg/1.7.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-14/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-14/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-17")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_17 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_17 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_17() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-17"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-17"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-17/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-17/neg/2.1.kt");
}
+ @Test
@TestMetadata("2.2.kt")
public void test2_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-17/neg/2.2.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-17/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-17/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-3")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_3 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_3 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_3() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-3"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-3"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-3/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-3/pos/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-3/pos/1.2.kt");
}
+ @Test
@TestMetadata("1.3.kt")
public void test1_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-3/pos/1.3.kt");
}
+ @Test
@TestMetadata("1.4.kt")
public void test1_4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-3/pos/1.4.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-3/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-3/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-9")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_9 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_9 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_9() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-9"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-9"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-9/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-9/neg/2.1.kt");
}
+ @Test
@TestMetadata("2.2.kt")
public void test2_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-9/neg/2.2.kt");
}
+ @Test
@TestMetadata("2.3.kt")
public void test2_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-9/neg/2.3.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-9/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-9/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-9/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-9/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-9/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/algorithm-of-msc-selection/p-9/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/rationale-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Rationale_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Rationale_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInRationale_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/rationale-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/rationale-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/rationale-1/p-2")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_2 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_2 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_2() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/rationale-1/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/rationale-1/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/rationale-1/p-2/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/rationale-1/p-2/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/rationale-1/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/rationale-1/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/rationale-1/p-3")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_3 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_3 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_3() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/rationale-1/p-3"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/rationale-1/p-3"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/rationale-1/p-3/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/rationale-1/p-3/neg/1.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/rationale-1/p-3/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/choosing-the-most-specific-candidate-from-the-overload-candidate-set/rationale-1/p-3/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/determining-function-applicability-for-a-specific-call")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Determining_function_applicability_for_a_specific_call extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Determining_function_applicability_for_a_specific_call extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInDetermining_function_applicability_for_a_specific_call() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/determining-function-applicability-for-a-specific-call"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "rationale");
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/determining-function-applicability-for-a-specific-call"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "rationale");
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/determining-function-applicability-for-a-specific-call/description")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Description extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Description extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInDescription() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/determining-function-applicability-for-a-specific-call/description"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/determining-function-applicability-for-a-specific-call/description"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/determining-function-applicability-for-a-specific-call/description/p-2")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_2 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_2 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_2() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/determining-function-applicability-for-a-specific-call/description/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/determining-function-applicability-for-a-specific-call/description/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/determining-function-applicability-for-a-specific-call/description/p-2/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/determining-function-applicability-for-a-specific-call/description/p-2/neg/2.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/determining-function-applicability-for-a-specific-call/description/p-2/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/determining-function-applicability-for-a-specific-call/description/p-2/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/receivers")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Receivers extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Receivers extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInReceivers() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/receivers"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/receivers"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/receivers/p-5")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_5 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_5 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_5() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/receivers/p-5"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/receivers/p-5"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/receivers/p-5/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/receivers/p-5/pos/2.1.kt");
}
+ @Test
@TestMetadata("3.1.kt")
public void test3_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/receivers/p-5/pos/3.1.kt");
}
+ @Test
@TestMetadata("5.1.kt")
public void test5_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/receivers/p-5/pos/5.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/receivers/p-5/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/receivers/p-5/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Resolving_callable_references extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Resolving_callable_references extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInResolving_callable_references() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/bidirectional-resolution-for-callable-calls")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Bidirectional_resolution_for_callable_calls extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Bidirectional_resolution_for_callable_calls extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInBidirectional_resolution_for_callable_calls() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/bidirectional-resolution-for-callable-calls"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/bidirectional-resolution-for-callable-calls"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/bidirectional-resolution-for-callable-calls/p-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/bidirectional-resolution-for-callable-calls/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/bidirectional-resolution-for-callable-calls/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/bidirectional-resolution-for-callable-calls/p-1/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/bidirectional-resolution-for-callable-calls/p-1/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/bidirectional-resolution-for-callable-calls/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/bidirectional-resolution-for-callable-calls/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/bidirectional-resolution-for-callable-calls/p-3")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_3 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_3 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_3() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/bidirectional-resolution-for-callable-calls/p-3"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/bidirectional-resolution-for-callable-calls/p-3"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/bidirectional-resolution-for-callable-calls/p-3/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/bidirectional-resolution-for-callable-calls/p-3/neg/1.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/bidirectional-resolution-for-callable-calls/p-3/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/bidirectional-resolution-for-callable-calls/p-3/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/bidirectional-resolution-for-callable-calls/p-3/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/bidirectional-resolution-for-callable-calls/p-3/pos/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/bidirectional-resolution-for-callable-calls/p-3/pos/1.2.kt");
}
+ @Test
@TestMetadata("1.3.kt")
public void test1_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/bidirectional-resolution-for-callable-calls/p-3/pos/1.3.kt");
}
+ @Test
@TestMetadata("1.4.kt")
public void test1_4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/bidirectional-resolution-for-callable-calls/p-3/pos/1.4.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/bidirectional-resolution-for-callable-calls/p-3/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/bidirectional-resolution-for-callable-calls/p-3/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/p-2")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_2 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_2 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_2() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/p-2/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/p-2/pos/2.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/resolving-callable-references-not-used-as-arguments-to-a-call")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Resolving_callable_references_not_used_as_arguments_to_a_call extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Resolving_callable_references_not_used_as_arguments_to_a_call extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInResolving_callable_references_not_used_as_arguments_to_a_call() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/resolving-callable-references-not-used-as-arguments-to-a-call"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/resolving-callable-references-not-used-as-arguments-to-a-call"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/resolving-callable-references-not-used-as-arguments-to-a-call/p-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/resolving-callable-references-not-used-as-arguments-to-a-call/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/resolving-callable-references-not-used-as-arguments-to-a-call/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/resolving-callable-references-not-used-as-arguments-to-a-call/p-1/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/resolving-callable-references-not-used-as-arguments-to-a-call/p-1/neg/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/resolving-callable-references-not-used-as-arguments-to-a-call/p-1/neg/1.2.kt");
}
+ @Test
@TestMetadata("1.3.kt")
public void test1_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/resolving-callable-references-not-used-as-arguments-to-a-call/p-1/neg/1.3.kt");
}
+ @Test
@TestMetadata("1.4.kt")
public void test1_4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/resolving-callable-references-not-used-as-arguments-to-a-call/p-1/neg/1.4.kt");
}
+ @Test
@TestMetadata("1.5.kt")
public void test1_5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/resolving-callable-references-not-used-as-arguments-to-a-call/p-1/neg/1.5.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/resolving-callable-references-not-used-as-arguments-to-a-call/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/resolving-callable-references-not-used-as-arguments-to-a-call/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/resolving-callable-references-not-used-as-arguments-to-a-call/p-1/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/resolving-callable-references-not-used-as-arguments-to-a-call/p-1/pos/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/resolving-callable-references-not-used-as-arguments-to-a-call/p-1/pos/1.2.kt");
}
+ @Test
@TestMetadata("1.3.kt")
public void test1_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/resolving-callable-references-not-used-as-arguments-to-a-call/p-1/pos/1.3.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/resolving-callable-references-not-used-as-arguments-to-a-call/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/overload-resolution/resolving-callable-references/resolving-callable-references-not-used-as-arguments-to-a-call/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
@@ -5371,317 +4937,263 @@ public class FirDiagnosticsTestSpecGenerated extends AbstractFirDiagnosticsTestS
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/statements")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Statements extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Statements extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInStatements() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "assignments/simple-assignments");
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "assignments/simple-assignments");
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/statements/assignments")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Assignments extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Assignments extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInAssignments() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/assignments"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "simple-assignments");
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/assignments"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "simple-assignments");
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/statements/assignments/operator-assignments")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Operator_assignments extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Operator_assignments extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInOperator_assignments() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/assignments/operator-assignments"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/assignments/operator-assignments"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/statements/assignments/operator-assignments/p-2")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_2 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_2 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_2() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/assignments/operator-assignments/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/assignments/operator-assignments/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/statements/assignments/operator-assignments/p-2/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/statements/assignments/operator-assignments/p-2/neg/1.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/assignments/operator-assignments/p-2/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/assignments/operator-assignments/p-2/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/statements/assignments/operator-assignments/p-2/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/statements/assignments/operator-assignments/p-2/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/assignments/operator-assignments/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/assignments/operator-assignments/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/statements/assignments/p-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/assignments/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/assignments/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/statements/assignments/p-1/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/statements/assignments/p-1/neg/2.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/assignments/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/assignments/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/statements/assignments/p-2")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_2 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_2 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_2() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/assignments/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/assignments/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/statements/assignments/p-2/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/statements/assignments/p-2/neg/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/statements/assignments/p-2/neg/1.2.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/assignments/p-2/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/assignments/p-2/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Loop_statements extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Loop_statements extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInLoop_statements() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/do-while-loop-statement")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Do_while_loop_statement extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Do_while_loop_statement extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInDo_while_loop_statement() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/do-while-loop-statement"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/do-while-loop-statement"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/do-while-loop-statement/p-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/do-while-loop-statement/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/do-while-loop-statement/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/do-while-loop-statement/p-1/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/do-while-loop-statement/p-1/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/do-while-loop-statement/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/do-while-loop-statement/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/do-while-loop-statement/p-3")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_3 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_3 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_3() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/do-while-loop-statement/p-3"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/do-while-loop-statement/p-3"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/do-while-loop-statement/p-3/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/do-while-loop-statement/p-3/neg/1.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/do-while-loop-statement/p-3/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/do-while-loop-statement/p-3/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/while-loop-statement")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class While_loop_statement extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class While_loop_statement extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInWhile_loop_statement() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/while-loop-statement"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/while-loop-statement"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/while-loop-statement/p-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/while-loop-statement/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/while-loop-statement/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/while-loop-statement/p-1/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/while-loop-statement/p-1/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/while-loop-statement/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/while-loop-statement/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/while-loop-statement/p-3")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_3 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_3 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_3() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/while-loop-statement/p-3"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/while-loop-statement/p-3"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/while-loop-statement/p-3/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/while-loop-statement/p-3/neg/1.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/while-loop-statement/p-3/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/statements/loop-statements/while-loop-statement/p-3/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
@@ -5689,87 +5201,71 @@ public class FirDiagnosticsTestSpecGenerated extends AbstractFirDiagnosticsTestS
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-inference")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Type_inference extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Type_inference extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInType_inference() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-inference"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "local-type-inference", "smart-casts/smart-cast-types");
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-inference"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "local-type-inference", "smart-casts/smart-cast-types");
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-inference/smart-casts")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Smart_casts extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Smart_casts extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInSmart_casts() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-inference/smart-casts"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "smart-cast-types");
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-inference/smart-casts"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "smart-cast-types");
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-inference/smart-casts/smart-cast-sink-stability")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Smart_cast_sink_stability extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Smart_cast_sink_stability extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInSmart_cast_sink_stability() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-inference/smart-casts/smart-cast-sink-stability"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-inference/smart-casts/smart-cast-sink-stability"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-inference/smart-casts/smart-cast-sink-stability/p-5")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_5 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_5 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_5() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-inference/smart-casts/smart-cast-sink-stability/p-5"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-inference/smart-casts/smart-cast-sink-stability/p-5"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-inference/smart-casts/smart-cast-sink-stability/p-5/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/type-inference/smart-casts/smart-cast-sink-stability/p-5/neg/1.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-inference/smart-casts/smart-cast-sink-stability/p-5/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-inference/smart-casts/smart-cast-sink-stability/p-5/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-inference/smart-casts/smart-cast-sink-stability/p-5/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/type-inference/smart-casts/smart-cast-sink-stability/p-5/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-inference/smart-casts/smart-cast-sink-stability/p-5/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-inference/smart-casts/smart-cast-sink-stability/p-5/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
@@ -5777,444 +5273,382 @@ public class FirDiagnosticsTestSpecGenerated extends AbstractFirDiagnosticsTestS
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-system")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Type_system extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Type_system extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInType_system() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "subtyping/subtyping-for-nullable-types", "type-kinds/type-parameters");
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "subtyping/subtyping-for-nullable-types", "type-kinds/type-parameters");
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-system/introduction-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Introduction_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Introduction_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInIntroduction_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/introduction-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/introduction-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-system/introduction-1/p-6")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_6 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_6 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_6() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/introduction-1/p-6"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/introduction-1/p-6"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-system/introduction-1/p-6/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/type-system/introduction-1/p-6/neg/2.1.kt");
}
+ @Test
@TestMetadata("2.2.kt")
public void test2_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/type-system/introduction-1/p-6/neg/2.2.kt");
}
+ @Test
@TestMetadata("2.3.kt")
public void test2_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/type-system/introduction-1/p-6/neg/2.3.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/introduction-1/p-6/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/introduction-1/p-6/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-system/introduction-1/p-8")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_8 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_8 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_8() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/introduction-1/p-8"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/introduction-1/p-8"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-system/introduction-1/p-8/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/type-system/introduction-1/p-8/pos/1.1.kt");
}
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/type-system/introduction-1/p-8/pos/2.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/introduction-1/p-8/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/introduction-1/p-8/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-system/subtyping")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Subtyping extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Subtyping extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInSubtyping() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/subtyping"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "subtyping-for-nullable-types");
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/subtyping"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "subtyping-for-nullable-types");
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-system/subtyping/subtyping-for-intersection-types")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Subtyping_for_intersection_types extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Subtyping_for_intersection_types extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInSubtyping_for_intersection_types() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/subtyping/subtyping-for-intersection-types"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/subtyping/subtyping-for-intersection-types"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-system/subtyping/subtyping-for-intersection-types/p-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/subtyping/subtyping-for-intersection-types/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/subtyping/subtyping-for-intersection-types/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-system/subtyping/subtyping-for-intersection-types/p-1/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/type-system/subtyping/subtyping-for-intersection-types/p-1/pos/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/type-system/subtyping/subtyping-for-intersection-types/p-1/pos/1.2.kt");
}
+ @Test
@TestMetadata("1.3.kt")
public void test1_3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/type-system/subtyping/subtyping-for-intersection-types/p-1/pos/1.3.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/subtyping/subtyping-for-intersection-types/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/subtyping/subtyping-for-intersection-types/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-system/subtyping/subtyping-rules")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Subtyping_rules extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Subtyping_rules extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInSubtyping_rules() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/subtyping/subtyping-rules"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/subtyping/subtyping-rules"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-system/subtyping/subtyping-rules/p-2")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_2 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_2 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_2() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/subtyping/subtyping-rules/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/subtyping/subtyping-rules/p-2"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-system/subtyping/subtyping-rules/p-2/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/type-system/subtyping/subtyping-rules/p-2/pos/1.1.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/subtyping/subtyping-rules/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/subtyping/subtyping-rules/p-2/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-system/type-contexts-and-scopes")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Type_contexts_and_scopes extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Type_contexts_and_scopes extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInType_contexts_and_scopes() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/type-contexts-and-scopes"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/type-contexts-and-scopes"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-system/type-contexts-and-scopes/inner-and-nested-type-contexts")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Inner_and_nested_type_contexts extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Inner_and_nested_type_contexts extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInInner_and_nested_type_contexts() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/type-contexts-and-scopes/inner-and-nested-type-contexts"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/type-contexts-and-scopes/inner-and-nested-type-contexts"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-system/type-contexts-and-scopes/inner-and-nested-type-contexts/p-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/type-contexts-and-scopes/inner-and-nested-type-contexts/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/type-contexts-and-scopes/inner-and-nested-type-contexts/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-system/type-contexts-and-scopes/inner-and-nested-type-contexts/p-1/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/type-system/type-contexts-and-scopes/inner-and-nested-type-contexts/p-1/neg/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/type-system/type-contexts-and-scopes/inner-and-nested-type-contexts/p-1/neg/1.2.kt");
}
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/type-system/type-contexts-and-scopes/inner-and-nested-type-contexts/p-1/neg/2.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/type-contexts-and-scopes/inner-and-nested-type-contexts/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/type-contexts-and-scopes/inner-and-nested-type-contexts/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-system/type-contexts-and-scopes/inner-and-nested-type-contexts/p-1/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/type-system/type-contexts-and-scopes/inner-and-nested-type-contexts/p-1/pos/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/type-system/type-contexts-and-scopes/inner-and-nested-type-contexts/p-1/pos/1.2.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/type-contexts-and-scopes/inner-and-nested-type-contexts/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/type-contexts-and-scopes/inner-and-nested-type-contexts/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Type_kinds extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Type_kinds extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInType_kinds() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "type-parameters");
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true, "type-parameters");
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Built_in_types extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Built_in_types extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInBuilt_in_types() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.any")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Kotlin_any extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Kotlin_any extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInKotlin_any() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.any"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.any"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.any/p-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.any/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.any/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.any/p-1/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.any/p-1/pos/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.any/p-1/pos/1.2.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.any/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.any/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.nothing")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Kotlin_nothing extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Kotlin_nothing extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInKotlin_nothing() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.nothing"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.nothing"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.nothing/p-1")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class P_1 extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class P_1 extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInP_1() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.nothing/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.nothing/p-1"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.nothing/p-1/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("2.1.kt")
public void test2_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.nothing/p-1/neg/2.1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.nothing/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.nothing/p-1/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.nothing/p-1/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.1.kt")
public void test1_1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.nothing/p-1/pos/1.1.kt");
}
+ @Test
@TestMetadata("1.2.kt")
public void test1_2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.nothing/p-1/pos/1.2.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.nothing/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/linked/type-system/type-kinds/built-in-types/kotlin.nothing/p-1/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
@@ -6224,1804 +5658,1885 @@ public class FirDiagnosticsTestSpecGenerated extends AbstractFirDiagnosticsTestS
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class NotLinked extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class NotLinked extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInNotLinked() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/annotations")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Annotations extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Annotations extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInAnnotations() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/annotations"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/annotations"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/annotations/annotation-classes")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Annotation_classes extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Annotation_classes extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInAnnotation_classes() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/annotations/annotation-classes"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/annotations/annotation-classes"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/annotations/annotation-classes/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.kt")
public void test1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/annotations/annotation-classes/neg/1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/annotations/annotation-classes/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/annotations/annotation-classes/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Type_annotations extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Type_annotations extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInType_annotations() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.kt")
public void test1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/1.kt");
}
+ @Test
@TestMetadata("10.kt")
public void test10() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/10.kt");
}
+ @Test
@TestMetadata("11.kt")
public void test11() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/11.kt");
}
+ @Test
@TestMetadata("2.kt")
public void test2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/2.kt");
}
+ @Test
@TestMetadata("3.kt")
public void test3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/3.kt");
}
+ @Test
@TestMetadata("4.kt")
public void test4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/4.kt");
}
+ @Test
@TestMetadata("5.kt")
public void test5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/5.kt");
}
+ @Test
@TestMetadata("6.kt")
public void test6() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/6.kt");
}
+ @Test
@TestMetadata("7.kt")
public void test7() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/7.kt");
}
+ @Test
@TestMetadata("8.kt")
public void test8() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/8.kt");
}
+ @Test
@TestMetadata("9.kt")
public void test9() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/9.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/coercion-to-unit")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Coercion_to_unit extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Coercion_to_unit extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInCoercion_to_unit() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/coercion-to-unit"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/coercion-to-unit"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/coercion-to-unit/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.kt")
public void test1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/coercion-to-unit/neg/1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/coercion-to-unit/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/coercion-to-unit/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/contracts")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Contracts extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Contracts extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInContracts() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Analysis extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Analysis extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInAnalysis() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/common")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Common extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Common extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInCommon() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/common"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/common"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/common/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.kt")
public void test1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/common/neg/1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/common/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/common/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/common/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.kt")
public void test1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/common/pos/1.kt");
}
+ @Test
@TestMetadata("2.kt")
public void test2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/common/pos/2.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/common/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/common/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class ControlFlow extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class ControlFlow extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInControlFlow() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/initialization")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Initialization extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Initialization extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInInitialization() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/initialization"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/initialization"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/initialization/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.kt")
public void test1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/initialization/neg/1.kt");
}
+ @Test
@TestMetadata("2.kt")
public void test2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/initialization/neg/2.kt");
}
+ @Test
@TestMetadata("3.kt")
public void test3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/initialization/neg/3.kt");
}
+ @Test
@TestMetadata("4.kt")
public void test4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/initialization/neg/4.kt");
}
+ @Test
@TestMetadata("5.kt")
public void test5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/initialization/neg/5.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/initialization/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/initialization/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/initialization/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.kt")
public void test1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/initialization/pos/1.kt");
}
+ @Test
@TestMetadata("2.kt")
public void test2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/initialization/pos/2.kt");
}
+ @Test
@TestMetadata("3.kt")
public void test3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/initialization/pos/3.kt");
}
+ @Test
@TestMetadata("4.kt")
public void test4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/initialization/pos/4.kt");
}
+ @Test
@TestMetadata("5.kt")
public void test5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/initialization/pos/5.kt");
}
+ @Test
@TestMetadata("6.kt")
public void test6() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/initialization/pos/6.kt");
}
+ @Test
@TestMetadata("7.kt")
public void test7() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/initialization/pos/7.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/initialization/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/initialization/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/unreachableCode")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class UnreachableCode extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class UnreachableCode extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInUnreachableCode() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/unreachableCode"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/unreachableCode"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/unreachableCode/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.kt")
public void test1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/unreachableCode/neg/1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/unreachableCode/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/unreachableCode/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/unreachableCode/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.kt")
public void test1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/unreachableCode/pos/1.kt");
}
+ @Test
@TestMetadata("2.kt")
public void test2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/unreachableCode/pos/2.kt");
}
+ @Test
@TestMetadata("3.kt")
public void test3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/unreachableCode/pos/3.kt");
}
+ @Test
@TestMetadata("4.kt")
public void test4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/unreachableCode/pos/4.kt");
}
+ @Test
@TestMetadata("5.kt")
public void test5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/unreachableCode/pos/5.kt");
}
+ @Test
@TestMetadata("6.kt")
public void test6() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/unreachableCode/pos/6.kt");
}
+ @Test
@TestMetadata("7.kt")
public void test7() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/unreachableCode/pos/7.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/unreachableCode/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/unreachableCode/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Smartcasts extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Smartcasts extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInSmartcasts() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.kt")
public void test1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/1.kt");
}
+ @Test
@TestMetadata("10.kt")
public void test10() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/10.kt");
}
+ @Test
@TestMetadata("11.kt")
public void test11() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/11.kt");
}
+ @Test
@TestMetadata("12.kt")
public void test12() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/12.kt");
}
+ @Test
@TestMetadata("13.kt")
public void test13() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/13.kt");
}
+ @Test
@TestMetadata("14.kt")
public void test14() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/14.kt");
}
+ @Test
@TestMetadata("15.kt")
public void test15() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/15.kt");
}
+ @Test
@TestMetadata("2.kt")
public void test2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/2.kt");
}
+ @Test
@TestMetadata("3.kt")
public void test3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/3.kt");
}
+ @Test
@TestMetadata("4.kt")
public void test4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/4.kt");
}
+ @Test
@TestMetadata("5.kt")
public void test5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/5.kt");
}
+ @Test
@TestMetadata("6.kt")
public void test6() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/6.kt");
}
+ @Test
@TestMetadata("7.kt")
public void test7() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/7.kt");
}
+ @Test
@TestMetadata("8.kt")
public void test8() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/8.kt");
}
+ @Test
@TestMetadata("9.kt")
public void test9() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg/9.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.kt")
public void test1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/1.kt");
}
+ @Test
@TestMetadata("10.kt")
public void test10() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/10.kt");
}
+ @Test
@TestMetadata("11.kt")
public void test11() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/11.kt");
}
+ @Test
@TestMetadata("12.kt")
public void test12() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/12.kt");
}
+ @Test
@TestMetadata("13.kt")
public void test13() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/13.kt");
}
+ @Test
@TestMetadata("14.kt")
public void test14() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/14.kt");
}
+ @Test
@TestMetadata("2.kt")
public void test2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/2.kt");
}
+ @Test
@TestMetadata("3.kt")
public void test3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/3.kt");
}
+ @Test
@TestMetadata("4.kt")
public void test4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/4.kt");
}
+ @Test
@TestMetadata("5.kt")
public void test5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/5.kt");
}
+ @Test
@TestMetadata("6.kt")
public void test6() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/6.kt");
}
+ @Test
@TestMetadata("7.kt")
public void test7() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/7.kt");
}
+ @Test
@TestMetadata("8.kt")
public void test8() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/8.kt");
}
+ @Test
@TestMetadata("9.kt")
public void test9() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/9.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Declarations extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Declarations extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInDeclarations() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class ContractBuilder extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class ContractBuilder extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInContractBuilder() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Common extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Common extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInCommon() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.kt")
public void test1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/1.kt");
}
+ @Test
@TestMetadata("10.kt")
public void test10() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/10.kt");
}
+ @Test
@TestMetadata("11.kt")
public void test11() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/11.kt");
}
+ @Test
@TestMetadata("12.kt")
public void test12() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/12.kt");
}
+ @Test
@TestMetadata("13.kt")
public void test13() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/13.kt");
}
+ @Test
@TestMetadata("14.kt")
public void test14() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/14.kt");
}
+ @Test
@TestMetadata("15.kt")
public void test15() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/15.kt");
}
+ @Test
@TestMetadata("16.kt")
public void test16() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/16.kt");
}
+ @Test
@TestMetadata("17.kt")
public void test17() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/17.kt");
}
+ @Test
@TestMetadata("19.kt")
public void test19() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/19.kt");
}
+ @Test
@TestMetadata("2.kt")
public void test2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/2.kt");
}
+ @Test
@TestMetadata("3.kt")
public void test3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/3.kt");
}
+ @Test
@TestMetadata("4.kt")
public void test4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/4.kt");
}
+ @Test
@TestMetadata("5.kt")
public void test5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/5.kt");
}
+ @Test
@TestMetadata("6.kt")
public void test6() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/6.kt");
}
+ @Test
@TestMetadata("7.kt")
public void test7() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/7.kt");
}
+ @Test
@TestMetadata("8.kt")
public void test8() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/8.kt");
}
+ @Test
@TestMetadata("9.kt")
public void test9() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg/9.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.kt")
public void test1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/pos/1.kt");
}
+ @Test
@TestMetadata("2.kt")
public void test2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/pos/2.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/common/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Effects extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Effects extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInEffects() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/callsInPlace")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class CallsInPlace extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class CallsInPlace extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInCallsInPlace() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/callsInPlace"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/callsInPlace"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/callsInPlace/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.kt")
public void test1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/callsInPlace/neg/1.kt");
}
+ @Test
@TestMetadata("2.kt")
public void test2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/callsInPlace/neg/2.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/callsInPlace/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/callsInPlace/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/callsInPlace/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.kt")
public void test1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/callsInPlace/pos/1.kt");
}
+ @Test
@TestMetadata("2.kt")
public void test2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/callsInPlace/pos/2.kt");
}
+ @Test
@TestMetadata("3.kt")
public void test3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/callsInPlace/pos/3.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/callsInPlace/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/callsInPlace/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/common")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Common extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Common extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInCommon() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/common"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/common"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/common/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.kt")
public void test1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/common/neg/1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/common/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/common/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/returns")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Returns extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Returns extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInReturns() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/returns"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/returns"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/returns/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.kt")
public void test1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/returns/neg/1.kt");
}
+ @Test
@TestMetadata("2.kt")
public void test2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/returns/neg/2.kt");
}
+ @Test
@TestMetadata("3.kt")
public void test3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/returns/neg/3.kt");
}
+ @Test
@TestMetadata("4.kt")
public void test4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/returns/neg/4.kt");
}
+ @Test
@TestMetadata("5.kt")
public void test5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/returns/neg/5.kt");
}
+ @Test
@TestMetadata("6.kt")
public void test6() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/returns/neg/6.kt");
}
+ @Test
@TestMetadata("7.kt")
public void test7() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/returns/neg/7.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/returns/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/returns/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/returns/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.kt")
public void test1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/returns/pos/1.kt");
}
+ @Test
@TestMetadata("2.kt")
public void test2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/returns/pos/2.kt");
}
+ @Test
@TestMetadata("3.kt")
public void test3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/returns/pos/3.kt");
}
+ @Test
@TestMetadata("4.kt")
public void test4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/returns/pos/4.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/returns/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractBuilder/effects/returns/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractFunction")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class ContractFunction extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class ContractFunction extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInContractFunction() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractFunction"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractFunction"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractFunction/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.kt")
public void test1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractFunction/neg/1.kt");
}
+ @Test
@TestMetadata("2.kt")
public void test2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractFunction/neg/2.kt");
}
+ @Test
@TestMetadata("3.kt")
public void test3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractFunction/neg/3.kt");
}
+ @Test
@TestMetadata("4.kt")
public void test4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractFunction/neg/4.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractFunction/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractFunction/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractFunction/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.kt")
public void test1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractFunction/pos/1.kt");
}
+ @Test
@TestMetadata("2.kt")
public void test2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractFunction/pos/2.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractFunction/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/contracts/declarations/contractFunction/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/dfa")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Dfa extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Dfa extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInDfa() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/dfa"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/dfa"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.kt")
public void test1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/1.kt");
}
+ @Test
@TestMetadata("10.kt")
public void test10() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/10.kt");
}
+ @Test
@TestMetadata("11.kt")
public void test11() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/11.kt");
}
+ @Test
@TestMetadata("12.kt")
public void test12() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/12.kt");
}
+ @Test
@TestMetadata("13.kt")
public void test13() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/13.kt");
}
+ @Test
@TestMetadata("14.kt")
public void test14() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/14.kt");
}
+ @Test
@TestMetadata("15.kt")
public void test15() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/15.kt");
}
+ @Test
@TestMetadata("16.kt")
public void test16() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/16.kt");
}
+ @Test
@TestMetadata("17.kt")
public void test17() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/17.kt");
}
+ @Test
@TestMetadata("18.kt")
public void test18() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/18.kt");
}
+ @Test
@TestMetadata("19.kt")
public void test19() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/19.kt");
}
+ @Test
@TestMetadata("2.kt")
public void test2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/2.kt");
}
+ @Test
@TestMetadata("20.kt")
public void test20() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/20.kt");
}
+ @Test
@TestMetadata("21.kt")
public void test21() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/21.kt");
}
+ @Test
@TestMetadata("22.kt")
public void test22() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/22.kt");
}
+ @Test
@TestMetadata("23.kt")
public void test23() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/23.kt");
}
+ @Test
@TestMetadata("24.kt")
public void test24() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/24.kt");
}
+ @Test
@TestMetadata("25.kt")
public void test25() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/25.kt");
}
+ @Test
@TestMetadata("26.kt")
public void test26() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/26.kt");
}
+ @Test
@TestMetadata("27.kt")
public void test27() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/27.kt");
}
+ @Test
@TestMetadata("28.kt")
public void test28() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/28.kt");
}
+ @Test
@TestMetadata("29.kt")
public void test29() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/29.kt");
}
+ @Test
@TestMetadata("3.kt")
public void test3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/3.kt");
}
+ @Test
@TestMetadata("30.kt")
public void test30() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/30.kt");
}
+ @Test
@TestMetadata("31.kt")
public void test31() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/31.kt");
}
+ @Test
@TestMetadata("32.kt")
public void test32() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/32.kt");
}
+ @Test
@TestMetadata("33.kt")
public void test33() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/33.kt");
}
+ @Test
@TestMetadata("34.kt")
public void test34() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/34.kt");
}
+ @Test
@TestMetadata("35.kt")
public void test35() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/35.kt");
}
+ @Test
@TestMetadata("36.kt")
public void test36() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/36.kt");
}
+ @Test
@TestMetadata("37.kt")
public void test37() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/37.kt");
}
+ @Test
@TestMetadata("38.kt")
public void test38() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/38.kt");
}
+ @Test
@TestMetadata("39.kt")
public void test39() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/39.kt");
}
+ @Test
@TestMetadata("4.kt")
public void test4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/4.kt");
}
+ @Test
@TestMetadata("40.kt")
public void test40() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/40.kt");
}
+ @Test
@TestMetadata("41.kt")
public void test41() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/41.kt");
}
+ @Test
@TestMetadata("42.kt")
public void test42() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/42.kt");
}
+ @Test
@TestMetadata("43.kt")
public void test43() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/43.kt");
}
+ @Test
@TestMetadata("44.kt")
public void test44() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/44.kt");
}
+ @Test
@TestMetadata("45.kt")
public void test45() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/45.kt");
}
+ @Test
@TestMetadata("5.kt")
public void test5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/5.kt");
}
+ @Test
@TestMetadata("6.kt")
public void test6() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/6.kt");
}
+ @Test
@TestMetadata("7.kt")
public void test7() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/7.kt");
}
+ @Test
@TestMetadata("8.kt")
public void test8() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/8.kt");
}
+ @Test
@TestMetadata("9.kt")
public void test9() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/9.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.kt")
public void test1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/1.kt");
}
+ @Test
@TestMetadata("10.kt")
public void test10() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/10.kt");
}
+ @Test
@TestMetadata("11.kt")
public void test11() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/11.kt");
}
+ @Test
@TestMetadata("12.kt")
public void test12() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/12.kt");
}
+ @Test
@TestMetadata("13.kt")
public void test13() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/13.kt");
}
+ @Test
@TestMetadata("14.kt")
public void test14() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/14.kt");
}
+ @Test
@TestMetadata("15.kt")
public void test15() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/15.kt");
}
+ @Test
@TestMetadata("16.kt")
public void test16() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/16.kt");
}
+ @Test
@TestMetadata("17.kt")
public void test17() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/17.kt");
}
+ @Test
@TestMetadata("18.kt")
public void test18() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/18.kt");
}
+ @Test
@TestMetadata("19.kt")
public void test19() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/19.kt");
}
+ @Test
@TestMetadata("2.kt")
public void test2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/2.kt");
}
+ @Test
@TestMetadata("20.kt")
public void test20() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/20.kt");
}
+ @Test
@TestMetadata("21.kt")
public void test21() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/21.kt");
}
+ @Test
@TestMetadata("22.kt")
public void test22() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/22.kt");
}
+ @Test
@TestMetadata("23.kt")
public void test23() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/23.kt");
}
+ @Test
@TestMetadata("24.kt")
public void test24() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/24.kt");
}
+ @Test
@TestMetadata("25.kt")
public void test25() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/25.kt");
}
+ @Test
@TestMetadata("26.kt")
public void test26() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/26.kt");
}
+ @Test
@TestMetadata("27.kt")
public void test27() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/27.kt");
}
+ @Test
@TestMetadata("28.kt")
public void test28() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/28.kt");
}
+ @Test
@TestMetadata("29.kt")
public void test29() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/29.kt");
}
+ @Test
@TestMetadata("3.kt")
public void test3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/3.kt");
}
+ @Test
@TestMetadata("30.kt")
public void test30() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/30.kt");
}
+ @Test
@TestMetadata("31.kt")
public void test31() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/31.kt");
}
+ @Test
@TestMetadata("32.kt")
public void test32() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/32.kt");
}
+ @Test
@TestMetadata("33.kt")
public void test33() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/33.kt");
}
+ @Test
@TestMetadata("34.kt")
public void test34() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/34.kt");
}
+ @Test
@TestMetadata("35.kt")
public void test35() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/35.kt");
}
+ @Test
@TestMetadata("36.kt")
public void test36() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/36.kt");
}
+ @Test
@TestMetadata("37.kt")
public void test37() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/37.kt");
}
+ @Test
@TestMetadata("38.kt")
public void test38() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/38.kt");
}
+ @Test
@TestMetadata("39.kt")
public void test39() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/39.kt");
}
+ @Test
@TestMetadata("4.kt")
public void test4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/4.kt");
}
+ @Test
@TestMetadata("40.kt")
public void test40() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/40.kt");
}
+ @Test
@TestMetadata("41.kt")
public void test41() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/41.kt");
}
+ @Test
@TestMetadata("42.kt")
public void test42() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/42.kt");
}
+ @Test
@TestMetadata("43.kt")
public void test43() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/43.kt");
}
+ @Test
@TestMetadata("44.kt")
public void test44() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/44.kt");
}
+ @Test
@TestMetadata("45.kt")
public void test45() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/45.kt");
}
+ @Test
@TestMetadata("46.kt")
public void test46() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/46.kt");
}
+ @Test
@TestMetadata("47.kt")
public void test47() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/47.kt");
}
+ @Test
@TestMetadata("48.kt")
public void test48() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/48.kt");
}
+ @Test
@TestMetadata("49.kt")
public void test49() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/49.kt");
}
+ @Test
@TestMetadata("5.kt")
public void test5() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/5.kt");
}
+ @Test
@TestMetadata("50.kt")
public void test50() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/50.kt");
}
+ @Test
@TestMetadata("51.kt")
public void test51() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/51.kt");
}
+ @Test
@TestMetadata("52.kt")
public void test52() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/52.kt");
}
+ @Test
@TestMetadata("53.kt")
public void test53() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/53.kt");
}
+ @Test
@TestMetadata("54.kt")
public void test54() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/54.kt");
}
+ @Test
@TestMetadata("55.kt")
public void test55() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/55.kt");
}
+ @Test
@TestMetadata("56.kt")
public void test56() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/56.kt");
}
+ @Test
@TestMetadata("57.kt")
public void test57() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/57.kt");
}
+ @Test
@TestMetadata("58.kt")
public void test58() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/58.kt");
}
+ @Test
@TestMetadata("59.kt")
public void test59() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/59.kt");
}
+ @Test
@TestMetadata("6.kt")
public void test6() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/6.kt");
}
+ @Test
@TestMetadata("60.kt")
public void test60() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/60.kt");
}
+ @Test
@TestMetadata("61.kt")
public void test61() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/61.kt");
}
+ @Test
@TestMetadata("62.kt")
public void test62() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/62.kt");
}
+ @Test
@TestMetadata("63.kt")
public void test63() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/63.kt");
}
+ @Test
@TestMetadata("64.kt")
public void test64() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/64.kt");
}
+ @Test
@TestMetadata("65.kt")
public void test65() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/65.kt");
}
+ @Test
@TestMetadata("66.kt")
public void test66() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/66.kt");
}
+ @Test
@TestMetadata("67.kt")
public void test67() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/67.kt");
}
+ @Test
@TestMetadata("68.kt")
public void test68() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/68.kt");
}
+ @Test
@TestMetadata("69.kt")
public void test69() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/69.kt");
}
+ @Test
@TestMetadata("7.kt")
public void test7() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/7.kt");
}
+ @Test
@TestMetadata("70.kt")
public void test70() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/70.kt");
}
+ @Test
@TestMetadata("71.kt")
public void test71() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/71.kt");
}
+ @Test
@TestMetadata("72.kt")
public void test72() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/72.kt");
}
+ @Test
@TestMetadata("73.kt")
public void test73() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/73.kt");
}
+ @Test
@TestMetadata("8.kt")
public void test8() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/8.kt");
}
+ @Test
@TestMetadata("9.kt")
public void test9() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/9.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/local-variables")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Local_variables extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Local_variables extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInLocal_variables() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/local-variables"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/local-variables"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/local-variables/type-parameters")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Type_parameters extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Type_parameters extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInType_parameters() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/local-variables/type-parameters"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/local-variables/type-parameters"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/local-variables/type-parameters/neg")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Neg extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Neg extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.kt")
public void test1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/local-variables/type-parameters/neg/1.kt");
}
+ @Test
public void testAllFilesPresentInNeg() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/local-variables/type-parameters/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/local-variables/type-parameters/neg"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/overload-resolution")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Overload_resolution extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Overload_resolution extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInOverload_resolution() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/overload-resolution"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/overload-resolution"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/overload-resolution/building-the-overload-candidate-set-ocs")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Building_the_overload_candidate_set_ocs extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Building_the_overload_candidate_set_ocs extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInBuilding_the_overload_candidate_set_ocs() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/overload-resolution/building-the-overload-candidate-set-ocs"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/overload-resolution/building-the-overload-candidate-set-ocs"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/overload-resolution/building-the-overload-candidate-set-ocs/infix-function-call")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Infix_function_call extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Infix_function_call extends AbstractFirDiagnosticTestSpec {
+ @Test
public void testAllFilesPresentInInfix_function_call() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/overload-resolution/building-the-overload-candidate-set-ocs/infix-function-call"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/overload-resolution/building-the-overload-candidate-set-ocs/infix-function-call"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Nested
@TestMetadata("compiler/tests-spec/testData/diagnostics/notLinked/overload-resolution/building-the-overload-candidate-set-ocs/infix-function-call/pos")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Pos extends AbstractFirDiagnosticsTestSpec {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
- }
-
+ public class Pos extends AbstractFirDiagnosticTestSpec {
+ @Test
@TestMetadata("1.kt")
public void test1() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/overload-resolution/building-the-overload-candidate-set-ocs/infix-function-call/pos/1.kt");
}
+ @Test
@TestMetadata("2.kt")
public void test2() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/overload-resolution/building-the-overload-candidate-set-ocs/infix-function-call/pos/2.kt");
}
+ @Test
@TestMetadata("3.kt")
public void test3() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/overload-resolution/building-the-overload-candidate-set-ocs/infix-function-call/pos/3.kt");
}
+ @Test
@TestMetadata("4.kt")
public void test4() throws Exception {
runTest("compiler/tests-spec/testData/diagnostics/notLinked/overload-resolution/building-the-overload-candidate-set-ocs/infix-function-call/pos/4.kt");
}
+ @Test
public void testAllFilesPresentInPos() throws Exception {
- org.jetbrains.kotlin.test.util.KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/overload-resolution/building-the-overload-candidate-set-ocs/infix-function-call/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/diagnostics/notLinked/overload-resolution/building-the-overload-candidate-set-ocs/infix-function-call/pos"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
}
}
diff --git a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirDiagnosticsWithLightTreeTestGenerated.java b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirDiagnosticsWithLightTreeTestGenerated.java
index d89ea750310..5715994f8f3 100644
--- a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirDiagnosticsWithLightTreeTestGenerated.java
+++ b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirDiagnosticsWithLightTreeTestGenerated.java
@@ -18,3580 +18,5036 @@ import java.util.regex.Pattern;
/** This class is generated by {@link GenerateNewCompilerTests.kt}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
-@TestMetadata("compiler/fir/analysis-tests/testData/resolve")
-@TestDataPath("$PROJECT_ROOT")
-@Execution(ExecutionMode.SAME_THREAD)
public class FirDiagnosticsWithLightTreeTestGenerated extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- public void testAllFilesPresentInResolve() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
- }
-
- @Test
- @TestMetadata("asImports.kt")
- public void testAsImports() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/asImports.kt");
- }
-
- @Test
- @TestMetadata("bareTypes.kt")
- public void testBareTypes() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/bareTypes.kt");
- }
-
- @Test
- @TestMetadata("bareTypes2.kt")
- public void testBareTypes2() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/bareTypes2.kt");
- }
-
- @Test
- @TestMetadata("bareTypesWithFlexibleArguments.kt")
- public void testBareTypesWithFlexibleArguments() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/bareTypesWithFlexibleArguments.kt");
- }
-
- @Test
- @TestMetadata("cast.kt")
- public void testCast() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/cast.kt");
- }
-
- @Test
- @TestMetadata("companion.kt")
- public void testCompanion() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/companion.kt");
- }
-
- @Test
- @TestMetadata("companionAccessInEnum.kt")
- public void testCompanionAccessInEnum() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/companionAccessInEnum.kt");
- }
-
- @Test
- @TestMetadata("companionObjectCall.kt")
- public void testCompanionObjectCall() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/companionObjectCall.kt");
- }
-
- @Test
- @TestMetadata("companionUsesNested.kt")
- public void testCompanionUsesNested() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/companionUsesNested.kt");
- }
-
- @Test
- @TestMetadata("constantValues.kt")
- public void testConstantValues() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/constantValues.kt");
- }
-
- @Test
- @TestMetadata("copy.kt")
- public void testCopy() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/copy.kt");
- }
-
- @Test
- @TestMetadata("covariantArrayAsReceiver.kt")
- public void testCovariantArrayAsReceiver() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/covariantArrayAsReceiver.kt");
- }
-
- @Test
- @TestMetadata("defaultJavaImportHiding.kt")
- public void testDefaultJavaImportHiding() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/defaultJavaImportHiding.kt");
- }
-
- @Test
- @TestMetadata("defaultParametersInheritedToJava.kt")
- public void testDefaultParametersInheritedToJava() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/defaultParametersInheritedToJava.kt");
- }
-
- @Test
- @TestMetadata("definitelyNotNullAmbiguity.kt")
- public void testDefinitelyNotNullAmbiguity() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/definitelyNotNullAmbiguity.kt");
- }
-
- @Test
- @TestMetadata("delegatedSuperType.kt")
- public void testDelegatedSuperType() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/delegatedSuperType.kt");
- }
-
- @Test
- @TestMetadata("delegatingConstructorCall.kt")
- public void testDelegatingConstructorCall() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/delegatingConstructorCall.kt");
- }
-
- @Test
- @TestMetadata("delegatingConstructorsAndTypeAliases.kt")
- public void testDelegatingConstructorsAndTypeAliases() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/delegatingConstructorsAndTypeAliases.kt");
- }
-
- @Test
- @TestMetadata("derivedClass.kt")
- public void testDerivedClass() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/derivedClass.kt");
- }
-
- @Test
- @TestMetadata("enum.kt")
- public void testEnum() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/enum.kt");
- }
-
- @Test
- @TestMetadata("enumWithCompanion.kt")
- public void testEnumWithCompanion() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/enumWithCompanion.kt");
- }
-
- @Test
- @TestMetadata("exhaustiveWhenAndDNNType.kt")
- public void testExhaustiveWhenAndDNNType() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/exhaustiveWhenAndDNNType.kt");
- }
-
- @Test
- @TestMetadata("exhaustiveWhenAndFlexibleType.kt")
- public void testExhaustiveWhenAndFlexibleType() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/exhaustiveWhenAndFlexibleType.kt");
- }
-
- @Test
- @TestMetadata("exhaustiveness_boolean.kt")
- public void testExhaustiveness_boolean() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/exhaustiveness_boolean.kt");
- }
-
- @Test
- @TestMetadata("exhaustiveness_enum.kt")
- public void testExhaustiveness_enum() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/exhaustiveness_enum.kt");
- }
-
- @Test
- @TestMetadata("exhaustiveness_enumJava.kt")
- public void testExhaustiveness_enumJava() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/exhaustiveness_enumJava.kt");
- }
-
- @Test
- @TestMetadata("exhaustiveness_sealedClass.kt")
- public void testExhaustiveness_sealedClass() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/exhaustiveness_sealedClass.kt");
- }
-
- @Test
- @TestMetadata("exhaustiveness_sealedObject.kt")
- public void testExhaustiveness_sealedObject() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/exhaustiveness_sealedObject.kt");
- }
-
- @Test
- @TestMetadata("exhaustiveness_sealedSubClass.kt")
- public void testExhaustiveness_sealedSubClass() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/exhaustiveness_sealedSubClass.kt");
- }
-
- @Test
- @TestMetadata("extension.kt")
- public void testExtension() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extension.kt");
- }
-
- @Test
- @TestMetadata("F.kt")
- public void testF() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/F.kt");
- }
-
- @Test
- @TestMetadata("fakeRecursiveSupertype.kt")
- public void testFakeRecursiveSupertype() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/fakeRecursiveSupertype.kt");
- }
-
- @Test
- @TestMetadata("fakeRecursiveTypealias.kt")
- public void testFakeRecursiveTypealias() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/fakeRecursiveTypealias.kt");
- }
-
- @Test
- @TestMetadata("fib.kt")
- public void testFib() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/fib.kt");
- }
-
- @Test
- @TestMetadata("flexibleCapturedType.kt")
- public void testFlexibleCapturedType() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/flexibleCapturedType.kt");
- }
-
- @Test
- @TestMetadata("ft.kt")
- public void testFt() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/ft.kt");
- }
-
- @Test
- @TestMetadata("functionTypeAlias.kt")
- public void testFunctionTypeAlias() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/functionTypeAlias.kt");
- }
-
- @Test
- @TestMetadata("functionTypes.kt")
- public void testFunctionTypes() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/functionTypes.kt");
- }
-
- @Test
- @TestMetadata("genericConstructors.kt")
- public void testGenericConstructors() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/genericConstructors.kt");
- }
-
- @Test
- @TestMetadata("genericFunctions.kt")
- public void testGenericFunctions() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/genericFunctions.kt");
- }
-
- @Test
- @TestMetadata("genericReceiverPropertyOverride.kt")
- public void testGenericReceiverPropertyOverride() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/genericReceiverPropertyOverride.kt");
- }
-
- @Test
- @TestMetadata("implicitTypeInFakeOverride.kt")
- public void testImplicitTypeInFakeOverride() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/implicitTypeInFakeOverride.kt");
- }
-
- @Test
- @TestMetadata("incorrectSuperCall.kt")
- public void testIncorrectSuperCall() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/incorrectSuperCall.kt");
- }
-
- @Test
- @TestMetadata("intersectionScope.kt")
- public void testIntersectionScope() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/intersectionScope.kt");
- }
-
- @Test
- @TestMetadata("intersectionTypes.kt")
- public void testIntersectionTypes() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/intersectionTypes.kt");
- }
-
- @Test
- @TestMetadata("invokeInWhenSubjectVariableInitializer.kt")
- public void testInvokeInWhenSubjectVariableInitializer() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/invokeInWhenSubjectVariableInitializer.kt");
- }
-
- @Test
- @TestMetadata("invokeOfLambdaWithReceiver.kt")
- public void testInvokeOfLambdaWithReceiver() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/invokeOfLambdaWithReceiver.kt");
- }
-
- @Test
- @TestMetadata("javaFieldVsAccessor.kt")
- public void testJavaFieldVsAccessor() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/javaFieldVsAccessor.kt");
- }
-
- @Test
- @TestMetadata("javaStaticScopeInheritance.kt")
- public void testJavaStaticScopeInheritance() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/javaStaticScopeInheritance.kt");
- }
-
- @Test
- @TestMetadata("kt41984.kt")
- public void testKt41984() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/kt41984.kt");
- }
-
- @Test
- @TestMetadata("kt41990.kt")
- public void testKt41990() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/kt41990.kt");
- }
-
- @Test
- @TestMetadata("labelAndReceiverForInfix.kt")
- public void testLabelAndReceiverForInfix() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/labelAndReceiverForInfix.kt");
- }
-
- @Test
- @TestMetadata("lambdaArgInScopeFunction.kt")
- public void testLambdaArgInScopeFunction() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/lambdaArgInScopeFunction.kt");
- }
-
- @Test
- @TestMetadata("lambdaInLhsOfTypeOperatorCall.kt")
- public void testLambdaInLhsOfTypeOperatorCall() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/lambdaInLhsOfTypeOperatorCall.kt");
- }
-
- @Test
- @TestMetadata("lambdaPropertyTypeInference.kt")
- public void testLambdaPropertyTypeInference() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/lambdaPropertyTypeInference.kt");
- }
-
- @Test
- @TestMetadata("localFunctionsHiding.kt")
- public void testLocalFunctionsHiding() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/localFunctionsHiding.kt");
- }
-
- @Test
- @TestMetadata("localObject.kt")
- public void testLocalObject() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/localObject.kt");
- }
-
- @Test
- @TestMetadata("nestedClass.kt")
- public void testNestedClass() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/nestedClass.kt");
- }
-
- @Test
- @TestMetadata("nestedClassContructor.kt")
- public void testNestedClassContructor() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/nestedClassContructor.kt");
- }
-
- @Test
- @TestMetadata("nestedClassNameClash.kt")
- public void testNestedClassNameClash() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/nestedClassNameClash.kt");
- }
-
- @Test
- @TestMetadata("NestedOfAliasedType.kt")
- public void testNestedOfAliasedType() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/NestedOfAliasedType.kt");
- }
-
- @Test
- @TestMetadata("nestedReturnType.kt")
- public void testNestedReturnType() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/nestedReturnType.kt");
- }
-
- @Test
- @TestMetadata("NestedSuperType.kt")
- public void testNestedSuperType() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/NestedSuperType.kt");
- }
-
- @Test
- @TestMetadata("objectInnerClass.kt")
- public void testObjectInnerClass() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/objectInnerClass.kt");
- }
-
- @Test
- @TestMetadata("offOrderMultiBoundGenericOverride.kt")
- public void testOffOrderMultiBoundGenericOverride() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/offOrderMultiBoundGenericOverride.kt");
- }
-
- @Test
- @TestMetadata("openInInterface.kt")
- public void testOpenInInterface() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/openInInterface.kt");
- }
-
- @Test
- @TestMetadata("problems2.kt")
- public void testProblems2() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/problems2.kt");
- }
-
- @Test
- @TestMetadata("propertyFromJavaPlusAssign.kt")
- public void testPropertyFromJavaPlusAssign() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/propertyFromJavaPlusAssign.kt");
- }
-
- @Test
- @TestMetadata("qualifierWithCompanion.kt")
- public void testQualifierWithCompanion() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/qualifierWithCompanion.kt");
- }
-
- @Test
- @TestMetadata("rawTypeSam.kt")
- public void testRawTypeSam() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/rawTypeSam.kt");
- }
-
- @Test
- @TestMetadata("recursiveCallOnWhenWithSealedClass.kt")
- public void testRecursiveCallOnWhenWithSealedClass() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/recursiveCallOnWhenWithSealedClass.kt");
- }
-
- @Test
- @TestMetadata("sealedClass.kt")
- public void testSealedClass() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/sealedClass.kt");
- }
-
- @Test
- @TestMetadata("simpleClass.kt")
- public void testSimpleClass() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/simpleClass.kt");
- }
-
- @Test
- @TestMetadata("simpleTypeAlias.kt")
- public void testSimpleTypeAlias() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/simpleTypeAlias.kt");
- }
-
- @Test
- @TestMetadata("spreadOperator.kt")
- public void testSpreadOperator() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/spreadOperator.kt");
- }
-
- @Test
- @TestMetadata("statusResolveForTypealiasAsSuperClass.kt")
- public void testStatusResolveForTypealiasAsSuperClass() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/statusResolveForTypealiasAsSuperClass.kt");
- }
-
- @Test
- @TestMetadata("syntheticsVsNormalProperties.kt")
- public void testSyntheticsVsNormalProperties() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/syntheticsVsNormalProperties.kt");
- }
-
- @Test
- @TestMetadata("treeSet.kt")
- public void testTreeSet() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/treeSet.kt");
- }
-
- @Test
- @TestMetadata("tryInference.kt")
- public void testTryInference() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/tryInference.kt");
- }
-
- @Test
- @TestMetadata("TwoDeclarationsInSameFile.kt")
- public void testTwoDeclarationsInSameFile() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/TwoDeclarationsInSameFile.kt");
- }
-
- @Test
- @TestMetadata("typeAliasWithGeneric.kt")
- public void testTypeAliasWithGeneric() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/typeAliasWithGeneric.kt");
- }
-
- @Test
- @TestMetadata("typeAliasWithTypeArguments.kt")
- public void testTypeAliasWithTypeArguments() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/typeAliasWithTypeArguments.kt");
- }
-
- @Test
- @TestMetadata("typeFromGetter.kt")
- public void testTypeFromGetter() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/typeFromGetter.kt");
- }
-
- @Test
- @TestMetadata("typeParameterInPropertyReceiver.kt")
- public void testTypeParameterInPropertyReceiver() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/typeParameterInPropertyReceiver.kt");
- }
-
- @Test
- @TestMetadata("typeParameterVsNested.kt")
- public void testTypeParameterVsNested() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/typeParameterVsNested.kt");
- }
-
- @Test
- @TestMetadata("typesInLocalFunctions.kt")
- public void testTypesInLocalFunctions() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/typesInLocalFunctions.kt");
- }
-
- @Test
- @TestMetadata("varargInPrimaryConstructor.kt")
- public void testVarargInPrimaryConstructor() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/varargInPrimaryConstructor.kt");
- }
-
- @Test
- @TestMetadata("whenAsReceiver.kt")
- public void testWhenAsReceiver() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/whenAsReceiver.kt");
- }
-
- @Test
- @TestMetadata("whenElse.kt")
- public void testWhenElse() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/whenElse.kt");
- }
-
- @Test
- @TestMetadata("whenExpressionType.kt")
- public void testWhenExpressionType() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/whenExpressionType.kt");
- }
-
- @Test
- @TestMetadata("whenInference.kt")
- public void testWhenInference() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/whenInference.kt");
- }
-
@Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/arguments")
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve")
@TestDataPath("$PROJECT_ROOT")
@Execution(ExecutionMode.SAME_THREAD)
- public class Arguments extends AbstractFirDiagnosticsWithLightTreeTest {
+ public class Resolve extends AbstractFirDiagnosticsWithLightTreeTest {
@Test
- public void testAllFilesPresentInArguments() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/arguments"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ public void testAllFilesPresentInResolve() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@Test
- @TestMetadata("ambiguityOnJavaOverride.kt")
- public void testAmbiguityOnJavaOverride() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/arguments/ambiguityOnJavaOverride.kt");
+ @TestMetadata("asImports.kt")
+ public void testAsImports() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/asImports.kt");
}
@Test
- @TestMetadata("argumentsOfAnnotations.kt")
- public void testArgumentsOfAnnotations() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/arguments/argumentsOfAnnotations.kt");
+ @TestMetadata("bareTypes.kt")
+ public void testBareTypes() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/bareTypes.kt");
}
@Test
- @TestMetadata("argumentsOfJavaAnnotation.kt")
- public void testArgumentsOfJavaAnnotation() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/arguments/argumentsOfJavaAnnotation.kt");
+ @TestMetadata("bareTypes2.kt")
+ public void testBareTypes2() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/bareTypes2.kt");
}
@Test
- @TestMetadata("default.kt")
- public void testDefault() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/arguments/default.kt");
+ @TestMetadata("bareTypesWithFlexibleArguments.kt")
+ public void testBareTypesWithFlexibleArguments() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/bareTypesWithFlexibleArguments.kt");
}
@Test
- @TestMetadata("defaultFromOverrides.kt")
- public void testDefaultFromOverrides() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/arguments/defaultFromOverrides.kt");
- }
-
- @Test
- @TestMetadata("definetelyNotNullForTypeParameter.kt")
- public void testDefinetelyNotNullForTypeParameter() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/arguments/definetelyNotNullForTypeParameter.kt");
- }
-
- @Test
- @TestMetadata("extensionLambdaInDefaultArgument.kt")
- public void testExtensionLambdaInDefaultArgument() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/arguments/extensionLambdaInDefaultArgument.kt");
- }
-
- @Test
- @TestMetadata("fieldPlusAssign.kt")
- public void testFieldPlusAssign() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/arguments/fieldPlusAssign.kt");
- }
-
- @Test
- @TestMetadata("incorrectFunctionalType.kt")
- public void testIncorrectFunctionalType() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/arguments/incorrectFunctionalType.kt");
- }
-
- @Test
- @TestMetadata("integerLiteralTypes.kt")
- public void testIntegerLiteralTypes() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/arguments/integerLiteralTypes.kt");
- }
-
- @Test
- @TestMetadata("invoke.kt")
- public void testInvoke() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/arguments/invoke.kt");
- }
-
- @Test
- @TestMetadata("javaAnnotationsWithArrayValue.kt")
- public void testJavaAnnotationsWithArrayValue() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/arguments/javaAnnotationsWithArrayValue.kt");
- }
-
- @Test
- @TestMetadata("javaArrayVariance.kt")
- public void testJavaArrayVariance() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/arguments/javaArrayVariance.kt");
- }
-
- @Test
- @TestMetadata("kt41940.kt")
- public void testKt41940() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/arguments/kt41940.kt");
- }
-
- @Test
- @TestMetadata("lambda.kt")
- public void testLambda() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/arguments/lambda.kt");
- }
-
- @Test
- @TestMetadata("lambdaInLambda.kt")
- public void testLambdaInLambda() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/arguments/lambdaInLambda.kt");
- }
-
- @Test
- @TestMetadata("lambdaInLambda2.kt")
- public void testLambdaInLambda2() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/arguments/lambdaInLambda2.kt");
- }
-
- @Test
- @TestMetadata("lambdaInUnresolvedCall.kt")
- public void testLambdaInUnresolvedCall() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/arguments/lambdaInUnresolvedCall.kt");
- }
-
- @Test
- @TestMetadata("namedArrayInAnnotation.kt")
- public void testNamedArrayInAnnotation() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/arguments/namedArrayInAnnotation.kt");
- }
-
- @Test
- @TestMetadata("operatorsOverLiterals.kt")
- public void testOperatorsOverLiterals() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/arguments/operatorsOverLiterals.kt");
- }
-
- @Test
- @TestMetadata("overloadByReceiver.kt")
- public void testOverloadByReceiver() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/arguments/overloadByReceiver.kt");
- }
-
- @Test
- @TestMetadata("overloadWithDefault.kt")
- public void testOverloadWithDefault() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/arguments/overloadWithDefault.kt");
- }
-
- @Test
- @TestMetadata("simple.kt")
- public void testSimple() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/arguments/simple.kt");
- }
-
- @Test
- @TestMetadata("stringTemplates.kt")
- public void testStringTemplates() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/arguments/stringTemplates.kt");
- }
-
- @Test
- @TestMetadata("tryInLambda.kt")
- public void testTryInLambda() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/arguments/tryInLambda.kt");
- }
-
- @Test
- @TestMetadata("untouchedReturnInIf.kt")
- public void testUntouchedReturnInIf() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/arguments/untouchedReturnInIf.kt");
- }
-
- @Test
- @TestMetadata("vararg.kt")
- public void testVararg() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/arguments/vararg.kt");
- }
-
- @Test
- @TestMetadata("varargOfLambdasWithReceiver.kt")
- public void testVarargOfLambdasWithReceiver() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/arguments/varargOfLambdasWithReceiver.kt");
- }
-
- @Test
- @TestMetadata("varargProjection.kt")
- public void testVarargProjection() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/arguments/varargProjection.kt");
- }
- }
-
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/arrays")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class Arrays extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- public void testAllFilesPresentInArrays() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/arrays"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
- }
-
- @Test
- @TestMetadata("arraySet.kt")
- public void testArraySet() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/arrays/arraySet.kt");
- }
-
- @Test
- @TestMetadata("arraySetWithOperation.kt")
- public void testArraySetWithOperation() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/arrays/arraySetWithOperation.kt");
- }
- }
-
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/builtins")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class Builtins extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- public void testAllFilesPresentInBuiltins() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/builtins"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
- }
-
- @Test
- @TestMetadata("lists.kt")
- public void testLists() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/builtins/lists.kt");
- }
- }
-
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/callResolution")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class CallResolution extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- public void testAllFilesPresentInCallResolution() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/callResolution"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
- }
-
- @Test
- @TestMetadata("companionInvoke.kt")
- public void testCompanionInvoke() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/companionInvoke.kt");
- }
-
- @Test
- @TestMetadata("companionVsSuperStatic.kt")
- public void testCompanionVsSuperStatic() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/companionVsSuperStatic.kt");
- }
-
- @Test
- @TestMetadata("debugExpressionType.kt")
- public void testDebugExpressionType() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/debugExpressionType.kt");
- }
-
- @Test
- @TestMetadata("debugInfoCall.kt")
- public void testDebugInfoCall() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/debugInfoCall.kt");
- }
-
- @Test
- @TestMetadata("errorCandidates.kt")
- public void testErrorCandidates() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/errorCandidates.kt");
- }
-
- @Test
- @TestMetadata("extensionInvokeAfterSafeCall.kt")
- public void testExtensionInvokeAfterSafeCall() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/extensionInvokeAfterSafeCall.kt");
- }
-
- @Test
- @TestMetadata("invokeAmbiguity.kt")
- public void testInvokeAmbiguity() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/invokeAmbiguity.kt");
- }
-
- @Test
- @TestMetadata("invokeWithReceiverAndArgument.kt")
- public void testInvokeWithReceiverAndArgument() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/invokeWithReceiverAndArgument.kt");
- }
-
- @Test
- @TestMetadata("lambdaAsReceiver.kt")
- public void testLambdaAsReceiver() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/lambdaAsReceiver.kt");
- }
-
- @Test
- @TestMetadata("objectInvoke.kt")
- public void testObjectInvoke() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/objectInvoke.kt");
- }
-
- @Test
- @TestMetadata("safeCallOnTypeAlias.kt")
- public void testSafeCallOnTypeAlias() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/safeCallOnTypeAlias.kt");
- }
-
- @Test
- @TestMetadata("superAny.kt")
- public void testSuperAny() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/superAny.kt");
- }
-
- @Test
- @TestMetadata("syntheticPropertiesWrongImplicitReceiver.kt")
- public void testSyntheticPropertiesWrongImplicitReceiver() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/syntheticPropertiesWrongImplicitReceiver.kt");
- }
-
- @Test
- @TestMetadata("typeAliasWithNotNullBound.kt")
- public void testTypeAliasWithNotNullBound() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/typeAliasWithNotNullBound.kt");
- }
-
- @Test
- @TestMetadata("uselessMultipleBounds.kt")
- public void testUselessMultipleBounds() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/uselessMultipleBounds.kt");
- }
- }
-
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/cfg")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class Cfg extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- public void testAllFilesPresentInCfg() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/cfg"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
- }
-
- @Test
- @TestMetadata("annotatedLocalClass.kt")
- public void testAnnotatedLocalClass() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/cfg/annotatedLocalClass.kt");
- }
-
- @Test
- @TestMetadata("binaryOperations.kt")
- public void testBinaryOperations() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/cfg/binaryOperations.kt");
- }
-
- @Test
- @TestMetadata("booleanOperatorsWithConsts.kt")
- public void testBooleanOperatorsWithConsts() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/cfg/booleanOperatorsWithConsts.kt");
- }
-
- @Test
- @TestMetadata("complex.kt")
- public void testComplex() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/cfg/complex.kt");
- }
-
- @Test
- @TestMetadata("defaultArguments.kt")
- public void testDefaultArguments() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/cfg/defaultArguments.kt");
- }
-
- @Test
- @TestMetadata("emptyWhen.kt")
- public void testEmptyWhen() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/cfg/emptyWhen.kt");
- }
-
- @Test
- @TestMetadata("flowFromInplaceLambda.kt")
- public void testFlowFromInplaceLambda() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/cfg/flowFromInplaceLambda.kt");
- }
-
- @Test
- @TestMetadata("initBlock.kt")
- public void testInitBlock() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/cfg/initBlock.kt");
- }
-
- @Test
- @TestMetadata("initBlockAndInPlaceLambda.kt")
- public void testInitBlockAndInPlaceLambda() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/cfg/initBlockAndInPlaceLambda.kt");
- }
-
- @Test
- @TestMetadata("innerClassInAnonymousObject.kt")
- public void testInnerClassInAnonymousObject() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/cfg/innerClassInAnonymousObject.kt");
- }
-
- @Test
- @TestMetadata("inplaceLambdaInControlFlowExpressions.kt")
- public void testInplaceLambdaInControlFlowExpressions() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/cfg/inplaceLambdaInControlFlowExpressions.kt");
- }
-
- @Test
- @TestMetadata("jumps.kt")
- public void testJumps() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/cfg/jumps.kt");
- }
-
- @Test
- @TestMetadata("lambdaAsReturnOfLambda.kt")
- public void testLambdaAsReturnOfLambda() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/cfg/lambdaAsReturnOfLambda.kt");
- }
-
- @Test
- @TestMetadata("lambdaReturningObject.kt")
- public void testLambdaReturningObject() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/cfg/lambdaReturningObject.kt");
- }
-
- @Test
- @TestMetadata("lambdas.kt")
- public void testLambdas() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/cfg/lambdas.kt");
- }
-
- @Test
- @TestMetadata("localClassesWithImplicit.kt")
- public void testLocalClassesWithImplicit() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/cfg/localClassesWithImplicit.kt");
- }
-
- @Test
- @TestMetadata("loops.kt")
- public void testLoops() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/cfg/loops.kt");
- }
-
- @Test
- @TestMetadata("postponedLambdaInConstructor.kt")
- public void testPostponedLambdaInConstructor() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/cfg/postponedLambdaInConstructor.kt");
- }
-
- @Test
- @TestMetadata("postponedLambdas.kt")
- public void testPostponedLambdas() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/cfg/postponedLambdas.kt");
- }
-
- @Test
- @TestMetadata("propertiesAndInitBlocks.kt")
- public void testPropertiesAndInitBlocks() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/cfg/propertiesAndInitBlocks.kt");
- }
-
- @Test
- @TestMetadata("returnValuesFromLambda.kt")
- public void testReturnValuesFromLambda() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/cfg/returnValuesFromLambda.kt");
- }
-
- @Test
- @TestMetadata("safeCalls.kt")
- public void testSafeCalls() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/cfg/safeCalls.kt");
- }
-
- @Test
- @TestMetadata("simple.kt")
- public void testSimple() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/cfg/simple.kt");
- }
-
- @Test
- @TestMetadata("tryCatch.kt")
- public void testTryCatch() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/cfg/tryCatch.kt");
- }
-
- @Test
- @TestMetadata("when.kt")
- public void testWhen() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/cfg/when.kt");
- }
- }
-
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/constructors")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class Constructors extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- public void testAllFilesPresentInConstructors() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/constructors"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
- }
-
- @Test
- @TestMetadata("noSuperCallInSupertypes.kt")
- public void testNoSuperCallInSupertypes() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/constructors/noSuperCallInSupertypes.kt");
- }
- }
-
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/delegates")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class Delegates extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- public void testAllFilesPresentInDelegates() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/delegates"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
- }
-
- @Test
- @TestMetadata("delegateInference.kt")
- public void testDelegateInference() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/delegates/delegateInference.kt");
- }
-
- @Test
- @TestMetadata("delegateWithLambda.kt")
- public void testDelegateWithLambda() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/delegates/delegateWithLambda.kt");
- }
-
- @Test
- @TestMetadata("extensionGenericGetValue.kt")
- public void testExtensionGenericGetValue() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/delegates/extensionGenericGetValue.kt");
- }
-
- @Test
- @TestMetadata("extensionGetValueWithTypeVariableAsReceiver.kt")
- public void testExtensionGetValueWithTypeVariableAsReceiver() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/delegates/extensionGetValueWithTypeVariableAsReceiver.kt");
- }
-
- @Test
- @TestMetadata("kt41982.kt")
- public void testKt41982() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/delegates/kt41982.kt");
- }
-
- @Test
- @TestMetadata("provideDelegate.kt")
- public void testProvideDelegate() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/delegates/provideDelegate.kt");
- }
- }
-
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/diagnostics")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class Diagnostics extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- @TestMetadata("abstractSuperCall.kt")
- public void testAbstractSuperCall() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/abstractSuperCall.kt");
- }
-
- @Test
- @TestMetadata("abstractSuperCallInPresenseOfNonAbstractMethodInParent.kt")
- public void testAbstractSuperCallInPresenseOfNonAbstractMethodInParent() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/abstractSuperCallInPresenseOfNonAbstractMethodInParent.kt");
- }
-
- @Test
- public void testAllFilesPresentInDiagnostics() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/diagnostics"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
- }
-
- @Test
- @TestMetadata("annotationArgumentKClassLiteralTypeError.kt")
- public void testAnnotationArgumentKClassLiteralTypeError() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/annotationArgumentKClassLiteralTypeError.kt");
- }
-
- @Test
- @TestMetadata("annotationArgumentMustBeConst.kt")
- public void testAnnotationArgumentMustBeConst() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/annotationArgumentMustBeConst.kt");
- }
-
- @Test
- @TestMetadata("annotationArgumentMustBeEnumConst.kt")
- public void testAnnotationArgumentMustBeEnumConst() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/annotationArgumentMustBeEnumConst.kt");
- }
-
- @Test
- @TestMetadata("annotationArgumentMustBeKClassLiteral.kt")
- public void testAnnotationArgumentMustBeKClassLiteral() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/annotationArgumentMustBeKClassLiteral.kt");
- }
-
- @Test
- @TestMetadata("annotationClassMember.kt")
- public void testAnnotationClassMember() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/annotationClassMember.kt");
- }
-
- @Test
- @TestMetadata("anonymousObjectByDelegate.kt")
- public void testAnonymousObjectByDelegate() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/anonymousObjectByDelegate.kt");
- }
-
- @Test
- @TestMetadata("classInSupertypeForEnum.kt")
- public void testClassInSupertypeForEnum() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/classInSupertypeForEnum.kt");
- }
-
- @Test
- @TestMetadata("conflictingOverloads.kt")
- public void testConflictingOverloads() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/conflictingOverloads.kt");
- }
-
- @Test
- @TestMetadata("conflictingProjection.kt")
- public void testConflictingProjection() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/conflictingProjection.kt");
- }
-
- @Test
- @TestMetadata("constructorInInterface.kt")
- public void testConstructorInInterface() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/constructorInInterface.kt");
- }
-
- @Test
- @TestMetadata("cyclicConstructorDelegationCall.kt")
- public void testCyclicConstructorDelegationCall() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/cyclicConstructorDelegationCall.kt");
- }
-
- @Test
- @TestMetadata("delegationInInterface.kt")
- public void testDelegationInInterface() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/delegationInInterface.kt");
- }
-
- @Test
- @TestMetadata("delegationSuperCallInEnumConstructor.kt")
- public void testDelegationSuperCallInEnumConstructor() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/delegationSuperCallInEnumConstructor.kt");
- }
-
- @Test
- @TestMetadata("explicitDelegationCallRequired.kt")
- public void testExplicitDelegationCallRequired() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/explicitDelegationCallRequired.kt");
- }
-
- @Test
- @TestMetadata("inapplicableLateinitModifier.kt")
- public void testInapplicableLateinitModifier() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/inapplicableLateinitModifier.kt");
- }
-
- @Test
- @TestMetadata("incompatibleModifiers.kt")
- public void testIncompatibleModifiers() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/incompatibleModifiers.kt");
- }
-
- @Test
- @TestMetadata("infixFunctions.kt")
- public void testInfixFunctions() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/infixFunctions.kt");
- }
-
- @Test
- @TestMetadata("instanceAccessBeforeSuperCall.kt")
- public void testInstanceAccessBeforeSuperCall() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/instanceAccessBeforeSuperCall.kt");
- }
-
- @Test
- @TestMetadata("interfaceWithSuperclass.kt")
- public void testInterfaceWithSuperclass() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/interfaceWithSuperclass.kt");
- }
-
- @Test
- @TestMetadata("localAnnotationClass.kt")
- public void testLocalAnnotationClass() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/localAnnotationClass.kt");
- }
-
- @Test
- @TestMetadata("localEntitytNotAllowed.kt")
- public void testLocalEntitytNotAllowed() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/localEntitytNotAllowed.kt");
- }
-
- @Test
- @TestMetadata("manyCompanionObjects.kt")
- public void testManyCompanionObjects() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/manyCompanionObjects.kt");
- }
-
- @Test
- @TestMetadata("methodOfAnyImplementedInInterface.kt")
- public void testMethodOfAnyImplementedInInterface() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/methodOfAnyImplementedInInterface.kt");
- }
-
- @Test
- @TestMetadata("nonConstValInAnnotationArgument.kt")
- public void testNonConstValInAnnotationArgument() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/nonConstValInAnnotationArgument.kt");
- }
-
- @Test
- @TestMetadata("notASupertype.kt")
- public void testNotASupertype() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/notASupertype.kt");
- }
-
- @Test
- @TestMetadata("primaryConstructorRequiredForDataClass.kt")
- public void testPrimaryConstructorRequiredForDataClass() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/primaryConstructorRequiredForDataClass.kt");
- }
-
- @Test
- @TestMetadata("projectionsOnNonClassTypeArguments.kt")
- public void testProjectionsOnNonClassTypeArguments() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/projectionsOnNonClassTypeArguments.kt");
- }
-
- @Test
- @TestMetadata("propertyTypeMismatchOnOverride.kt")
- public void testPropertyTypeMismatchOnOverride() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/propertyTypeMismatchOnOverride.kt");
- }
-
- @Test
- @TestMetadata("qualifiedSupertypeExtendedByOtherSupertype.kt")
- public void testQualifiedSupertypeExtendedByOtherSupertype() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/qualifiedSupertypeExtendedByOtherSupertype.kt");
- }
-
- @Test
- @TestMetadata("redundantModifier.kt")
- public void testRedundantModifier() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/redundantModifier.kt");
- }
-
- @Test
- @TestMetadata("repeatedModifier.kt")
- public void testRepeatedModifier() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/repeatedModifier.kt");
- }
-
- @Test
- @TestMetadata("returnTypeMismatchOnOverride.kt")
- public void testReturnTypeMismatchOnOverride() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/returnTypeMismatchOnOverride.kt");
- }
-
- @Test
- @TestMetadata("sealedClassConstructorCall.kt")
- public void testSealedClassConstructorCall() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/sealedClassConstructorCall.kt");
- }
-
- @Test
- @TestMetadata("sealedSupertype.kt")
- public void testSealedSupertype() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/sealedSupertype.kt");
- }
-
- @Test
- @TestMetadata("someOverridesTest.kt")
- public void testSomeOverridesTest() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/someOverridesTest.kt");
- }
-
- @Test
- @TestMetadata("superCallWithDelegation.kt")
- public void testSuperCallWithDelegation() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/superCallWithDelegation.kt");
- }
-
- @Test
- @TestMetadata("superIsNotAnExpression.kt")
- public void testSuperIsNotAnExpression() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/superIsNotAnExpression.kt");
- }
-
- @Test
- @TestMetadata("superNotAvailable.kt")
- public void testSuperNotAvailable() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/superNotAvailable.kt");
- }
-
- @Test
- @TestMetadata("superclassNotAccessibleFromInterface.kt")
- public void testSuperclassNotAccessibleFromInterface() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/superclassNotAccessibleFromInterface.kt");
- }
-
- @Test
- @TestMetadata("supertypeInitializedInInterface.kt")
- public void testSupertypeInitializedInInterface() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/supertypeInitializedInInterface.kt");
- }
-
- @Test
- @TestMetadata("supertypeInitializedWithoutPrimaryConstructor.kt")
- public void testSupertypeInitializedWithoutPrimaryConstructor() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/supertypeInitializedWithoutPrimaryConstructor.kt");
- }
-
- @Test
- @TestMetadata("testIllegalAnnotationClass.kt")
- public void testTestIllegalAnnotationClass() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/testIllegalAnnotationClass.kt");
- }
-
- @Test
- @TestMetadata("typeArgumentsNotAllowed.kt")
- public void testTypeArgumentsNotAllowed() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/typeArgumentsNotAllowed.kt");
- }
-
- @Test
- @TestMetadata("typeOfAnnotationMember.kt")
- public void testTypeOfAnnotationMember() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/typeOfAnnotationMember.kt");
- }
-
- @Test
- @TestMetadata("typeParametersInEnum.kt")
- public void testTypeParametersInEnum() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/typeParametersInEnum.kt");
- }
-
- @Test
- @TestMetadata("typeParametersInObject.kt")
- public void testTypeParametersInObject() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/typeParametersInObject.kt");
- }
-
- @Test
- @TestMetadata("upperBoundViolated.kt")
- public void testUpperBoundViolated() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/upperBoundViolated.kt");
- }
-
- @Test
- @TestMetadata("valOnAnnotationParameter.kt")
- public void testValOnAnnotationParameter() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/valOnAnnotationParameter.kt");
- }
- }
-
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/expresssions")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class Expresssions extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- @TestMetadata("access.kt")
- public void testAccess() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/access.kt");
- }
-
- @Test
- public void testAllFilesPresentInExpresssions() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/expresssions"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
- }
-
- @Test
- @TestMetadata("annotationWithReturn.kt")
- public void testAnnotationWithReturn() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/annotationWithReturn.kt");
- }
-
- @Test
- @TestMetadata("annotations.kt")
- public void testAnnotations() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/annotations.kt");
- }
-
- @Test
- @TestMetadata("baseQualifier.kt")
- public void testBaseQualifier() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/baseQualifier.kt");
- }
-
- @Test
- @TestMetadata("blockLocalScopes.kt")
- public void testBlockLocalScopes() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/blockLocalScopes.kt");
- }
-
- @Test
- @TestMetadata("CallBasedInExpressionGenerator.kt")
- public void testCallBasedInExpressionGenerator() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/CallBasedInExpressionGenerator.kt");
- }
-
- @Test
- @TestMetadata("checkArguments.kt")
- public void testCheckArguments() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/checkArguments.kt");
- }
-
- @Test
- @TestMetadata("classifierAccessFromCompanion.kt")
- public void testClassifierAccessFromCompanion() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/classifierAccessFromCompanion.kt");
+ @TestMetadata("cast.kt")
+ public void testCast() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/cast.kt");
}
@Test
@TestMetadata("companion.kt")
public void testCompanion() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/companion.kt");
+ runTest("compiler/fir/analysis-tests/testData/resolve/companion.kt");
}
@Test
- @TestMetadata("companionExtension.kt")
- public void testCompanionExtension() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/companionExtension.kt");
+ @TestMetadata("companionAccessInEnum.kt")
+ public void testCompanionAccessInEnum() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/companionAccessInEnum.kt");
}
@Test
- @TestMetadata("constructor.kt")
- public void testConstructor() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/constructor.kt");
+ @TestMetadata("companionObjectCall.kt")
+ public void testCompanionObjectCall() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/companionObjectCall.kt");
}
@Test
- @TestMetadata("dispatchReceiver.kt")
- public void testDispatchReceiver() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/dispatchReceiver.kt");
+ @TestMetadata("companionUsesNested.kt")
+ public void testCompanionUsesNested() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/companionUsesNested.kt");
}
@Test
- @TestMetadata("enumEntryUse.kt")
- public void testEnumEntryUse() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/enumEntryUse.kt");
+ @TestMetadata("constantValues.kt")
+ public void testConstantValues() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/constantValues.kt");
}
@Test
- @TestMetadata("enumValues.kt")
- public void testEnumValues() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/enumValues.kt");
+ @TestMetadata("copy.kt")
+ public void testCopy() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/copy.kt");
}
@Test
- @TestMetadata("errCallable.kt")
- public void testErrCallable() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/errCallable.kt");
+ @TestMetadata("covariantArrayAsReceiver.kt")
+ public void testCovariantArrayAsReceiver() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/covariantArrayAsReceiver.kt");
}
@Test
- @TestMetadata("extensionPropertyInLambda.kt")
- public void testExtensionPropertyInLambda() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/extensionPropertyInLambda.kt");
+ @TestMetadata("defaultJavaImportHiding.kt")
+ public void testDefaultJavaImportHiding() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/defaultJavaImportHiding.kt");
}
@Test
- @TestMetadata("genericDecorator.kt")
- public void testGenericDecorator() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/genericDecorator.kt");
+ @TestMetadata("defaultParametersInheritedToJava.kt")
+ public void testDefaultParametersInheritedToJava() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/defaultParametersInheritedToJava.kt");
}
@Test
- @TestMetadata("genericDescriptor.kt")
- public void testGenericDescriptor() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/genericDescriptor.kt");
+ @TestMetadata("definitelyNotNullAmbiguity.kt")
+ public void testDefinitelyNotNullAmbiguity() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/definitelyNotNullAmbiguity.kt");
}
@Test
- @TestMetadata("genericDiagnostic.kt")
- public void testGenericDiagnostic() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/genericDiagnostic.kt");
+ @TestMetadata("delegatedSuperType.kt")
+ public void testDelegatedSuperType() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/delegatedSuperType.kt");
}
@Test
- @TestMetadata("genericPropertyAccess.kt")
- public void testGenericPropertyAccess() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/genericPropertyAccess.kt");
+ @TestMetadata("delegatingConstructorCall.kt")
+ public void testDelegatingConstructorCall() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/delegatingConstructorCall.kt");
}
@Test
- @TestMetadata("genericUsedInFunction.kt")
- public void testGenericUsedInFunction() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/genericUsedInFunction.kt");
+ @TestMetadata("delegatingConstructorsAndTypeAliases.kt")
+ public void testDelegatingConstructorsAndTypeAliases() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/delegatingConstructorsAndTypeAliases.kt");
}
@Test
- @TestMetadata("importedReceiver.kt")
- public void testImportedReceiver() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/importedReceiver.kt");
+ @TestMetadata("derivedClass.kt")
+ public void testDerivedClass() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/derivedClass.kt");
}
@Test
- @TestMetadata("innerQualifier.kt")
- public void testInnerQualifier() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/innerQualifier.kt");
+ @TestMetadata("enum.kt")
+ public void testEnum() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/enum.kt");
}
@Test
- @TestMetadata("innerWithSuperCompanion.kt")
- public void testInnerWithSuperCompanion() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/innerWithSuperCompanion.kt");
+ @TestMetadata("enumWithCompanion.kt")
+ public void testEnumWithCompanion() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/enumWithCompanion.kt");
}
@Test
- @TestMetadata("javaFieldCallable.kt")
- public void testJavaFieldCallable() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/javaFieldCallable.kt");
+ @TestMetadata("exhaustiveWhenAndDNNType.kt")
+ public void testExhaustiveWhenAndDNNType() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/exhaustiveWhenAndDNNType.kt");
}
@Test
- @TestMetadata("lambda.kt")
- public void testLambda() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/lambda.kt");
+ @TestMetadata("exhaustiveWhenAndFlexibleType.kt")
+ public void testExhaustiveWhenAndFlexibleType() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/exhaustiveWhenAndFlexibleType.kt");
}
@Test
- @TestMetadata("lambdaWithReceiver.kt")
- public void testLambdaWithReceiver() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/lambdaWithReceiver.kt");
+ @TestMetadata("exhaustiveness_boolean.kt")
+ public void testExhaustiveness_boolean() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/exhaustiveness_boolean.kt");
}
@Test
- @TestMetadata("localClassAccessesContainingClass.kt")
- public void testLocalClassAccessesContainingClass() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/localClassAccessesContainingClass.kt");
+ @TestMetadata("exhaustiveness_enum.kt")
+ public void testExhaustiveness_enum() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/exhaustiveness_enum.kt");
}
@Test
- @TestMetadata("localConstructor.kt")
- public void testLocalConstructor() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/localConstructor.kt");
+ @TestMetadata("exhaustiveness_enumJava.kt")
+ public void testExhaustiveness_enumJava() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/exhaustiveness_enumJava.kt");
}
@Test
- @TestMetadata("localExtension.kt")
- public void testLocalExtension() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/localExtension.kt");
+ @TestMetadata("exhaustiveness_sealedClass.kt")
+ public void testExhaustiveness_sealedClass() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/exhaustiveness_sealedClass.kt");
}
@Test
- @TestMetadata("localImplicitBodies.kt")
- public void testLocalImplicitBodies() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/localImplicitBodies.kt");
+ @TestMetadata("exhaustiveness_sealedObject.kt")
+ public void testExhaustiveness_sealedObject() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/exhaustiveness_sealedObject.kt");
}
@Test
- @TestMetadata("localInnerClass.kt")
- public void testLocalInnerClass() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/localInnerClass.kt");
+ @TestMetadata("exhaustiveness_sealedSubClass.kt")
+ public void testExhaustiveness_sealedSubClass() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/exhaustiveness_sealedSubClass.kt");
}
@Test
- @TestMetadata("localObjects.kt")
- public void testLocalObjects() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/localObjects.kt");
+ @TestMetadata("extension.kt")
+ public void testExtension() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extension.kt");
}
@Test
- @TestMetadata("localScopes.kt")
- public void testLocalScopes() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/localScopes.kt");
+ @TestMetadata("F.kt")
+ public void testF() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/F.kt");
}
@Test
- @TestMetadata("localTypes.kt")
- public void testLocalTypes() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/localTypes.kt");
+ @TestMetadata("fakeRecursiveSupertype.kt")
+ public void testFakeRecursiveSupertype() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/fakeRecursiveSupertype.kt");
}
@Test
- @TestMetadata("localWithBooleanNot.kt")
- public void testLocalWithBooleanNot() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/localWithBooleanNot.kt");
+ @TestMetadata("fakeRecursiveTypealias.kt")
+ public void testFakeRecursiveTypealias() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/fakeRecursiveTypealias.kt");
}
@Test
- @TestMetadata("memberExtension.kt")
- public void testMemberExtension() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/memberExtension.kt");
+ @TestMetadata("fib.kt")
+ public void testFib() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/fib.kt");
}
@Test
- @TestMetadata("nestedConstructorCallable.kt")
- public void testNestedConstructorCallable() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/nestedConstructorCallable.kt");
+ @TestMetadata("flexibleCapturedType.kt")
+ public void testFlexibleCapturedType() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/flexibleCapturedType.kt");
}
@Test
- @TestMetadata("nestedObjects.kt")
- public void testNestedObjects() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/nestedObjects.kt");
+ @TestMetadata("ft.kt")
+ public void testFt() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/ft.kt");
}
@Test
- @TestMetadata("nestedVisibility.kt")
- public void testNestedVisibility() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/nestedVisibility.kt");
+ @TestMetadata("functionTypeAlias.kt")
+ public void testFunctionTypeAlias() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/functionTypeAlias.kt");
}
@Test
- @TestMetadata("objectOverrideCallViaImport.kt")
- public void testObjectOverrideCallViaImport() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/objectOverrideCallViaImport.kt");
+ @TestMetadata("functionTypes.kt")
+ public void testFunctionTypes() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/functionTypes.kt");
}
@Test
- @TestMetadata("objectVsProperty.kt")
- public void testObjectVsProperty() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/objectVsProperty.kt");
+ @TestMetadata("genericConstructors.kt")
+ public void testGenericConstructors() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/genericConstructors.kt");
}
@Test
- @TestMetadata("objects.kt")
- public void testObjects() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/objects.kt");
+ @TestMetadata("genericFunctions.kt")
+ public void testGenericFunctions() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/genericFunctions.kt");
}
@Test
- @TestMetadata("outerMemberAccesses.kt")
- public void testOuterMemberAccesses() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/outerMemberAccesses.kt");
+ @TestMetadata("genericReceiverPropertyOverride.kt")
+ public void testGenericReceiverPropertyOverride() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/genericReceiverPropertyOverride.kt");
}
@Test
- @TestMetadata("outerObject.kt")
- public void testOuterObject() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/outerObject.kt");
+ @TestMetadata("implicitTypeInFakeOverride.kt")
+ public void testImplicitTypeInFakeOverride() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/implicitTypeInFakeOverride.kt");
}
@Test
- @TestMetadata("overriddenJavaGetter.kt")
- public void testOverriddenJavaGetter() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/overriddenJavaGetter.kt");
+ @TestMetadata("incorrectSuperCall.kt")
+ public void testIncorrectSuperCall() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/incorrectSuperCall.kt");
}
@Test
- @TestMetadata("privateObjectLiteral.kt")
- public void testPrivateObjectLiteral() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/privateObjectLiteral.kt");
+ @TestMetadata("intersectionScope.kt")
+ public void testIntersectionScope() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/intersectionScope.kt");
}
@Test
- @TestMetadata("privateVisibility.kt")
- public void testPrivateVisibility() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/privateVisibility.kt");
+ @TestMetadata("intersectionTypes.kt")
+ public void testIntersectionTypes() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/intersectionTypes.kt");
}
@Test
- @TestMetadata("protectedVisibility.kt")
- public void testProtectedVisibility() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/protectedVisibility.kt");
+ @TestMetadata("invokeInWhenSubjectVariableInitializer.kt")
+ public void testInvokeInWhenSubjectVariableInitializer() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/invokeInWhenSubjectVariableInitializer.kt");
}
@Test
- @TestMetadata("qualifiedExpressions.kt")
- public void testQualifiedExpressions() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/qualifiedExpressions.kt");
+ @TestMetadata("invokeOfLambdaWithReceiver.kt")
+ public void testInvokeOfLambdaWithReceiver() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/invokeOfLambdaWithReceiver.kt");
}
@Test
- @TestMetadata("qualifierPriority.kt")
- public void testQualifierPriority() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/qualifierPriority.kt");
+ @TestMetadata("javaFieldVsAccessor.kt")
+ public void testJavaFieldVsAccessor() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/javaFieldVsAccessor.kt");
}
@Test
- @TestMetadata("receiverConsistency.kt")
- public void testReceiverConsistency() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/receiverConsistency.kt");
+ @TestMetadata("javaStaticScopeInheritance.kt")
+ public void testJavaStaticScopeInheritance() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/javaStaticScopeInheritance.kt");
}
@Test
- @TestMetadata("sameReceiver.kt")
- public void testSameReceiver() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/sameReceiver.kt");
+ @TestMetadata("kt41984.kt")
+ public void testKt41984() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/kt41984.kt");
}
@Test
- @TestMetadata("simple.kt")
- public void testSimple() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/simple.kt");
+ @TestMetadata("kt41990.kt")
+ public void testKt41990() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/kt41990.kt");
}
@Test
- @TestMetadata("syntheticInImplicitBody.kt")
- public void testSyntheticInImplicitBody() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/syntheticInImplicitBody.kt");
+ @TestMetadata("labelAndReceiverForInfix.kt")
+ public void testLabelAndReceiverForInfix() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/labelAndReceiverForInfix.kt");
}
@Test
- @TestMetadata("syntheticSmartCast.kt")
- public void testSyntheticSmartCast() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/syntheticSmartCast.kt");
+ @TestMetadata("lambdaArgInScopeFunction.kt")
+ public void testLambdaArgInScopeFunction() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/lambdaArgInScopeFunction.kt");
}
@Test
- @TestMetadata("this.kt")
- public void testThis() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/this.kt");
+ @TestMetadata("lambdaInLhsOfTypeOperatorCall.kt")
+ public void testLambdaInLhsOfTypeOperatorCall() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/lambdaInLhsOfTypeOperatorCall.kt");
}
@Test
- @TestMetadata("topExtensionVsOuterMember.kt")
- public void testTopExtensionVsOuterMember() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/topExtensionVsOuterMember.kt");
+ @TestMetadata("lambdaPropertyTypeInference.kt")
+ public void testLambdaPropertyTypeInference() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/lambdaPropertyTypeInference.kt");
}
@Test
- @TestMetadata("typeAliasConstructor.kt")
- public void testTypeAliasConstructor() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/typeAliasConstructor.kt");
+ @TestMetadata("localFunctionsHiding.kt")
+ public void testLocalFunctionsHiding() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/localFunctionsHiding.kt");
}
@Test
- @TestMetadata("vararg.kt")
- public void testVararg() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/vararg.kt");
+ @TestMetadata("localObject.kt")
+ public void testLocalObject() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/localObject.kt");
}
@Test
- @TestMetadata("when.kt")
- public void testWhen() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/when.kt");
+ @TestMetadata("nestedClass.kt")
+ public void testNestedClass() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/nestedClass.kt");
}
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/expresssions/inference")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class Inference extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- public void testAllFilesPresentInInference() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/expresssions/inference"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
- }
-
- @Test
- @TestMetadata("id.kt")
- public void testId() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/inference/id.kt");
- }
-
- @Test
- @TestMetadata("typeParameters.kt")
- public void testTypeParameters() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/inference/typeParameters.kt");
- }
-
- @Test
- @TestMetadata("typeParameters2.kt")
- public void testTypeParameters2() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/inference/typeParameters2.kt");
- }
- }
-
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class Invoke extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- public void testAllFilesPresentInInvoke() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
- }
-
- @Test
- @TestMetadata("doubleBrackets.kt")
- public void testDoubleBrackets() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/doubleBrackets.kt");
- }
-
- @Test
- @TestMetadata("explicitReceiver.kt")
- public void testExplicitReceiver() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/explicitReceiver.kt");
- }
-
- @Test
- @TestMetadata("explicitReceiver2.kt")
- public void testExplicitReceiver2() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/explicitReceiver2.kt");
- }
-
- @Test
- @TestMetadata("extension.kt")
- public void testExtension() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/extension.kt");
- }
-
- @Test
- @TestMetadata("extensionOnObject.kt")
- public void testExtensionOnObject() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/extensionOnObject.kt");
- }
-
- @Test
- @TestMetadata("extensionSafeCall.kt")
- public void testExtensionSafeCall() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/extensionSafeCall.kt");
- }
-
- @Test
- @TestMetadata("farInvokeExtension.kt")
- public void testFarInvokeExtension() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/farInvokeExtension.kt");
- }
-
- @Test
- @TestMetadata("implicitTypeOrder.kt")
- public void testImplicitTypeOrder() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/implicitTypeOrder.kt");
- }
-
- @Test
- @TestMetadata("inBrackets.kt")
- public void testInBrackets() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/inBrackets.kt");
- }
-
- @Test
- @TestMetadata("incorrectInvokeReceiver.kt")
- public void testIncorrectInvokeReceiver() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/incorrectInvokeReceiver.kt");
- }
-
- @Test
- @TestMetadata("propertyFromParameter.kt")
- public void testPropertyFromParameter() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/propertyFromParameter.kt");
- }
-
- @Test
- @TestMetadata("propertyWithExtensionType.kt")
- public void testPropertyWithExtensionType() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/propertyWithExtensionType.kt");
- }
-
- @Test
- @TestMetadata("simple.kt")
- public void testSimple() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/simple.kt");
- }
-
- @Test
- @TestMetadata("threeReceivers.kt")
- public void testThreeReceivers() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/threeReceivers.kt");
- }
-
- @Test
- @TestMetadata("threeReceiversCorrect.kt")
- public void testThreeReceiversCorrect() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/threeReceiversCorrect.kt");
- }
- }
-
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/expresssions/operators")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class Operators extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- public void testAllFilesPresentInOperators() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/expresssions/operators"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
- }
-
- @Test
- @TestMetadata("plus.kt")
- public void testPlus() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/operators/plus.kt");
- }
-
- @Test
- @TestMetadata("plusAndPlusAssign.kt")
- public void testPlusAndPlusAssign() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/operators/plusAndPlusAssign.kt");
- }
-
- @Test
- @TestMetadata("plusAssign.kt")
- public void testPlusAssign() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/operators/plusAssign.kt");
- }
- }
- }
-
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/extendedCheckers")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class ExtendedCheckers extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- public void testAllFilesPresentInExtendedCheckers() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/extendedCheckers"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
- }
-
- @Test
- @TestMetadata("ArrayEqualityCanBeReplacedWithEquals.kt")
- public void testArrayEqualityCanBeReplacedWithEquals() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/ArrayEqualityCanBeReplacedWithEquals.kt");
- }
-
- @Test
- @TestMetadata("CanBeValChecker.kt")
- public void testCanBeValChecker() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/CanBeValChecker.kt");
- }
-
- @Test
- @TestMetadata("RedundantExplicitTypeChecker.kt")
- public void testRedundantExplicitTypeChecker() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantExplicitTypeChecker.kt");
- }
-
- @Test
- @TestMetadata("RedundantModalityModifierChecker.kt")
- public void testRedundantModalityModifierChecker() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantModalityModifierChecker.kt");
- }
-
- @Test
- @TestMetadata("RedundantReturnUnitTypeChecker.kt")
- public void testRedundantReturnUnitTypeChecker() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantReturnUnitTypeChecker.kt");
- }
-
- @Test
- @TestMetadata("RedundantSetterParameterTypeChecker.kt")
- public void testRedundantSetterParameterTypeChecker() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantSetterParameterTypeChecker.kt");
- }
-
- @Test
- @TestMetadata("RedundantSingleExpressionStringTemplateChecker.kt")
- public void testRedundantSingleExpressionStringTemplateChecker() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantSingleExpressionStringTemplateChecker.kt");
- }
-
- @Test
- @TestMetadata("RedundantVisibilityModifierChecker.kt")
- public void testRedundantVisibilityModifierChecker() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantVisibilityModifierChecker.kt");
- }
-
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class CanBeReplacedWithOperatorAssignment extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- public void testAllFilesPresentInCanBeReplacedWithOperatorAssignment() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
- }
-
- @Test
- @TestMetadata("BasicTest.kt")
- public void testBasicTest() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/BasicTest.kt");
- }
-
- @Test
- @TestMetadata("ComplexExpression.kt")
- public void testComplexExpression() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/ComplexExpression.kt");
- }
-
- @Test
- @TestMetadata("flexibleTypeBug.kt")
- public void testFlexibleTypeBug() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/flexibleTypeBug.kt");
- }
-
- @Test
- @TestMetadata("illegalMultipleOperators.kt")
- public void testIllegalMultipleOperators() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/illegalMultipleOperators.kt");
- }
-
- @Test
- @TestMetadata("illegalMultipleOperatorsMiddle.kt")
- public void testIllegalMultipleOperatorsMiddle() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/illegalMultipleOperatorsMiddle.kt");
- }
-
- @Test
- @TestMetadata("invalidSubtraction.kt")
- public void testInvalidSubtraction() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/invalidSubtraction.kt");
- }
-
- @Test
- @TestMetadata("list.kt")
- public void testList() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/list.kt");
- }
-
- @Test
- @TestMetadata("logicOperators.kt")
- public void testLogicOperators() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/logicOperators.kt");
- }
-
- @Test
- @TestMetadata("multipleOperators.kt")
- public void testMultipleOperators() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/multipleOperators.kt");
- }
-
- @Test
- @TestMetadata("multipleOperatorsRightSideRepeat.kt")
- public void testMultipleOperatorsRightSideRepeat() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/multipleOperatorsRightSideRepeat.kt");
- }
-
- @Test
- @TestMetadata("mutableList.kt")
- public void testMutableList() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/mutableList.kt");
- }
-
- @Test
- @TestMetadata("nonCommutativeRepeat.kt")
- public void testNonCommutativeRepeat() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/nonCommutativeRepeat.kt");
- }
-
- @Test
- @TestMetadata("nonRepeatingAssignment.kt")
- public void testNonRepeatingAssignment() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/nonRepeatingAssignment.kt");
- }
-
- @Test
- @TestMetadata("OperatorAssignment.kt")
- public void testOperatorAssignment() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/OperatorAssignment.kt");
- }
-
- @Test
- @TestMetadata("plusAssignConflict.kt")
- public void testPlusAssignConflict() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/plusAssignConflict.kt");
- }
-
- @Test
- @TestMetadata("rightSideRepeat.kt")
- public void testRightSideRepeat() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/rightSideRepeat.kt");
- }
-
- @Test
- @TestMetadata("simpleAssign.kt")
- public void testSimpleAssign() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/simpleAssign.kt");
- }
-
- @Test
- @TestMetadata("validAddition.kt")
- public void testValidAddition() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/validAddition.kt");
- }
-
- @Test
- @TestMetadata("validSubtraction.kt")
- public void testValidSubtraction() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/validSubtraction.kt");
- }
- }
-
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/emptyRangeChecker")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class EmptyRangeChecker extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- public void testAllFilesPresentInEmptyRangeChecker() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/emptyRangeChecker"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
- }
-
- @Test
- @TestMetadata("NoWarning.kt")
- public void testNoWarning() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/emptyRangeChecker/NoWarning.kt");
- }
-
- @Test
- @TestMetadata("Warning.kt")
- public void testWarning() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/emptyRangeChecker/Warning.kt");
- }
- }
-
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class RedundantCallOfConversionMethod extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- public void testAllFilesPresentInRedundantCallOfConversionMethod() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
- }
-
- @Test
- @TestMetadata("booleanToInt.kt")
- public void testBooleanToInt() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/booleanToInt.kt");
- }
-
- @Test
- @TestMetadata("byte.kt")
- public void testByte() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/byte.kt");
- }
-
- @Test
- @TestMetadata("char.kt")
- public void testChar() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/char.kt");
- }
-
- @Test
- @TestMetadata("double.kt")
- public void testDouble() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/double.kt");
- }
-
- @Test
- @TestMetadata("float.kt")
- public void testFloat() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/float.kt");
- }
-
- @Test
- @TestMetadata("int.kt")
- public void testInt() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/int.kt");
- }
-
- @Test
- @TestMetadata("long.kt")
- public void testLong() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/long.kt");
- }
-
- @Test
- @TestMetadata("nullable.kt")
- public void testNullable() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/nullable.kt");
- }
-
- @Test
- @TestMetadata("nullable2.kt")
- public void testNullable2() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/nullable2.kt");
- }
-
- @Test
- @TestMetadata("safeString.kt")
- public void testSafeString() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/safeString.kt");
- }
-
- @Test
- @TestMetadata("safeString2.kt")
- public void testSafeString2() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/safeString2.kt");
- }
-
- @Test
- @TestMetadata("short.kt")
- public void testShort() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/short.kt");
- }
-
- @Test
- @TestMetadata("string.kt")
- public void testString() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/string.kt");
- }
-
- @Test
- @TestMetadata("StringTemplate.kt")
- public void testStringTemplate() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/StringTemplate.kt");
- }
-
- @Test
- @TestMetadata("toOtherType.kt")
- public void testToOtherType() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/toOtherType.kt");
- }
-
- @Test
- @TestMetadata("uByte.kt")
- public void testUByte() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/uByte.kt");
- }
-
- @Test
- @TestMetadata("uInt.kt")
- public void testUInt() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/uInt.kt");
- }
-
- @Test
- @TestMetadata("uLong.kt")
- public void testULong() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/uLong.kt");
- }
-
- @Test
- @TestMetadata("uShort.kt")
- public void testUShort() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/uShort.kt");
- }
-
- @Test
- @TestMetadata("variable.kt")
- public void testVariable() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/variable.kt");
- }
- }
-
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/unused")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class Unused extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- public void testAllFilesPresentInUnused() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/unused"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
- }
-
- @Test
- @TestMetadata("classProperty.kt")
- public void testClassProperty() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/unused/classProperty.kt");
- }
-
- @Test
- @TestMetadata("invoke.kt")
- public void testInvoke() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/unused/invoke.kt");
- }
-
- @Test
- @TestMetadata("lambda.kt")
- public void testLambda() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/unused/lambda.kt");
- }
-
- @Test
- @TestMetadata("localVariable.kt")
- public void testLocalVariable() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/unused/localVariable.kt");
- }
-
- @Test
- @TestMetadata("manyLocalVariables.kt")
- public void testManyLocalVariables() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/unused/manyLocalVariables.kt");
- }
-
- @Test
- @TestMetadata("usedInAnnotationArguments.kt")
- public void testUsedInAnnotationArguments() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/unused/usedInAnnotationArguments.kt");
- }
-
- @Test
- @TestMetadata("valueIsNeverRead.kt")
- public void testValueIsNeverRead() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/unused/valueIsNeverRead.kt");
- }
- }
-
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/UselessCallOnNotNullChecker")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class UselessCallOnNotNullChecker extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- public void testAllFilesPresentInUselessCallOnNotNullChecker() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/UselessCallOnNotNullChecker"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
- }
-
- @Test
- @TestMetadata("Basic.kt")
- public void testBasic() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/UselessCallOnNotNullChecker/Basic.kt");
- }
-
- @Test
- @TestMetadata("NotNullType.kt")
- public void testNotNullType() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/UselessCallOnNotNullChecker/NotNullType.kt");
- }
-
- @Test
- @TestMetadata("NotNullTypeChain.kt")
- public void testNotNullTypeChain() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/UselessCallOnNotNullChecker/NotNullTypeChain.kt");
- }
-
- @Test
- @TestMetadata("NullOrBlankSafe.kt")
- public void testNullOrBlankSafe() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/UselessCallOnNotNullChecker/NullOrBlankSafe.kt");
- }
-
- @Test
- @TestMetadata("NullOrEmpty.kt")
- public void testNullOrEmpty() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/UselessCallOnNotNullChecker/NullOrEmpty.kt");
- }
-
- @Test
- @TestMetadata("NullOrEmptyFake.kt")
- public void testNullOrEmptyFake() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/UselessCallOnNotNullChecker/NullOrEmptyFake.kt");
- }
-
- @Test
- @TestMetadata("NullOrEmptySafe.kt")
- public void testNullOrEmptySafe() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/UselessCallOnNotNullChecker/NullOrEmptySafe.kt");
- }
-
- @Test
- @TestMetadata("OrEmptyFake.kt")
- public void testOrEmptyFake() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/UselessCallOnNotNullChecker/OrEmptyFake.kt");
- }
-
- @Test
- @TestMetadata("SafeCall.kt")
- public void testSafeCall() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/UselessCallOnNotNullChecker/SafeCall.kt");
- }
-
- @Test
- @TestMetadata("Sequence.kt")
- public void testSequence() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/UselessCallOnNotNullChecker/Sequence.kt");
- }
-
- @Test
- @TestMetadata("String.kt")
- public void testString() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/UselessCallOnNotNullChecker/String.kt");
- }
- }
- }
-
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/fromBuilder")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class FromBuilder extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- public void testAllFilesPresentInFromBuilder() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/fromBuilder"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
- }
-
- @Test
- @TestMetadata("complexTypes.kt")
- public void testComplexTypes() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/fromBuilder/complexTypes.kt");
- }
-
- @Test
- @TestMetadata("enums.kt")
- public void testEnums() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/fromBuilder/enums.kt");
- }
-
- @Test
- @TestMetadata("noPrimaryConstructor.kt")
- public void testNoPrimaryConstructor() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/fromBuilder/noPrimaryConstructor.kt");
- }
-
- @Test
- @TestMetadata("simpleClass.kt")
- public void testSimpleClass() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/fromBuilder/simpleClass.kt");
- }
-
- @Test
- @TestMetadata("typeParameters.kt")
- public void testTypeParameters() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/fromBuilder/typeParameters.kt");
- }
- }
-
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/inference")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class Inference extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- public void testAllFilesPresentInInference() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/inference"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
- }
-
- @Test
- @TestMetadata("callableReferenceOnInstance.kt")
- public void testCallableReferenceOnInstance() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/inference/callableReferenceOnInstance.kt");
- }
-
- @Test
- @TestMetadata("callableReferenceToLocalClass.kt")
- public void testCallableReferenceToLocalClass() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/inference/callableReferenceToLocalClass.kt");
- }
-
- @Test
- @TestMetadata("callableReferencesAndDefaultParameters.kt")
- public void testCallableReferencesAndDefaultParameters() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/inference/callableReferencesAndDefaultParameters.kt");
- }
-
- @Test
- @TestMetadata("capturedTypeForJavaTypeParameter.kt")
- public void testCapturedTypeForJavaTypeParameter() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/inference/capturedTypeForJavaTypeParameter.kt");
- }
-
- @Test
- @TestMetadata("coercionToUnitWithEarlyReturn.kt")
- public void testCoercionToUnitWithEarlyReturn() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/inference/coercionToUnitWithEarlyReturn.kt");
- }
-
- @Test
- @TestMetadata("definitelyNotNullIntersectionType.kt")
- public void testDefinitelyNotNullIntersectionType() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/inference/definitelyNotNullIntersectionType.kt");
- }
-
- @Test
- @TestMetadata("extensionCallableReferences.kt")
- public void testExtensionCallableReferences() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/inference/extensionCallableReferences.kt");
- }
-
- @Test
- @TestMetadata("integerLiteralAsComparable.kt")
- public void testIntegerLiteralAsComparable() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/inference/integerLiteralAsComparable.kt");
- }
-
- @Test
- @TestMetadata("intersectionTypesInConstraints.kt")
- public void testIntersectionTypesInConstraints() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/inference/intersectionTypesInConstraints.kt");
- }
-
- @Test
- @TestMetadata("kt40131.kt")
- public void testKt40131() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/inference/kt40131.kt");
- }
-
- @Test
- @TestMetadata("kt41989.kt")
- public void testKt41989() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/inference/kt41989.kt");
- }
-
- @Test
- @TestMetadata("lambdaAsReturnStatementOfLambda.kt")
- public void testLambdaAsReturnStatementOfLambda() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/inference/lambdaAsReturnStatementOfLambda.kt");
- }
-
- @Test
- @TestMetadata("lambdaInElvis.kt")
- public void testLambdaInElvis() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/inference/lambdaInElvis.kt");
- }
-
- @Test
- @TestMetadata("lambdasReturns.kt")
- public void testLambdasReturns() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/inference/lambdasReturns.kt");
- }
-
- @Test
- @TestMetadata("nestedExtensionFunctionType.kt")
- public void testNestedExtensionFunctionType() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/inference/nestedExtensionFunctionType.kt");
- }
-
- @Test
- @TestMetadata("nestedLambdas.kt")
- public void testNestedLambdas() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/inference/nestedLambdas.kt");
- }
-
- @Test
- @TestMetadata("nullableIntegerLiteralType.kt")
- public void testNullableIntegerLiteralType() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/inference/nullableIntegerLiteralType.kt");
- }
-
- @Test
- @TestMetadata("receiverWithCapturedType.kt")
- public void testReceiverWithCapturedType() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/inference/receiverWithCapturedType.kt");
- }
-
- @Test
- @TestMetadata("simpleCapturedTypes.kt")
- public void testSimpleCapturedTypes() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/inference/simpleCapturedTypes.kt");
- }
-
- @Test
- @TestMetadata("typeDepthForTypeAlias.kt")
- public void testTypeDepthForTypeAlias() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/inference/typeDepthForTypeAlias.kt");
- }
- }
-
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/innerClasses")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class InnerClasses extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- public void testAllFilesPresentInInnerClasses() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/innerClasses"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
- }
-
- @Test
- @TestMetadata("inner.kt")
- public void testInner() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/innerClasses/inner.kt");
- }
-
- @Test
- @TestMetadata("innerTypeFromSuperClassInBody.kt")
- public void testInnerTypeFromSuperClassInBody() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/innerClasses/innerTypeFromSuperClassInBody.kt");
- }
-
- @Test
- @TestMetadata("innerTypes.kt")
- public void testInnerTypes() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/innerClasses/innerTypes.kt");
- }
-
- @Test
- @TestMetadata("simple.kt")
- public void testSimple() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/innerClasses/simple.kt");
- }
- }
-
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/localClasses")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class LocalClasses extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- public void testAllFilesPresentInLocalClasses() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/localClasses"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
- }
-
- @Test
- @TestMetadata("implicitInAnonymous.kt")
- public void testImplicitInAnonymous() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/localClasses/implicitInAnonymous.kt");
- }
-
- @Test
- @TestMetadata("implicitInLocalClasses.kt")
- public void testImplicitInLocalClasses() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/localClasses/implicitInLocalClasses.kt");
- }
-
- @Test
- @TestMetadata("typesFromSuperClasses.kt")
- public void testTypesFromSuperClasses() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/localClasses/typesFromSuperClasses.kt");
- }
- }
-
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/multifile")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class Multifile extends AbstractFirDiagnosticsWithLightTreeTest {
@Test
- public void testAllFilesPresentInMultifile() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/multifile"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ @TestMetadata("nestedClassContructor.kt")
+ public void testNestedClassContructor() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/nestedClassContructor.kt");
}
@Test
- @TestMetadata("Annotations.kt")
- public void testAnnotations() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/multifile/Annotations.kt");
+ @TestMetadata("nestedClassNameClash.kt")
+ public void testNestedClassNameClash() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/nestedClassNameClash.kt");
}
@Test
- @TestMetadata("ByteArray.kt")
- public void testByteArray() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/multifile/ByteArray.kt");
+ @TestMetadata("NestedOfAliasedType.kt")
+ public void testNestedOfAliasedType() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/NestedOfAliasedType.kt");
}
@Test
- @TestMetadata("importFromObject.kt")
- public void testImportFromObject() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/multifile/importFromObject.kt");
+ @TestMetadata("nestedReturnType.kt")
+ public void testNestedReturnType() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/nestedReturnType.kt");
}
@Test
@TestMetadata("NestedSuperType.kt")
public void testNestedSuperType() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/multifile/NestedSuperType.kt");
+ runTest("compiler/fir/analysis-tests/testData/resolve/NestedSuperType.kt");
}
@Test
- @TestMetadata("sealedStarImport.kt")
- public void testSealedStarImport() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/multifile/sealedStarImport.kt");
+ @TestMetadata("objectInnerClass.kt")
+ public void testObjectInnerClass() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/objectInnerClass.kt");
}
@Test
- @TestMetadata("simpleAliasedImport.kt")
- public void testSimpleAliasedImport() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/multifile/simpleAliasedImport.kt");
+ @TestMetadata("offOrderMultiBoundGenericOverride.kt")
+ public void testOffOrderMultiBoundGenericOverride() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/offOrderMultiBoundGenericOverride.kt");
}
@Test
- @TestMetadata("simpleImport.kt")
- public void testSimpleImport() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/multifile/simpleImport.kt");
+ @TestMetadata("openInInterface.kt")
+ public void testOpenInInterface() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/openInInterface.kt");
}
@Test
- @TestMetadata("simpleImportNested.kt")
- public void testSimpleImportNested() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/multifile/simpleImportNested.kt");
+ @TestMetadata("problems2.kt")
+ public void testProblems2() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/problems2.kt");
}
@Test
- @TestMetadata("simpleImportOuter.kt")
- public void testSimpleImportOuter() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/multifile/simpleImportOuter.kt");
+ @TestMetadata("propertyFromJavaPlusAssign.kt")
+ public void testPropertyFromJavaPlusAssign() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/propertyFromJavaPlusAssign.kt");
}
@Test
- @TestMetadata("simpleStarImport.kt")
- public void testSimpleStarImport() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/multifile/simpleStarImport.kt");
+ @TestMetadata("qualifierWithCompanion.kt")
+ public void testQualifierWithCompanion() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/qualifierWithCompanion.kt");
}
@Test
- @TestMetadata("TypeAliasExpansion.kt")
- public void testTypeAliasExpansion() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/multifile/TypeAliasExpansion.kt");
+ @TestMetadata("rawTypeSam.kt")
+ public void testRawTypeSam() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/rawTypeSam.kt");
}
- }
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/overrides")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class Overrides extends AbstractFirDiagnosticsWithLightTreeTest {
@Test
- public void testAllFilesPresentInOverrides() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/overrides"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ @TestMetadata("recursiveCallOnWhenWithSealedClass.kt")
+ public void testRecursiveCallOnWhenWithSealedClass() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/recursiveCallOnWhenWithSealedClass.kt");
}
@Test
- @TestMetadata("generics.kt")
- public void testGenerics() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/overrides/generics.kt");
+ @TestMetadata("sealedClass.kt")
+ public void testSealedClass() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/sealedClass.kt");
}
@Test
- @TestMetadata("protobufExt.kt")
- public void testProtobufExt() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/overrides/protobufExt.kt");
+ @TestMetadata("simpleClass.kt")
+ public void testSimpleClass() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/simpleClass.kt");
}
@Test
- @TestMetadata("simple.kt")
- public void testSimple() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/overrides/simple.kt");
+ @TestMetadata("simpleTypeAlias.kt")
+ public void testSimpleTypeAlias() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/simpleTypeAlias.kt");
}
@Test
- @TestMetadata("simpleFakeOverride.kt")
- public void testSimpleFakeOverride() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/overrides/simpleFakeOverride.kt");
+ @TestMetadata("spreadOperator.kt")
+ public void testSpreadOperator() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/spreadOperator.kt");
}
@Test
- @TestMetadata("simpleMostSpecific.kt")
- public void testSimpleMostSpecific() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/overrides/simpleMostSpecific.kt");
+ @TestMetadata("statusResolveForTypealiasAsSuperClass.kt")
+ public void testStatusResolveForTypealiasAsSuperClass() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/statusResolveForTypealiasAsSuperClass.kt");
}
@Test
- @TestMetadata("supertypeGenerics.kt")
- public void testSupertypeGenerics() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/overrides/supertypeGenerics.kt");
+ @TestMetadata("syntheticsVsNormalProperties.kt")
+ public void testSyntheticsVsNormalProperties() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/syntheticsVsNormalProperties.kt");
}
@Test
- @TestMetadata("supertypeGenericsComplex.kt")
- public void testSupertypeGenericsComplex() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/overrides/supertypeGenericsComplex.kt");
+ @TestMetadata("treeSet.kt")
+ public void testTreeSet() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/treeSet.kt");
}
@Test
- @TestMetadata("three.kt")
- public void testThree() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/overrides/three.kt");
+ @TestMetadata("tryInference.kt")
+ public void testTryInference() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/tryInference.kt");
}
- }
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/problems")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class Problems extends AbstractFirDiagnosticsWithLightTreeTest {
@Test
- public void testAllFilesPresentInProblems() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/problems"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ @TestMetadata("TwoDeclarationsInSameFile.kt")
+ public void testTwoDeclarationsInSameFile() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/TwoDeclarationsInSameFile.kt");
}
@Test
- @TestMetadata("compilerPhase.kt")
- public void testCompilerPhase() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/problems/compilerPhase.kt");
+ @TestMetadata("typeAliasWithGeneric.kt")
+ public void testTypeAliasWithGeneric() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/typeAliasWithGeneric.kt");
}
@Test
- @TestMetadata("complexLambdaWithTypeVariableAsExpectedType.kt")
- public void testComplexLambdaWithTypeVariableAsExpectedType() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/problems/complexLambdaWithTypeVariableAsExpectedType.kt");
+ @TestMetadata("typeAliasWithTypeArguments.kt")
+ public void testTypeAliasWithTypeArguments() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/typeAliasWithTypeArguments.kt");
}
@Test
- @TestMetadata("defaultParametersFromDifferentScopes.kt")
- public void testDefaultParametersFromDifferentScopes() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/problems/defaultParametersFromDifferentScopes.kt");
+ @TestMetadata("typeFromGetter.kt")
+ public void testTypeFromGetter() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/typeFromGetter.kt");
}
@Test
- @TestMetadata("definitelyNotNullAndOriginalType.kt")
- public void testDefinitelyNotNullAndOriginalType() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/problems/definitelyNotNullAndOriginalType.kt");
+ @TestMetadata("typeParameterInPropertyReceiver.kt")
+ public void testTypeParameterInPropertyReceiver() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/typeParameterInPropertyReceiver.kt");
}
@Test
- @TestMetadata("flexibleTypeVarAgainstNull.kt")
- public void testFlexibleTypeVarAgainstNull() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/problems/flexibleTypeVarAgainstNull.kt");
+ @TestMetadata("typeParameterVsNested.kt")
+ public void testTypeParameterVsNested() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/typeParameterVsNested.kt");
}
@Test
- @TestMetadata("inaccessibleJavaGetter.kt")
- public void testInaccessibleJavaGetter() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/problems/inaccessibleJavaGetter.kt");
+ @TestMetadata("typesInLocalFunctions.kt")
+ public void testTypesInLocalFunctions() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/typesInLocalFunctions.kt");
}
@Test
- @TestMetadata("innerClassHierarchy.kt")
- public void testInnerClassHierarchy() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/problems/innerClassHierarchy.kt");
+ @TestMetadata("varargInPrimaryConstructor.kt")
+ public void testVarargInPrimaryConstructor() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/varargInPrimaryConstructor.kt");
}
@Test
- @TestMetadata("javaQualifier.kt")
- public void testJavaQualifier() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/problems/javaQualifier.kt");
+ @TestMetadata("whenAsReceiver.kt")
+ public void testWhenAsReceiver() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/whenAsReceiver.kt");
}
@Test
- @TestMetadata("kt42346.kt")
- public void testKt42346() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/problems/kt42346.kt");
+ @TestMetadata("whenElse.kt")
+ public void testWhenElse() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/whenElse.kt");
}
@Test
- @TestMetadata("multipleJavaClassesInOneFile.kt")
- public void testMultipleJavaClassesInOneFile() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/problems/multipleJavaClassesInOneFile.kt");
+ @TestMetadata("whenExpressionType.kt")
+ public void testWhenExpressionType() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/whenExpressionType.kt");
}
@Test
- @TestMetadata("objectDerivedFromInnerClass.kt")
- public void testObjectDerivedFromInnerClass() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/problems/objectDerivedFromInnerClass.kt");
- }
-
- @Test
- @TestMetadata("questionableSmartCast.kt")
- public void testQuestionableSmartCast() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/problems/questionableSmartCast.kt");
- }
-
- @Test
- @TestMetadata("recursiveNamedAnnotation.kt")
- public void testRecursiveNamedAnnotation() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/problems/recursiveNamedAnnotation.kt");
- }
-
- @Test
- @TestMetadata("safeCallInvoke.kt")
- public void testSafeCallInvoke() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/problems/safeCallInvoke.kt");
- }
-
- @Test
- @TestMetadata("secondaryConstructorCfg.kt")
- public void testSecondaryConstructorCfg() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/problems/secondaryConstructorCfg.kt");
- }
- }
-
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/properties")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class Properties extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- public void testAllFilesPresentInProperties() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/properties"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
- }
-
- @Test
- @TestMetadata("javaAccessorConversion.kt")
- public void testJavaAccessorConversion() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/properties/javaAccessorConversion.kt");
- }
-
- @Test
- @TestMetadata("javaAccessorsComplex.kt")
- public void testJavaAccessorsComplex() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/properties/javaAccessorsComplex.kt");
- }
-
- @Test
- @TestMetadata("kotlinOverridesJavaComplex.kt")
- public void testKotlinOverridesJavaComplex() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/properties/kotlinOverridesJavaComplex.kt");
- }
-
- @Test
- @TestMetadata("noBackingFieldForExtension.kt")
- public void testNoBackingFieldForExtension() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/properties/noBackingFieldForExtension.kt");
- }
-
- @Test
- @TestMetadata("noBackingFieldInProperty.kt")
- public void testNoBackingFieldInProperty() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/properties/noBackingFieldInProperty.kt");
- }
-
- @Test
- @TestMetadata("syntheticPropertiesForJavaAnnotations.kt")
- public void testSyntheticPropertiesForJavaAnnotations() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/properties/syntheticPropertiesForJavaAnnotations.kt");
- }
- }
-
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/references")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class References extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- public void testAllFilesPresentInReferences() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/references"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
- }
-
- @Test
- @TestMetadata("integerLiteralInLhs.kt")
- public void testIntegerLiteralInLhs() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/references/integerLiteralInLhs.kt");
- }
-
- @Test
- @TestMetadata("referenceToExtension.kt")
- public void testReferenceToExtension() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/references/referenceToExtension.kt");
- }
-
- @Test
- @TestMetadata("simple.kt")
- public void testSimple() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/references/simple.kt");
- }
-
- @Test
- @TestMetadata("superMember.kt")
- public void testSuperMember() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/references/superMember.kt");
- }
- }
-
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/samConstructors")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class SamConstructors extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- public void testAllFilesPresentInSamConstructors() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/samConstructors"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
- }
-
- @Test
- @TestMetadata("genericSam.kt")
- public void testGenericSam() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/samConstructors/genericSam.kt");
- }
-
- @Test
- @TestMetadata("genericSamInferenceFromExpectType.kt")
- public void testGenericSamInferenceFromExpectType() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/samConstructors/genericSamInferenceFromExpectType.kt");
- }
-
- @Test
- @TestMetadata("kotlinSam.kt")
- public void testKotlinSam() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/samConstructors/kotlinSam.kt");
- }
-
- @Test
- @TestMetadata("realConstructorFunction.kt")
- public void testRealConstructorFunction() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/samConstructors/realConstructorFunction.kt");
- }
-
- @Test
- @TestMetadata("runnable.kt")
- public void testRunnable() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/samConstructors/runnable.kt");
- }
-
- @Test
- @TestMetadata("simple.kt")
- public void testSimple() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/samConstructors/simple.kt");
- }
- }
-
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/samConversions")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class SamConversions extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- public void testAllFilesPresentInSamConversions() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/samConversions"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
- }
-
- @Test
- @TestMetadata("genericSam.kt")
- public void testGenericSam() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/samConversions/genericSam.kt");
- }
-
- @Test
- @TestMetadata("kotlinSam.kt")
- public void testKotlinSam() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/samConversions/kotlinSam.kt");
- }
-
- @Test
- @TestMetadata("notSamBecauseOfSupertype.kt")
- public void testNotSamBecauseOfSupertype() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/samConversions/notSamBecauseOfSupertype.kt");
- }
-
- @Test
- @TestMetadata("runnable.kt")
- public void testRunnable() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/samConversions/runnable.kt");
- }
-
- @Test
- @TestMetadata("samConversionInConstructorCall.kt")
- public void testSamConversionInConstructorCall() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/samConversions/samConversionInConstructorCall.kt");
- }
-
- @Test
- @TestMetadata("samSupertype.kt")
- public void testSamSupertype() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/samConversions/samSupertype.kt");
- }
-
- @Test
- @TestMetadata("samSupertypeWithOverride.kt")
- public void testSamSupertypeWithOverride() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/samConversions/samSupertypeWithOverride.kt");
- }
-
- @Test
- @TestMetadata("samWithEquals.kt")
- public void testSamWithEquals() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/samConversions/samWithEquals.kt");
- }
-
- @Test
- @TestMetadata("simple.kt")
- public void testSimple() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/samConversions/simple.kt");
- }
- }
-
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class Smartcasts extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- public void testAllFilesPresentInSmartcasts() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/smartcasts"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
- }
-
- @Test
- @TestMetadata("bangbang.kt")
- public void testBangbang() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/bangbang.kt");
- }
-
- @Test
- @TestMetadata("casts.kt")
- public void testCasts() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/casts.kt");
- }
-
- @Test
- @TestMetadata("equalsAndIdentity.kt")
- public void testEqualsAndIdentity() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/equalsAndIdentity.kt");
- }
-
- @Test
- @TestMetadata("kt10240.kt")
- public void testKt10240() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/kt10240.kt");
- }
-
- @Test
- @TestMetadata("kt37327.kt")
- public void testKt37327() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/kt37327.kt");
- }
-
- @Test
- @TestMetadata("kt39000.kt")
- public void testKt39000() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/kt39000.kt");
- }
-
- @Test
- @TestMetadata("multipleCasts.kt")
- public void testMultipleCasts() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/multipleCasts.kt");
- }
-
- @Test
- @TestMetadata("nullability.kt")
- public void testNullability() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/nullability.kt");
- }
-
- @Test
- @TestMetadata("orInWhenBranch.kt")
- public void testOrInWhenBranch() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/orInWhenBranch.kt");
- }
-
- @Test
- @TestMetadata("smartCastInInit.kt")
- public void testSmartCastInInit() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/smartCastInInit.kt");
- }
-
- @Test
- @TestMetadata("smartcastToNothing.kt")
- public void testSmartcastToNothing() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/smartcastToNothing.kt");
+ @TestMetadata("whenInference.kt")
+ public void testWhenInference() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/whenInference.kt");
}
@Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/booleans")
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/arguments")
@TestDataPath("$PROJECT_ROOT")
@Execution(ExecutionMode.SAME_THREAD)
- public class Booleans extends AbstractFirDiagnosticsWithLightTreeTest {
+ public class Arguments extends AbstractFirDiagnosticsWithLightTreeTest {
@Test
- public void testAllFilesPresentInBooleans() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/smartcasts/booleans"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ public void testAllFilesPresentInArguments() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/arguments"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@Test
- @TestMetadata("booleanOperators.kt")
- public void testBooleanOperators() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/booleans/booleanOperators.kt");
+ @TestMetadata("ambiguityOnJavaOverride.kt")
+ public void testAmbiguityOnJavaOverride() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/arguments/ambiguityOnJavaOverride.kt");
}
@Test
- @TestMetadata("equalsToBoolean.kt")
- public void testEqualsToBoolean() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/booleans/equalsToBoolean.kt");
+ @TestMetadata("argumentsOfAnnotations.kt")
+ public void testArgumentsOfAnnotations() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/arguments/argumentsOfAnnotations.kt");
}
@Test
- @TestMetadata("jumpFromRhsOfOperator.kt")
- public void testJumpFromRhsOfOperator() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/booleans/jumpFromRhsOfOperator.kt");
- }
- }
-
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/boundSmartcasts")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class BoundSmartcasts extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- public void testAllFilesPresentInBoundSmartcasts() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/smartcasts/boundSmartcasts"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ @TestMetadata("argumentsOfJavaAnnotation.kt")
+ public void testArgumentsOfJavaAnnotation() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/arguments/argumentsOfJavaAnnotation.kt");
}
@Test
- @TestMetadata("boundSmartcasts.kt")
- public void testBoundSmartcasts() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/boundSmartcasts/boundSmartcasts.kt");
+ @TestMetadata("default.kt")
+ public void testDefault() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/arguments/default.kt");
}
@Test
- @TestMetadata("boundSmartcastsInBranches.kt")
- public void testBoundSmartcastsInBranches() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/boundSmartcasts/boundSmartcastsInBranches.kt");
+ @TestMetadata("defaultFromOverrides.kt")
+ public void testDefaultFromOverrides() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/arguments/defaultFromOverrides.kt");
}
@Test
- @TestMetadata("functionCallBound.kt")
- public void testFunctionCallBound() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/boundSmartcasts/functionCallBound.kt");
- }
- }
-
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class ControlStructures extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- public void testAllFilesPresentInControlStructures() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ @TestMetadata("definetelyNotNullForTypeParameter.kt")
+ public void testDefinetelyNotNullForTypeParameter() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/arguments/definetelyNotNullForTypeParameter.kt");
}
@Test
- @TestMetadata("elvis.kt")
- public void testElvis() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures/elvis.kt");
+ @TestMetadata("extensionLambdaInDefaultArgument.kt")
+ public void testExtensionLambdaInDefaultArgument() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/arguments/extensionLambdaInDefaultArgument.kt");
}
@Test
- @TestMetadata("returns.kt")
- public void testReturns() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures/returns.kt");
+ @TestMetadata("fieldPlusAssign.kt")
+ public void testFieldPlusAssign() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/arguments/fieldPlusAssign.kt");
}
@Test
- @TestMetadata("simpleIf.kt")
- public void testSimpleIf() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures/simpleIf.kt");
+ @TestMetadata("incorrectFunctionalType.kt")
+ public void testIncorrectFunctionalType() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/arguments/incorrectFunctionalType.kt");
}
@Test
- @TestMetadata("smartcastFromArgument.kt")
- public void testSmartcastFromArgument() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures/smartcastFromArgument.kt");
- }
-
- @Test
- @TestMetadata("when.kt")
- public void testWhen() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures/when.kt");
- }
- }
-
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/lambdas")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class Lambdas extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- public void testAllFilesPresentInLambdas() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/smartcasts/lambdas"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
- }
-
- @Test
- @TestMetadata("inPlaceLambdas.kt")
- public void testInPlaceLambdas() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/lambdas/inPlaceLambdas.kt");
- }
-
- @Test
- @TestMetadata("lambdaInWhenBranch.kt")
- public void testLambdaInWhenBranch() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/lambdas/lambdaInWhenBranch.kt");
- }
-
- @Test
- @TestMetadata("smartcastOnLambda.kt")
- public void testSmartcastOnLambda() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/lambdas/smartcastOnLambda.kt");
- }
- }
-
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/loops")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class Loops extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- public void testAllFilesPresentInLoops() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/smartcasts/loops"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
- }
-
- @Test
- @TestMetadata("dataFlowInfoFromWhileCondition.kt")
- public void testDataFlowInfoFromWhileCondition() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/loops/dataFlowInfoFromWhileCondition.kt");
- }
-
- @Test
- @TestMetadata("endlessLoops.kt")
- public void testEndlessLoops() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/loops/endlessLoops.kt");
- }
- }
-
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/problems")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class Problems extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- public void testAllFilesPresentInProblems() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/smartcasts/problems"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ @TestMetadata("integerLiteralTypes.kt")
+ public void testIntegerLiteralTypes() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/arguments/integerLiteralTypes.kt");
}
@Test
@TestMetadata("invoke.kt")
public void testInvoke() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/problems/invoke.kt");
+ runTest("compiler/fir/analysis-tests/testData/resolve/arguments/invoke.kt");
+ }
+
+ @Test
+ @TestMetadata("javaAnnotationsWithArrayValue.kt")
+ public void testJavaAnnotationsWithArrayValue() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/arguments/javaAnnotationsWithArrayValue.kt");
+ }
+
+ @Test
+ @TestMetadata("javaArrayVariance.kt")
+ public void testJavaArrayVariance() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/arguments/javaArrayVariance.kt");
+ }
+
+ @Test
+ @TestMetadata("kt41940.kt")
+ public void testKt41940() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/arguments/kt41940.kt");
+ }
+
+ @Test
+ @TestMetadata("lambda.kt")
+ public void testLambda() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/arguments/lambda.kt");
+ }
+
+ @Test
+ @TestMetadata("lambdaInLambda.kt")
+ public void testLambdaInLambda() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/arguments/lambdaInLambda.kt");
+ }
+
+ @Test
+ @TestMetadata("lambdaInLambda2.kt")
+ public void testLambdaInLambda2() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/arguments/lambdaInLambda2.kt");
+ }
+
+ @Test
+ @TestMetadata("lambdaInUnresolvedCall.kt")
+ public void testLambdaInUnresolvedCall() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/arguments/lambdaInUnresolvedCall.kt");
+ }
+
+ @Test
+ @TestMetadata("namedArrayInAnnotation.kt")
+ public void testNamedArrayInAnnotation() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/arguments/namedArrayInAnnotation.kt");
+ }
+
+ @Test
+ @TestMetadata("operatorsOverLiterals.kt")
+ public void testOperatorsOverLiterals() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/arguments/operatorsOverLiterals.kt");
+ }
+
+ @Test
+ @TestMetadata("overloadByReceiver.kt")
+ public void testOverloadByReceiver() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/arguments/overloadByReceiver.kt");
+ }
+
+ @Test
+ @TestMetadata("overloadWithDefault.kt")
+ public void testOverloadWithDefault() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/arguments/overloadWithDefault.kt");
+ }
+
+ @Test
+ @TestMetadata("simple.kt")
+ public void testSimple() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/arguments/simple.kt");
+ }
+
+ @Test
+ @TestMetadata("stringTemplates.kt")
+ public void testStringTemplates() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/arguments/stringTemplates.kt");
+ }
+
+ @Test
+ @TestMetadata("tryInLambda.kt")
+ public void testTryInLambda() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/arguments/tryInLambda.kt");
+ }
+
+ @Test
+ @TestMetadata("untouchedReturnInIf.kt")
+ public void testUntouchedReturnInIf() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/arguments/untouchedReturnInIf.kt");
+ }
+
+ @Test
+ @TestMetadata("vararg.kt")
+ public void testVararg() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/arguments/vararg.kt");
+ }
+
+ @Test
+ @TestMetadata("varargOfLambdasWithReceiver.kt")
+ public void testVarargOfLambdasWithReceiver() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/arguments/varargOfLambdasWithReceiver.kt");
+ }
+
+ @Test
+ @TestMetadata("varargProjection.kt")
+ public void testVarargProjection() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/arguments/varargProjection.kt");
}
}
@Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/receivers")
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/arrays")
@TestDataPath("$PROJECT_ROOT")
@Execution(ExecutionMode.SAME_THREAD)
- public class Receivers extends AbstractFirDiagnosticsWithLightTreeTest {
+ public class Arrays extends AbstractFirDiagnosticsWithLightTreeTest {
@Test
- public void testAllFilesPresentInReceivers() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/smartcasts/receivers"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ public void testAllFilesPresentInArrays() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/arrays"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@Test
- @TestMetadata("implicitReceiverAsWhenSubject.kt")
- public void testImplicitReceiverAsWhenSubject() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/receivers/implicitReceiverAsWhenSubject.kt");
+ @TestMetadata("arraySet.kt")
+ public void testArraySet() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/arrays/arraySet.kt");
}
@Test
- @TestMetadata("implicitReceivers.kt")
- public void testImplicitReceivers() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/receivers/implicitReceivers.kt");
- }
-
- @Test
- @TestMetadata("mixingImplicitAndExplicitReceivers.kt")
- public void testMixingImplicitAndExplicitReceivers() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/receivers/mixingImplicitAndExplicitReceivers.kt");
- }
-
- @Test
- @TestMetadata("thisOfExtensionProperty.kt")
- public void testThisOfExtensionProperty() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/receivers/thisOfExtensionProperty.kt");
+ @TestMetadata("arraySetWithOperation.kt")
+ public void testArraySetWithOperation() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/arrays/arraySetWithOperation.kt");
}
}
@Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/safeCalls")
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/builtins")
@TestDataPath("$PROJECT_ROOT")
@Execution(ExecutionMode.SAME_THREAD)
- public class SafeCalls extends AbstractFirDiagnosticsWithLightTreeTest {
+ public class Builtins extends AbstractFirDiagnosticsWithLightTreeTest {
@Test
- public void testAllFilesPresentInSafeCalls() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/smartcasts/safeCalls"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ public void testAllFilesPresentInBuiltins() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/builtins"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@Test
- @TestMetadata("assignSafeCall.kt")
- public void testAssignSafeCall() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/safeCalls/assignSafeCall.kt");
+ @TestMetadata("lists.kt")
+ public void testLists() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/builtins/lists.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/callResolution")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class CallResolution extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInCallResolution() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/callResolution"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@Test
- @TestMetadata("boundSafeCallAndIsCheck.kt")
- public void testBoundSafeCallAndIsCheck() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/safeCalls/boundSafeCallAndIsCheck.kt");
+ @TestMetadata("companionInvoke.kt")
+ public void testCompanionInvoke() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/companionInvoke.kt");
}
@Test
- @TestMetadata("safeCallAndEqualityToBool.kt")
- public void testSafeCallAndEqualityToBool() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/safeCalls/safeCallAndEqualityToBool.kt");
+ @TestMetadata("companionVsSuperStatic.kt")
+ public void testCompanionVsSuperStatic() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/companionVsSuperStatic.kt");
+ }
+
+ @Test
+ @TestMetadata("debugExpressionType.kt")
+ public void testDebugExpressionType() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/debugExpressionType.kt");
+ }
+
+ @Test
+ @TestMetadata("debugInfoCall.kt")
+ public void testDebugInfoCall() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/debugInfoCall.kt");
+ }
+
+ @Test
+ @TestMetadata("errorCandidates.kt")
+ public void testErrorCandidates() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/errorCandidates.kt");
+ }
+
+ @Test
+ @TestMetadata("extensionInvokeAfterSafeCall.kt")
+ public void testExtensionInvokeAfterSafeCall() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/extensionInvokeAfterSafeCall.kt");
+ }
+
+ @Test
+ @TestMetadata("invokeAmbiguity.kt")
+ public void testInvokeAmbiguity() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/invokeAmbiguity.kt");
+ }
+
+ @Test
+ @TestMetadata("invokeWithReceiverAndArgument.kt")
+ public void testInvokeWithReceiverAndArgument() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/invokeWithReceiverAndArgument.kt");
+ }
+
+ @Test
+ @TestMetadata("lambdaAsReceiver.kt")
+ public void testLambdaAsReceiver() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/lambdaAsReceiver.kt");
+ }
+
+ @Test
+ @TestMetadata("objectInvoke.kt")
+ public void testObjectInvoke() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/objectInvoke.kt");
+ }
+
+ @Test
+ @TestMetadata("safeCallOnTypeAlias.kt")
+ public void testSafeCallOnTypeAlias() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/safeCallOnTypeAlias.kt");
+ }
+
+ @Test
+ @TestMetadata("superAny.kt")
+ public void testSuperAny() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/superAny.kt");
+ }
+
+ @Test
+ @TestMetadata("syntheticPropertiesWrongImplicitReceiver.kt")
+ public void testSyntheticPropertiesWrongImplicitReceiver() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/syntheticPropertiesWrongImplicitReceiver.kt");
+ }
+
+ @Test
+ @TestMetadata("typeAliasWithNotNullBound.kt")
+ public void testTypeAliasWithNotNullBound() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/typeAliasWithNotNullBound.kt");
+ }
+
+ @Test
+ @TestMetadata("uselessMultipleBounds.kt")
+ public void testUselessMultipleBounds() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/callResolution/uselessMultipleBounds.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/cfg")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class Cfg extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInCfg() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/cfg"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("annotatedLocalClass.kt")
+ public void testAnnotatedLocalClass() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/cfg/annotatedLocalClass.kt");
+ }
+
+ @Test
+ @TestMetadata("binaryOperations.kt")
+ public void testBinaryOperations() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/cfg/binaryOperations.kt");
+ }
+
+ @Test
+ @TestMetadata("booleanOperatorsWithConsts.kt")
+ public void testBooleanOperatorsWithConsts() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/cfg/booleanOperatorsWithConsts.kt");
+ }
+
+ @Test
+ @TestMetadata("complex.kt")
+ public void testComplex() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/cfg/complex.kt");
+ }
+
+ @Test
+ @TestMetadata("defaultArguments.kt")
+ public void testDefaultArguments() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/cfg/defaultArguments.kt");
+ }
+
+ @Test
+ @TestMetadata("emptyWhen.kt")
+ public void testEmptyWhen() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/cfg/emptyWhen.kt");
+ }
+
+ @Test
+ @TestMetadata("flowFromInplaceLambda.kt")
+ public void testFlowFromInplaceLambda() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/cfg/flowFromInplaceLambda.kt");
+ }
+
+ @Test
+ @TestMetadata("initBlock.kt")
+ public void testInitBlock() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/cfg/initBlock.kt");
+ }
+
+ @Test
+ @TestMetadata("initBlockAndInPlaceLambda.kt")
+ public void testInitBlockAndInPlaceLambda() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/cfg/initBlockAndInPlaceLambda.kt");
+ }
+
+ @Test
+ @TestMetadata("innerClassInAnonymousObject.kt")
+ public void testInnerClassInAnonymousObject() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/cfg/innerClassInAnonymousObject.kt");
+ }
+
+ @Test
+ @TestMetadata("inplaceLambdaInControlFlowExpressions.kt")
+ public void testInplaceLambdaInControlFlowExpressions() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/cfg/inplaceLambdaInControlFlowExpressions.kt");
+ }
+
+ @Test
+ @TestMetadata("jumps.kt")
+ public void testJumps() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/cfg/jumps.kt");
+ }
+
+ @Test
+ @TestMetadata("lambdaAsReturnOfLambda.kt")
+ public void testLambdaAsReturnOfLambda() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/cfg/lambdaAsReturnOfLambda.kt");
+ }
+
+ @Test
+ @TestMetadata("lambdaReturningObject.kt")
+ public void testLambdaReturningObject() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/cfg/lambdaReturningObject.kt");
+ }
+
+ @Test
+ @TestMetadata("lambdas.kt")
+ public void testLambdas() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/cfg/lambdas.kt");
+ }
+
+ @Test
+ @TestMetadata("localClassesWithImplicit.kt")
+ public void testLocalClassesWithImplicit() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/cfg/localClassesWithImplicit.kt");
+ }
+
+ @Test
+ @TestMetadata("loops.kt")
+ public void testLoops() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/cfg/loops.kt");
+ }
+
+ @Test
+ @TestMetadata("postponedLambdaInConstructor.kt")
+ public void testPostponedLambdaInConstructor() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/cfg/postponedLambdaInConstructor.kt");
+ }
+
+ @Test
+ @TestMetadata("postponedLambdas.kt")
+ public void testPostponedLambdas() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/cfg/postponedLambdas.kt");
+ }
+
+ @Test
+ @TestMetadata("propertiesAndInitBlocks.kt")
+ public void testPropertiesAndInitBlocks() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/cfg/propertiesAndInitBlocks.kt");
+ }
+
+ @Test
+ @TestMetadata("returnValuesFromLambda.kt")
+ public void testReturnValuesFromLambda() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/cfg/returnValuesFromLambda.kt");
}
@Test
@TestMetadata("safeCalls.kt")
public void testSafeCalls() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/safeCalls/safeCalls.kt");
+ runTest("compiler/fir/analysis-tests/testData/resolve/cfg/safeCalls.kt");
+ }
+
+ @Test
+ @TestMetadata("simple.kt")
+ public void testSimple() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/cfg/simple.kt");
+ }
+
+ @Test
+ @TestMetadata("tryCatch.kt")
+ public void testTryCatch() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/cfg/tryCatch.kt");
+ }
+
+ @Test
+ @TestMetadata("when.kt")
+ public void testWhen() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/cfg/when.kt");
}
}
@Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/stability")
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/constructors")
@TestDataPath("$PROJECT_ROOT")
@Execution(ExecutionMode.SAME_THREAD)
- public class Stability extends AbstractFirDiagnosticsWithLightTreeTest {
+ public class Constructors extends AbstractFirDiagnosticsWithLightTreeTest {
@Test
- public void testAllFilesPresentInStability() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/smartcasts/stability"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ public void testAllFilesPresentInConstructors() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/constructors"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@Test
- @TestMetadata("overridenOpenVal.kt")
- public void testOverridenOpenVal() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/stability/overridenOpenVal.kt");
+ @TestMetadata("noSuperCallInSupertypes.kt")
+ public void testNoSuperCallInSupertypes() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/constructors/noSuperCallInSupertypes.kt");
}
}
@Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/variables")
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/delegates")
@TestDataPath("$PROJECT_ROOT")
@Execution(ExecutionMode.SAME_THREAD)
- public class Variables extends AbstractFirDiagnosticsWithLightTreeTest {
+ public class Delegates extends AbstractFirDiagnosticsWithLightTreeTest {
@Test
- public void testAllFilesPresentInVariables() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/smartcasts/variables"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ public void testAllFilesPresentInDelegates() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/delegates"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@Test
- @TestMetadata("delayedAssignment.kt")
- public void testDelayedAssignment() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/variables/delayedAssignment.kt");
+ @TestMetadata("delegateInference.kt")
+ public void testDelegateInference() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/delegates/delegateInference.kt");
}
@Test
- @TestMetadata("smartcastAfterReassignment.kt")
- public void testSmartcastAfterReassignment() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/variables/smartcastAfterReassignment.kt");
+ @TestMetadata("delegateWithLambda.kt")
+ public void testDelegateWithLambda() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/delegates/delegateWithLambda.kt");
+ }
+
+ @Test
+ @TestMetadata("extensionGenericGetValue.kt")
+ public void testExtensionGenericGetValue() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/delegates/extensionGenericGetValue.kt");
+ }
+
+ @Test
+ @TestMetadata("extensionGetValueWithTypeVariableAsReceiver.kt")
+ public void testExtensionGetValueWithTypeVariableAsReceiver() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/delegates/extensionGetValueWithTypeVariableAsReceiver.kt");
+ }
+
+ @Test
+ @TestMetadata("kt41982.kt")
+ public void testKt41982() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/delegates/kt41982.kt");
+ }
+
+ @Test
+ @TestMetadata("provideDelegate.kt")
+ public void testProvideDelegate() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/delegates/provideDelegate.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/diagnostics")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class Diagnostics extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ @TestMetadata("abstractSuperCall.kt")
+ public void testAbstractSuperCall() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/abstractSuperCall.kt");
+ }
+
+ @Test
+ @TestMetadata("abstractSuperCallInPresenseOfNonAbstractMethodInParent.kt")
+ public void testAbstractSuperCallInPresenseOfNonAbstractMethodInParent() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/abstractSuperCallInPresenseOfNonAbstractMethodInParent.kt");
+ }
+
+ @Test
+ public void testAllFilesPresentInDiagnostics() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/diagnostics"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("annotationArgumentKClassLiteralTypeError.kt")
+ public void testAnnotationArgumentKClassLiteralTypeError() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/annotationArgumentKClassLiteralTypeError.kt");
+ }
+
+ @Test
+ @TestMetadata("annotationArgumentMustBeConst.kt")
+ public void testAnnotationArgumentMustBeConst() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/annotationArgumentMustBeConst.kt");
+ }
+
+ @Test
+ @TestMetadata("annotationArgumentMustBeEnumConst.kt")
+ public void testAnnotationArgumentMustBeEnumConst() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/annotationArgumentMustBeEnumConst.kt");
+ }
+
+ @Test
+ @TestMetadata("annotationArgumentMustBeKClassLiteral.kt")
+ public void testAnnotationArgumentMustBeKClassLiteral() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/annotationArgumentMustBeKClassLiteral.kt");
+ }
+
+ @Test
+ @TestMetadata("annotationClassMember.kt")
+ public void testAnnotationClassMember() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/annotationClassMember.kt");
+ }
+
+ @Test
+ @TestMetadata("anonymousObjectByDelegate.kt")
+ public void testAnonymousObjectByDelegate() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/anonymousObjectByDelegate.kt");
+ }
+
+ @Test
+ @TestMetadata("classInSupertypeForEnum.kt")
+ public void testClassInSupertypeForEnum() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/classInSupertypeForEnum.kt");
+ }
+
+ @Test
+ @TestMetadata("conflictingOverloads.kt")
+ public void testConflictingOverloads() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/conflictingOverloads.kt");
+ }
+
+ @Test
+ @TestMetadata("conflictingProjection.kt")
+ public void testConflictingProjection() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/conflictingProjection.kt");
+ }
+
+ @Test
+ @TestMetadata("constructorInInterface.kt")
+ public void testConstructorInInterface() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/constructorInInterface.kt");
+ }
+
+ @Test
+ @TestMetadata("cyclicConstructorDelegationCall.kt")
+ public void testCyclicConstructorDelegationCall() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/cyclicConstructorDelegationCall.kt");
+ }
+
+ @Test
+ @TestMetadata("delegationInInterface.kt")
+ public void testDelegationInInterface() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/delegationInInterface.kt");
+ }
+
+ @Test
+ @TestMetadata("delegationSuperCallInEnumConstructor.kt")
+ public void testDelegationSuperCallInEnumConstructor() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/delegationSuperCallInEnumConstructor.kt");
+ }
+
+ @Test
+ @TestMetadata("explicitDelegationCallRequired.kt")
+ public void testExplicitDelegationCallRequired() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/explicitDelegationCallRequired.kt");
+ }
+
+ @Test
+ @TestMetadata("inapplicableLateinitModifier.kt")
+ public void testInapplicableLateinitModifier() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/inapplicableLateinitModifier.kt");
+ }
+
+ @Test
+ @TestMetadata("incompatibleModifiers.kt")
+ public void testIncompatibleModifiers() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/incompatibleModifiers.kt");
+ }
+
+ @Test
+ @TestMetadata("infixFunctions.kt")
+ public void testInfixFunctions() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/infixFunctions.kt");
+ }
+
+ @Test
+ @TestMetadata("instanceAccessBeforeSuperCall.kt")
+ public void testInstanceAccessBeforeSuperCall() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/instanceAccessBeforeSuperCall.kt");
+ }
+
+ @Test
+ @TestMetadata("interfaceWithSuperclass.kt")
+ public void testInterfaceWithSuperclass() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/interfaceWithSuperclass.kt");
+ }
+
+ @Test
+ @TestMetadata("localAnnotationClass.kt")
+ public void testLocalAnnotationClass() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/localAnnotationClass.kt");
+ }
+
+ @Test
+ @TestMetadata("localEntitytNotAllowed.kt")
+ public void testLocalEntitytNotAllowed() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/localEntitytNotAllowed.kt");
+ }
+
+ @Test
+ @TestMetadata("manyCompanionObjects.kt")
+ public void testManyCompanionObjects() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/manyCompanionObjects.kt");
+ }
+
+ @Test
+ @TestMetadata("methodOfAnyImplementedInInterface.kt")
+ public void testMethodOfAnyImplementedInInterface() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/methodOfAnyImplementedInInterface.kt");
+ }
+
+ @Test
+ @TestMetadata("nonConstValInAnnotationArgument.kt")
+ public void testNonConstValInAnnotationArgument() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/nonConstValInAnnotationArgument.kt");
+ }
+
+ @Test
+ @TestMetadata("notASupertype.kt")
+ public void testNotASupertype() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/notASupertype.kt");
+ }
+
+ @Test
+ @TestMetadata("primaryConstructorRequiredForDataClass.kt")
+ public void testPrimaryConstructorRequiredForDataClass() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/primaryConstructorRequiredForDataClass.kt");
+ }
+
+ @Test
+ @TestMetadata("projectionsOnNonClassTypeArguments.kt")
+ public void testProjectionsOnNonClassTypeArguments() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/projectionsOnNonClassTypeArguments.kt");
+ }
+
+ @Test
+ @TestMetadata("propertyTypeMismatchOnOverride.kt")
+ public void testPropertyTypeMismatchOnOverride() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/propertyTypeMismatchOnOverride.kt");
+ }
+
+ @Test
+ @TestMetadata("qualifiedSupertypeExtendedByOtherSupertype.kt")
+ public void testQualifiedSupertypeExtendedByOtherSupertype() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/qualifiedSupertypeExtendedByOtherSupertype.kt");
+ }
+
+ @Test
+ @TestMetadata("redundantModifier.kt")
+ public void testRedundantModifier() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/redundantModifier.kt");
+ }
+
+ @Test
+ @TestMetadata("repeatedModifier.kt")
+ public void testRepeatedModifier() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/repeatedModifier.kt");
+ }
+
+ @Test
+ @TestMetadata("returnTypeMismatchOnOverride.kt")
+ public void testReturnTypeMismatchOnOverride() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/returnTypeMismatchOnOverride.kt");
+ }
+
+ @Test
+ @TestMetadata("sealedClassConstructorCall.kt")
+ public void testSealedClassConstructorCall() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/sealedClassConstructorCall.kt");
+ }
+
+ @Test
+ @TestMetadata("sealedSupertype.kt")
+ public void testSealedSupertype() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/sealedSupertype.kt");
+ }
+
+ @Test
+ @TestMetadata("someOverridesTest.kt")
+ public void testSomeOverridesTest() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/someOverridesTest.kt");
+ }
+
+ @Test
+ @TestMetadata("superCallWithDelegation.kt")
+ public void testSuperCallWithDelegation() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/superCallWithDelegation.kt");
+ }
+
+ @Test
+ @TestMetadata("superIsNotAnExpression.kt")
+ public void testSuperIsNotAnExpression() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/superIsNotAnExpression.kt");
+ }
+
+ @Test
+ @TestMetadata("superNotAvailable.kt")
+ public void testSuperNotAvailable() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/superNotAvailable.kt");
+ }
+
+ @Test
+ @TestMetadata("superclassNotAccessibleFromInterface.kt")
+ public void testSuperclassNotAccessibleFromInterface() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/superclassNotAccessibleFromInterface.kt");
+ }
+
+ @Test
+ @TestMetadata("supertypeInitializedInInterface.kt")
+ public void testSupertypeInitializedInInterface() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/supertypeInitializedInInterface.kt");
+ }
+
+ @Test
+ @TestMetadata("supertypeInitializedWithoutPrimaryConstructor.kt")
+ public void testSupertypeInitializedWithoutPrimaryConstructor() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/supertypeInitializedWithoutPrimaryConstructor.kt");
+ }
+
+ @Test
+ @TestMetadata("testIllegalAnnotationClass.kt")
+ public void testTestIllegalAnnotationClass() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/testIllegalAnnotationClass.kt");
+ }
+
+ @Test
+ @TestMetadata("typeArgumentsNotAllowed.kt")
+ public void testTypeArgumentsNotAllowed() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/typeArgumentsNotAllowed.kt");
+ }
+
+ @Test
+ @TestMetadata("typeOfAnnotationMember.kt")
+ public void testTypeOfAnnotationMember() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/typeOfAnnotationMember.kt");
+ }
+
+ @Test
+ @TestMetadata("typeParametersInEnum.kt")
+ public void testTypeParametersInEnum() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/typeParametersInEnum.kt");
+ }
+
+ @Test
+ @TestMetadata("typeParametersInObject.kt")
+ public void testTypeParametersInObject() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/typeParametersInObject.kt");
+ }
+
+ @Test
+ @TestMetadata("upperBoundViolated.kt")
+ public void testUpperBoundViolated() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/upperBoundViolated.kt");
+ }
+
+ @Test
+ @TestMetadata("valOnAnnotationParameter.kt")
+ public void testValOnAnnotationParameter() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/valOnAnnotationParameter.kt");
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/diagnostics/functionAsExpression")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class FunctionAsExpression extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInFunctionAsExpression() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/diagnostics/functionAsExpression"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("Parameters.kt")
+ public void testParameters() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/functionAsExpression/Parameters.kt");
+ }
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/expresssions")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class Expresssions extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ @TestMetadata("access.kt")
+ public void testAccess() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/access.kt");
+ }
+
+ @Test
+ public void testAllFilesPresentInExpresssions() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/expresssions"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("annotationWithReturn.kt")
+ public void testAnnotationWithReturn() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/annotationWithReturn.kt");
+ }
+
+ @Test
+ @TestMetadata("annotations.kt")
+ public void testAnnotations() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/annotations.kt");
+ }
+
+ @Test
+ @TestMetadata("baseQualifier.kt")
+ public void testBaseQualifier() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/baseQualifier.kt");
+ }
+
+ @Test
+ @TestMetadata("blockLocalScopes.kt")
+ public void testBlockLocalScopes() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/blockLocalScopes.kt");
+ }
+
+ @Test
+ @TestMetadata("CallBasedInExpressionGenerator.kt")
+ public void testCallBasedInExpressionGenerator() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/CallBasedInExpressionGenerator.kt");
+ }
+
+ @Test
+ @TestMetadata("checkArguments.kt")
+ public void testCheckArguments() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/checkArguments.kt");
+ }
+
+ @Test
+ @TestMetadata("classifierAccessFromCompanion.kt")
+ public void testClassifierAccessFromCompanion() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/classifierAccessFromCompanion.kt");
+ }
+
+ @Test
+ @TestMetadata("companion.kt")
+ public void testCompanion() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/companion.kt");
+ }
+
+ @Test
+ @TestMetadata("companionExtension.kt")
+ public void testCompanionExtension() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/companionExtension.kt");
+ }
+
+ @Test
+ @TestMetadata("constructor.kt")
+ public void testConstructor() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/constructor.kt");
+ }
+
+ @Test
+ @TestMetadata("dispatchReceiver.kt")
+ public void testDispatchReceiver() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/dispatchReceiver.kt");
+ }
+
+ @Test
+ @TestMetadata("enumEntryUse.kt")
+ public void testEnumEntryUse() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/enumEntryUse.kt");
+ }
+
+ @Test
+ @TestMetadata("enumValues.kt")
+ public void testEnumValues() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/enumValues.kt");
+ }
+
+ @Test
+ @TestMetadata("errCallable.kt")
+ public void testErrCallable() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/errCallable.kt");
+ }
+
+ @Test
+ @TestMetadata("extensionPropertyInLambda.kt")
+ public void testExtensionPropertyInLambda() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/extensionPropertyInLambda.kt");
+ }
+
+ @Test
+ @TestMetadata("genericDecorator.kt")
+ public void testGenericDecorator() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/genericDecorator.kt");
+ }
+
+ @Test
+ @TestMetadata("genericDescriptor.kt")
+ public void testGenericDescriptor() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/genericDescriptor.kt");
+ }
+
+ @Test
+ @TestMetadata("genericDiagnostic.kt")
+ public void testGenericDiagnostic() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/genericDiagnostic.kt");
+ }
+
+ @Test
+ @TestMetadata("genericPropertyAccess.kt")
+ public void testGenericPropertyAccess() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/genericPropertyAccess.kt");
+ }
+
+ @Test
+ @TestMetadata("genericUsedInFunction.kt")
+ public void testGenericUsedInFunction() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/genericUsedInFunction.kt");
+ }
+
+ @Test
+ @TestMetadata("importedReceiver.kt")
+ public void testImportedReceiver() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/importedReceiver.kt");
+ }
+
+ @Test
+ @TestMetadata("innerQualifier.kt")
+ public void testInnerQualifier() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/innerQualifier.kt");
+ }
+
+ @Test
+ @TestMetadata("innerWithSuperCompanion.kt")
+ public void testInnerWithSuperCompanion() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/innerWithSuperCompanion.kt");
+ }
+
+ @Test
+ @TestMetadata("javaFieldCallable.kt")
+ public void testJavaFieldCallable() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/javaFieldCallable.kt");
+ }
+
+ @Test
+ @TestMetadata("lambda.kt")
+ public void testLambda() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/lambda.kt");
+ }
+
+ @Test
+ @TestMetadata("lambdaWithReceiver.kt")
+ public void testLambdaWithReceiver() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/lambdaWithReceiver.kt");
+ }
+
+ @Test
+ @TestMetadata("localClassAccessesContainingClass.kt")
+ public void testLocalClassAccessesContainingClass() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/localClassAccessesContainingClass.kt");
+ }
+
+ @Test
+ @TestMetadata("localConstructor.kt")
+ public void testLocalConstructor() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/localConstructor.kt");
+ }
+
+ @Test
+ @TestMetadata("localExtension.kt")
+ public void testLocalExtension() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/localExtension.kt");
+ }
+
+ @Test
+ @TestMetadata("localImplicitBodies.kt")
+ public void testLocalImplicitBodies() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/localImplicitBodies.kt");
+ }
+
+ @Test
+ @TestMetadata("localInnerClass.kt")
+ public void testLocalInnerClass() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/localInnerClass.kt");
+ }
+
+ @Test
+ @TestMetadata("localObjects.kt")
+ public void testLocalObjects() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/localObjects.kt");
+ }
+
+ @Test
+ @TestMetadata("localScopes.kt")
+ public void testLocalScopes() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/localScopes.kt");
+ }
+
+ @Test
+ @TestMetadata("localTypes.kt")
+ public void testLocalTypes() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/localTypes.kt");
+ }
+
+ @Test
+ @TestMetadata("localWithBooleanNot.kt")
+ public void testLocalWithBooleanNot() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/localWithBooleanNot.kt");
+ }
+
+ @Test
+ @TestMetadata("memberExtension.kt")
+ public void testMemberExtension() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/memberExtension.kt");
+ }
+
+ @Test
+ @TestMetadata("nestedConstructorCallable.kt")
+ public void testNestedConstructorCallable() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/nestedConstructorCallable.kt");
+ }
+
+ @Test
+ @TestMetadata("nestedObjects.kt")
+ public void testNestedObjects() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/nestedObjects.kt");
+ }
+
+ @Test
+ @TestMetadata("nestedVisibility.kt")
+ public void testNestedVisibility() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/nestedVisibility.kt");
+ }
+
+ @Test
+ @TestMetadata("objectOverrideCallViaImport.kt")
+ public void testObjectOverrideCallViaImport() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/objectOverrideCallViaImport.kt");
+ }
+
+ @Test
+ @TestMetadata("objectVsProperty.kt")
+ public void testObjectVsProperty() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/objectVsProperty.kt");
+ }
+
+ @Test
+ @TestMetadata("objects.kt")
+ public void testObjects() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/objects.kt");
+ }
+
+ @Test
+ @TestMetadata("outerMemberAccesses.kt")
+ public void testOuterMemberAccesses() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/outerMemberAccesses.kt");
+ }
+
+ @Test
+ @TestMetadata("outerObject.kt")
+ public void testOuterObject() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/outerObject.kt");
+ }
+
+ @Test
+ @TestMetadata("overriddenJavaGetter.kt")
+ public void testOverriddenJavaGetter() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/overriddenJavaGetter.kt");
+ }
+
+ @Test
+ @TestMetadata("privateObjectLiteral.kt")
+ public void testPrivateObjectLiteral() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/privateObjectLiteral.kt");
+ }
+
+ @Test
+ @TestMetadata("privateVisibility.kt")
+ public void testPrivateVisibility() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/privateVisibility.kt");
+ }
+
+ @Test
+ @TestMetadata("protectedVisibility.kt")
+ public void testProtectedVisibility() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/protectedVisibility.kt");
+ }
+
+ @Test
+ @TestMetadata("qualifiedExpressions.kt")
+ public void testQualifiedExpressions() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/qualifiedExpressions.kt");
+ }
+
+ @Test
+ @TestMetadata("qualifierPriority.kt")
+ public void testQualifierPriority() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/qualifierPriority.kt");
+ }
+
+ @Test
+ @TestMetadata("receiverConsistency.kt")
+ public void testReceiverConsistency() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/receiverConsistency.kt");
+ }
+
+ @Test
+ @TestMetadata("sameReceiver.kt")
+ public void testSameReceiver() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/sameReceiver.kt");
+ }
+
+ @Test
+ @TestMetadata("simple.kt")
+ public void testSimple() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/simple.kt");
+ }
+
+ @Test
+ @TestMetadata("syntheticInImplicitBody.kt")
+ public void testSyntheticInImplicitBody() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/syntheticInImplicitBody.kt");
+ }
+
+ @Test
+ @TestMetadata("syntheticSmartCast.kt")
+ public void testSyntheticSmartCast() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/syntheticSmartCast.kt");
+ }
+
+ @Test
+ @TestMetadata("this.kt")
+ public void testThis() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/this.kt");
+ }
+
+ @Test
+ @TestMetadata("topExtensionVsOuterMember.kt")
+ public void testTopExtensionVsOuterMember() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/topExtensionVsOuterMember.kt");
+ }
+
+ @Test
+ @TestMetadata("typeAliasConstructor.kt")
+ public void testTypeAliasConstructor() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/typeAliasConstructor.kt");
+ }
+
+ @Test
+ @TestMetadata("vararg.kt")
+ public void testVararg() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/vararg.kt");
+ }
+
+ @Test
+ @TestMetadata("when.kt")
+ public void testWhen() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/when.kt");
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/expresssions/inference")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class Inference extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInInference() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/expresssions/inference"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("id.kt")
+ public void testId() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/inference/id.kt");
+ }
+
+ @Test
+ @TestMetadata("typeParameters.kt")
+ public void testTypeParameters() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/inference/typeParameters.kt");
+ }
+
+ @Test
+ @TestMetadata("typeParameters2.kt")
+ public void testTypeParameters2() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/inference/typeParameters2.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class Invoke extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInInvoke() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("doubleBrackets.kt")
+ public void testDoubleBrackets() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/doubleBrackets.kt");
+ }
+
+ @Test
+ @TestMetadata("explicitReceiver.kt")
+ public void testExplicitReceiver() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/explicitReceiver.kt");
+ }
+
+ @Test
+ @TestMetadata("explicitReceiver2.kt")
+ public void testExplicitReceiver2() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/explicitReceiver2.kt");
+ }
+
+ @Test
+ @TestMetadata("extension.kt")
+ public void testExtension() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/extension.kt");
+ }
+
+ @Test
+ @TestMetadata("extensionOnObject.kt")
+ public void testExtensionOnObject() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/extensionOnObject.kt");
+ }
+
+ @Test
+ @TestMetadata("extensionSafeCall.kt")
+ public void testExtensionSafeCall() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/extensionSafeCall.kt");
+ }
+
+ @Test
+ @TestMetadata("farInvokeExtension.kt")
+ public void testFarInvokeExtension() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/farInvokeExtension.kt");
+ }
+
+ @Test
+ @TestMetadata("implicitTypeOrder.kt")
+ public void testImplicitTypeOrder() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/implicitTypeOrder.kt");
+ }
+
+ @Test
+ @TestMetadata("inBrackets.kt")
+ public void testInBrackets() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/inBrackets.kt");
+ }
+
+ @Test
+ @TestMetadata("incorrectInvokeReceiver.kt")
+ public void testIncorrectInvokeReceiver() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/incorrectInvokeReceiver.kt");
+ }
+
+ @Test
+ @TestMetadata("propertyFromParameter.kt")
+ public void testPropertyFromParameter() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/propertyFromParameter.kt");
+ }
+
+ @Test
+ @TestMetadata("propertyWithExtensionType.kt")
+ public void testPropertyWithExtensionType() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/propertyWithExtensionType.kt");
+ }
+
+ @Test
+ @TestMetadata("simple.kt")
+ public void testSimple() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/simple.kt");
+ }
+
+ @Test
+ @TestMetadata("threeReceivers.kt")
+ public void testThreeReceivers() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/threeReceivers.kt");
+ }
+
+ @Test
+ @TestMetadata("threeReceiversCorrect.kt")
+ public void testThreeReceiversCorrect() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/threeReceiversCorrect.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/expresssions/operators")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class Operators extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInOperators() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/expresssions/operators"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("plus.kt")
+ public void testPlus() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/operators/plus.kt");
+ }
+
+ @Test
+ @TestMetadata("plusAndPlusAssign.kt")
+ public void testPlusAndPlusAssign() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/operators/plusAndPlusAssign.kt");
+ }
+
+ @Test
+ @TestMetadata("plusAssign.kt")
+ public void testPlusAssign() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/expresssions/operators/plusAssign.kt");
+ }
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/extendedCheckers")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class ExtendedCheckers extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInExtendedCheckers() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/extendedCheckers"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("ArrayEqualityCanBeReplacedWithEquals.kt")
+ public void testArrayEqualityCanBeReplacedWithEquals() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/ArrayEqualityCanBeReplacedWithEquals.kt");
+ }
+
+ @Test
+ @TestMetadata("CanBeValChecker.kt")
+ public void testCanBeValChecker() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/CanBeValChecker.kt");
+ }
+
+ @Test
+ @TestMetadata("RedundantExplicitTypeChecker.kt")
+ public void testRedundantExplicitTypeChecker() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantExplicitTypeChecker.kt");
+ }
+
+ @Test
+ @TestMetadata("RedundantModalityModifierChecker.kt")
+ public void testRedundantModalityModifierChecker() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantModalityModifierChecker.kt");
+ }
+
+ @Test
+ @TestMetadata("RedundantReturnUnitTypeChecker.kt")
+ public void testRedundantReturnUnitTypeChecker() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantReturnUnitTypeChecker.kt");
+ }
+
+ @Test
+ @TestMetadata("RedundantSetterParameterTypeChecker.kt")
+ public void testRedundantSetterParameterTypeChecker() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantSetterParameterTypeChecker.kt");
+ }
+
+ @Test
+ @TestMetadata("RedundantSingleExpressionStringTemplateChecker.kt")
+ public void testRedundantSingleExpressionStringTemplateChecker() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantSingleExpressionStringTemplateChecker.kt");
+ }
+
+ @Test
+ @TestMetadata("RedundantVisibilityModifierChecker.kt")
+ public void testRedundantVisibilityModifierChecker() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantVisibilityModifierChecker.kt");
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class CanBeReplacedWithOperatorAssignment extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInCanBeReplacedWithOperatorAssignment() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("BasicTest.kt")
+ public void testBasicTest() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/BasicTest.kt");
+ }
+
+ @Test
+ @TestMetadata("ComplexExpression.kt")
+ public void testComplexExpression() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/ComplexExpression.kt");
+ }
+
+ @Test
+ @TestMetadata("flexibleTypeBug.kt")
+ public void testFlexibleTypeBug() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/flexibleTypeBug.kt");
+ }
+
+ @Test
+ @TestMetadata("illegalMultipleOperators.kt")
+ public void testIllegalMultipleOperators() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/illegalMultipleOperators.kt");
+ }
+
+ @Test
+ @TestMetadata("illegalMultipleOperatorsMiddle.kt")
+ public void testIllegalMultipleOperatorsMiddle() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/illegalMultipleOperatorsMiddle.kt");
+ }
+
+ @Test
+ @TestMetadata("invalidSubtraction.kt")
+ public void testInvalidSubtraction() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/invalidSubtraction.kt");
+ }
+
+ @Test
+ @TestMetadata("list.kt")
+ public void testList() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/list.kt");
+ }
+
+ @Test
+ @TestMetadata("logicOperators.kt")
+ public void testLogicOperators() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/logicOperators.kt");
+ }
+
+ @Test
+ @TestMetadata("multipleOperators.kt")
+ public void testMultipleOperators() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/multipleOperators.kt");
+ }
+
+ @Test
+ @TestMetadata("multipleOperatorsRightSideRepeat.kt")
+ public void testMultipleOperatorsRightSideRepeat() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/multipleOperatorsRightSideRepeat.kt");
+ }
+
+ @Test
+ @TestMetadata("mutableList.kt")
+ public void testMutableList() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/mutableList.kt");
+ }
+
+ @Test
+ @TestMetadata("nonCommutativeRepeat.kt")
+ public void testNonCommutativeRepeat() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/nonCommutativeRepeat.kt");
+ }
+
+ @Test
+ @TestMetadata("nonRepeatingAssignment.kt")
+ public void testNonRepeatingAssignment() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/nonRepeatingAssignment.kt");
+ }
+
+ @Test
+ @TestMetadata("OperatorAssignment.kt")
+ public void testOperatorAssignment() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/OperatorAssignment.kt");
+ }
+
+ @Test
+ @TestMetadata("plusAssignConflict.kt")
+ public void testPlusAssignConflict() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/plusAssignConflict.kt");
+ }
+
+ @Test
+ @TestMetadata("rightSideRepeat.kt")
+ public void testRightSideRepeat() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/rightSideRepeat.kt");
+ }
+
+ @Test
+ @TestMetadata("simpleAssign.kt")
+ public void testSimpleAssign() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/simpleAssign.kt");
+ }
+
+ @Test
+ @TestMetadata("validAddition.kt")
+ public void testValidAddition() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/validAddition.kt");
+ }
+
+ @Test
+ @TestMetadata("validSubtraction.kt")
+ public void testValidSubtraction() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/canBeReplacedWithOperatorAssignment/validSubtraction.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/emptyRangeChecker")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class EmptyRangeChecker extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInEmptyRangeChecker() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/emptyRangeChecker"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("NoWarning.kt")
+ public void testNoWarning() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/emptyRangeChecker/NoWarning.kt");
+ }
+
+ @Test
+ @TestMetadata("Warning.kt")
+ public void testWarning() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/emptyRangeChecker/Warning.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class RedundantCallOfConversionMethod extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInRedundantCallOfConversionMethod() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("booleanToInt.kt")
+ public void testBooleanToInt() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/booleanToInt.kt");
+ }
+
+ @Test
+ @TestMetadata("byte.kt")
+ public void testByte() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/byte.kt");
+ }
+
+ @Test
+ @TestMetadata("char.kt")
+ public void testChar() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/char.kt");
+ }
+
+ @Test
+ @TestMetadata("double.kt")
+ public void testDouble() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/double.kt");
+ }
+
+ @Test
+ @TestMetadata("float.kt")
+ public void testFloat() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/float.kt");
+ }
+
+ @Test
+ @TestMetadata("int.kt")
+ public void testInt() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/int.kt");
+ }
+
+ @Test
+ @TestMetadata("long.kt")
+ public void testLong() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/long.kt");
+ }
+
+ @Test
+ @TestMetadata("nullable.kt")
+ public void testNullable() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/nullable.kt");
+ }
+
+ @Test
+ @TestMetadata("nullable2.kt")
+ public void testNullable2() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/nullable2.kt");
+ }
+
+ @Test
+ @TestMetadata("safeString.kt")
+ public void testSafeString() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/safeString.kt");
+ }
+
+ @Test
+ @TestMetadata("safeString2.kt")
+ public void testSafeString2() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/safeString2.kt");
+ }
+
+ @Test
+ @TestMetadata("short.kt")
+ public void testShort() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/short.kt");
+ }
+
+ @Test
+ @TestMetadata("string.kt")
+ public void testString() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/string.kt");
+ }
+
+ @Test
+ @TestMetadata("StringTemplate.kt")
+ public void testStringTemplate() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/StringTemplate.kt");
+ }
+
+ @Test
+ @TestMetadata("toOtherType.kt")
+ public void testToOtherType() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/toOtherType.kt");
+ }
+
+ @Test
+ @TestMetadata("uByte.kt")
+ public void testUByte() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/uByte.kt");
+ }
+
+ @Test
+ @TestMetadata("uInt.kt")
+ public void testUInt() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/uInt.kt");
+ }
+
+ @Test
+ @TestMetadata("uLong.kt")
+ public void testULong() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/uLong.kt");
+ }
+
+ @Test
+ @TestMetadata("uShort.kt")
+ public void testUShort() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/uShort.kt");
+ }
+
+ @Test
+ @TestMetadata("variable.kt")
+ public void testVariable() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/variable.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/unused")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class Unused extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInUnused() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/unused"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("classProperty.kt")
+ public void testClassProperty() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/unused/classProperty.kt");
+ }
+
+ @Test
+ @TestMetadata("invoke.kt")
+ public void testInvoke() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/unused/invoke.kt");
+ }
+
+ @Test
+ @TestMetadata("lambda.kt")
+ public void testLambda() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/unused/lambda.kt");
+ }
+
+ @Test
+ @TestMetadata("localVariable.kt")
+ public void testLocalVariable() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/unused/localVariable.kt");
+ }
+
+ @Test
+ @TestMetadata("manyLocalVariables.kt")
+ public void testManyLocalVariables() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/unused/manyLocalVariables.kt");
+ }
+
+ @Test
+ @TestMetadata("usedInAnnotationArguments.kt")
+ public void testUsedInAnnotationArguments() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/unused/usedInAnnotationArguments.kt");
+ }
+
+ @Test
+ @TestMetadata("valueIsNeverRead.kt")
+ public void testValueIsNeverRead() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/unused/valueIsNeverRead.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/UselessCallOnNotNullChecker")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class UselessCallOnNotNullChecker extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInUselessCallOnNotNullChecker() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/UselessCallOnNotNullChecker"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("Basic.kt")
+ public void testBasic() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/UselessCallOnNotNullChecker/Basic.kt");
+ }
+
+ @Test
+ @TestMetadata("NotNullType.kt")
+ public void testNotNullType() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/UselessCallOnNotNullChecker/NotNullType.kt");
+ }
+
+ @Test
+ @TestMetadata("NotNullTypeChain.kt")
+ public void testNotNullTypeChain() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/UselessCallOnNotNullChecker/NotNullTypeChain.kt");
+ }
+
+ @Test
+ @TestMetadata("NullOrBlankSafe.kt")
+ public void testNullOrBlankSafe() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/UselessCallOnNotNullChecker/NullOrBlankSafe.kt");
+ }
+
+ @Test
+ @TestMetadata("NullOrEmpty.kt")
+ public void testNullOrEmpty() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/UselessCallOnNotNullChecker/NullOrEmpty.kt");
+ }
+
+ @Test
+ @TestMetadata("NullOrEmptyFake.kt")
+ public void testNullOrEmptyFake() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/UselessCallOnNotNullChecker/NullOrEmptyFake.kt");
+ }
+
+ @Test
+ @TestMetadata("NullOrEmptySafe.kt")
+ public void testNullOrEmptySafe() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/UselessCallOnNotNullChecker/NullOrEmptySafe.kt");
+ }
+
+ @Test
+ @TestMetadata("OrEmptyFake.kt")
+ public void testOrEmptyFake() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/UselessCallOnNotNullChecker/OrEmptyFake.kt");
+ }
+
+ @Test
+ @TestMetadata("SafeCall.kt")
+ public void testSafeCall() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/UselessCallOnNotNullChecker/SafeCall.kt");
+ }
+
+ @Test
+ @TestMetadata("Sequence.kt")
+ public void testSequence() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/UselessCallOnNotNullChecker/Sequence.kt");
+ }
+
+ @Test
+ @TestMetadata("String.kt")
+ public void testString() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/extendedCheckers/UselessCallOnNotNullChecker/String.kt");
+ }
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/fromBuilder")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class FromBuilder extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInFromBuilder() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/fromBuilder"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("complexTypes.kt")
+ public void testComplexTypes() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/fromBuilder/complexTypes.kt");
+ }
+
+ @Test
+ @TestMetadata("enums.kt")
+ public void testEnums() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/fromBuilder/enums.kt");
+ }
+
+ @Test
+ @TestMetadata("noPrimaryConstructor.kt")
+ public void testNoPrimaryConstructor() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/fromBuilder/noPrimaryConstructor.kt");
+ }
+
+ @Test
+ @TestMetadata("simpleClass.kt")
+ public void testSimpleClass() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/fromBuilder/simpleClass.kt");
+ }
+
+ @Test
+ @TestMetadata("typeParameters.kt")
+ public void testTypeParameters() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/fromBuilder/typeParameters.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/inference")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class Inference extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInInference() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/inference"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("callableReferenceOnInstance.kt")
+ public void testCallableReferenceOnInstance() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/inference/callableReferenceOnInstance.kt");
+ }
+
+ @Test
+ @TestMetadata("callableReferenceToLocalClass.kt")
+ public void testCallableReferenceToLocalClass() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/inference/callableReferenceToLocalClass.kt");
+ }
+
+ @Test
+ @TestMetadata("callableReferencesAndDefaultParameters.kt")
+ public void testCallableReferencesAndDefaultParameters() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/inference/callableReferencesAndDefaultParameters.kt");
+ }
+
+ @Test
+ @TestMetadata("capturedTypeForJavaTypeParameter.kt")
+ public void testCapturedTypeForJavaTypeParameter() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/inference/capturedTypeForJavaTypeParameter.kt");
+ }
+
+ @Test
+ @TestMetadata("coercionToUnitWithEarlyReturn.kt")
+ public void testCoercionToUnitWithEarlyReturn() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/inference/coercionToUnitWithEarlyReturn.kt");
+ }
+
+ @Test
+ @TestMetadata("definitelyNotNullIntersectionType.kt")
+ public void testDefinitelyNotNullIntersectionType() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/inference/definitelyNotNullIntersectionType.kt");
+ }
+
+ @Test
+ @TestMetadata("extensionCallableReferences.kt")
+ public void testExtensionCallableReferences() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/inference/extensionCallableReferences.kt");
+ }
+
+ @Test
+ @TestMetadata("integerLiteralAsComparable.kt")
+ public void testIntegerLiteralAsComparable() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/inference/integerLiteralAsComparable.kt");
+ }
+
+ @Test
+ @TestMetadata("intersectionTypesInConstraints.kt")
+ public void testIntersectionTypesInConstraints() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/inference/intersectionTypesInConstraints.kt");
+ }
+
+ @Test
+ @TestMetadata("kt40131.kt")
+ public void testKt40131() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/inference/kt40131.kt");
+ }
+
+ @Test
+ @TestMetadata("kt41989.kt")
+ public void testKt41989() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/inference/kt41989.kt");
+ }
+
+ @Test
+ @TestMetadata("lambdaAsReturnStatementOfLambda.kt")
+ public void testLambdaAsReturnStatementOfLambda() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/inference/lambdaAsReturnStatementOfLambda.kt");
+ }
+
+ @Test
+ @TestMetadata("lambdaInElvis.kt")
+ public void testLambdaInElvis() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/inference/lambdaInElvis.kt");
+ }
+
+ @Test
+ @TestMetadata("lambdasReturns.kt")
+ public void testLambdasReturns() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/inference/lambdasReturns.kt");
+ }
+
+ @Test
+ @TestMetadata("nestedExtensionFunctionType.kt")
+ public void testNestedExtensionFunctionType() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/inference/nestedExtensionFunctionType.kt");
+ }
+
+ @Test
+ @TestMetadata("nestedLambdas.kt")
+ public void testNestedLambdas() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/inference/nestedLambdas.kt");
+ }
+
+ @Test
+ @TestMetadata("nullableIntegerLiteralType.kt")
+ public void testNullableIntegerLiteralType() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/inference/nullableIntegerLiteralType.kt");
+ }
+
+ @Test
+ @TestMetadata("receiverWithCapturedType.kt")
+ public void testReceiverWithCapturedType() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/inference/receiverWithCapturedType.kt");
+ }
+
+ @Test
+ @TestMetadata("simpleCapturedTypes.kt")
+ public void testSimpleCapturedTypes() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/inference/simpleCapturedTypes.kt");
+ }
+
+ @Test
+ @TestMetadata("typeDepthForTypeAlias.kt")
+ public void testTypeDepthForTypeAlias() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/inference/typeDepthForTypeAlias.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/innerClasses")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class InnerClasses extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInInnerClasses() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/innerClasses"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("inner.kt")
+ public void testInner() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/innerClasses/inner.kt");
+ }
+
+ @Test
+ @TestMetadata("innerTypeFromSuperClassInBody.kt")
+ public void testInnerTypeFromSuperClassInBody() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/innerClasses/innerTypeFromSuperClassInBody.kt");
+ }
+
+ @Test
+ @TestMetadata("innerTypes.kt")
+ public void testInnerTypes() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/innerClasses/innerTypes.kt");
+ }
+
+ @Test
+ @TestMetadata("simple.kt")
+ public void testSimple() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/innerClasses/simple.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/localClasses")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class LocalClasses extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInLocalClasses() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/localClasses"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("implicitInAnonymous.kt")
+ public void testImplicitInAnonymous() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/localClasses/implicitInAnonymous.kt");
+ }
+
+ @Test
+ @TestMetadata("implicitInLocalClasses.kt")
+ public void testImplicitInLocalClasses() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/localClasses/implicitInLocalClasses.kt");
+ }
+
+ @Test
+ @TestMetadata("typesFromSuperClasses.kt")
+ public void testTypesFromSuperClasses() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/localClasses/typesFromSuperClasses.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/multifile")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class Multifile extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInMultifile() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/multifile"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("Annotations.kt")
+ public void testAnnotations() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/multifile/Annotations.kt");
+ }
+
+ @Test
+ @TestMetadata("ByteArray.kt")
+ public void testByteArray() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/multifile/ByteArray.kt");
+ }
+
+ @Test
+ @TestMetadata("importFromObject.kt")
+ public void testImportFromObject() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/multifile/importFromObject.kt");
+ }
+
+ @Test
+ @TestMetadata("NestedSuperType.kt")
+ public void testNestedSuperType() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/multifile/NestedSuperType.kt");
+ }
+
+ @Test
+ @TestMetadata("sealedStarImport.kt")
+ public void testSealedStarImport() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/multifile/sealedStarImport.kt");
+ }
+
+ @Test
+ @TestMetadata("simpleAliasedImport.kt")
+ public void testSimpleAliasedImport() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/multifile/simpleAliasedImport.kt");
+ }
+
+ @Test
+ @TestMetadata("simpleImport.kt")
+ public void testSimpleImport() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/multifile/simpleImport.kt");
+ }
+
+ @Test
+ @TestMetadata("simpleImportNested.kt")
+ public void testSimpleImportNested() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/multifile/simpleImportNested.kt");
+ }
+
+ @Test
+ @TestMetadata("simpleImportOuter.kt")
+ public void testSimpleImportOuter() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/multifile/simpleImportOuter.kt");
+ }
+
+ @Test
+ @TestMetadata("simpleStarImport.kt")
+ public void testSimpleStarImport() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/multifile/simpleStarImport.kt");
+ }
+
+ @Test
+ @TestMetadata("TypeAliasExpansion.kt")
+ public void testTypeAliasExpansion() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/multifile/TypeAliasExpansion.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/overrides")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class Overrides extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInOverrides() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/overrides"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("generics.kt")
+ public void testGenerics() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/overrides/generics.kt");
+ }
+
+ @Test
+ @TestMetadata("protobufExt.kt")
+ public void testProtobufExt() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/overrides/protobufExt.kt");
+ }
+
+ @Test
+ @TestMetadata("simple.kt")
+ public void testSimple() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/overrides/simple.kt");
+ }
+
+ @Test
+ @TestMetadata("simpleFakeOverride.kt")
+ public void testSimpleFakeOverride() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/overrides/simpleFakeOverride.kt");
+ }
+
+ @Test
+ @TestMetadata("simpleMostSpecific.kt")
+ public void testSimpleMostSpecific() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/overrides/simpleMostSpecific.kt");
+ }
+
+ @Test
+ @TestMetadata("supertypeGenerics.kt")
+ public void testSupertypeGenerics() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/overrides/supertypeGenerics.kt");
+ }
+
+ @Test
+ @TestMetadata("supertypeGenericsComplex.kt")
+ public void testSupertypeGenericsComplex() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/overrides/supertypeGenericsComplex.kt");
+ }
+
+ @Test
+ @TestMetadata("three.kt")
+ public void testThree() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/overrides/three.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/problems")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class Problems extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInProblems() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/problems"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("compilerPhase.kt")
+ public void testCompilerPhase() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/problems/compilerPhase.kt");
+ }
+
+ @Test
+ @TestMetadata("complexLambdaWithTypeVariableAsExpectedType.kt")
+ public void testComplexLambdaWithTypeVariableAsExpectedType() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/problems/complexLambdaWithTypeVariableAsExpectedType.kt");
+ }
+
+ @Test
+ @TestMetadata("defaultParametersFromDifferentScopes.kt")
+ public void testDefaultParametersFromDifferentScopes() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/problems/defaultParametersFromDifferentScopes.kt");
+ }
+
+ @Test
+ @TestMetadata("definitelyNotNullAndOriginalType.kt")
+ public void testDefinitelyNotNullAndOriginalType() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/problems/definitelyNotNullAndOriginalType.kt");
+ }
+
+ @Test
+ @TestMetadata("flexibleTypeVarAgainstNull.kt")
+ public void testFlexibleTypeVarAgainstNull() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/problems/flexibleTypeVarAgainstNull.kt");
+ }
+
+ @Test
+ @TestMetadata("inaccessibleJavaGetter.kt")
+ public void testInaccessibleJavaGetter() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/problems/inaccessibleJavaGetter.kt");
+ }
+
+ @Test
+ @TestMetadata("innerClassHierarchy.kt")
+ public void testInnerClassHierarchy() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/problems/innerClassHierarchy.kt");
+ }
+
+ @Test
+ @TestMetadata("javaQualifier.kt")
+ public void testJavaQualifier() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/problems/javaQualifier.kt");
+ }
+
+ @Test
+ @TestMetadata("kt42346.kt")
+ public void testKt42346() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/problems/kt42346.kt");
+ }
+
+ @Test
+ @TestMetadata("multipleJavaClassesInOneFile.kt")
+ public void testMultipleJavaClassesInOneFile() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/problems/multipleJavaClassesInOneFile.kt");
+ }
+
+ @Test
+ @TestMetadata("objectDerivedFromInnerClass.kt")
+ public void testObjectDerivedFromInnerClass() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/problems/objectDerivedFromInnerClass.kt");
+ }
+
+ @Test
+ @TestMetadata("questionableSmartCast.kt")
+ public void testQuestionableSmartCast() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/problems/questionableSmartCast.kt");
+ }
+
+ @Test
+ @TestMetadata("recursiveNamedAnnotation.kt")
+ public void testRecursiveNamedAnnotation() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/problems/recursiveNamedAnnotation.kt");
+ }
+
+ @Test
+ @TestMetadata("safeCallInvoke.kt")
+ public void testSafeCallInvoke() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/problems/safeCallInvoke.kt");
+ }
+
+ @Test
+ @TestMetadata("secondaryConstructorCfg.kt")
+ public void testSecondaryConstructorCfg() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/problems/secondaryConstructorCfg.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/properties")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class Properties extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInProperties() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/properties"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("javaAccessorConversion.kt")
+ public void testJavaAccessorConversion() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/properties/javaAccessorConversion.kt");
+ }
+
+ @Test
+ @TestMetadata("javaAccessorsComplex.kt")
+ public void testJavaAccessorsComplex() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/properties/javaAccessorsComplex.kt");
+ }
+
+ @Test
+ @TestMetadata("kotlinOverridesJavaComplex.kt")
+ public void testKotlinOverridesJavaComplex() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/properties/kotlinOverridesJavaComplex.kt");
+ }
+
+ @Test
+ @TestMetadata("noBackingFieldForExtension.kt")
+ public void testNoBackingFieldForExtension() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/properties/noBackingFieldForExtension.kt");
+ }
+
+ @Test
+ @TestMetadata("noBackingFieldInProperty.kt")
+ public void testNoBackingFieldInProperty() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/properties/noBackingFieldInProperty.kt");
+ }
+
+ @Test
+ @TestMetadata("syntheticPropertiesForJavaAnnotations.kt")
+ public void testSyntheticPropertiesForJavaAnnotations() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/properties/syntheticPropertiesForJavaAnnotations.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/references")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class References extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInReferences() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/references"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("integerLiteralInLhs.kt")
+ public void testIntegerLiteralInLhs() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/references/integerLiteralInLhs.kt");
+ }
+
+ @Test
+ @TestMetadata("referenceToExtension.kt")
+ public void testReferenceToExtension() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/references/referenceToExtension.kt");
+ }
+
+ @Test
+ @TestMetadata("simple.kt")
+ public void testSimple() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/references/simple.kt");
+ }
+
+ @Test
+ @TestMetadata("superMember.kt")
+ public void testSuperMember() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/references/superMember.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/samConstructors")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class SamConstructors extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInSamConstructors() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/samConstructors"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("genericSam.kt")
+ public void testGenericSam() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/samConstructors/genericSam.kt");
+ }
+
+ @Test
+ @TestMetadata("genericSamInferenceFromExpectType.kt")
+ public void testGenericSamInferenceFromExpectType() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/samConstructors/genericSamInferenceFromExpectType.kt");
+ }
+
+ @Test
+ @TestMetadata("kotlinSam.kt")
+ public void testKotlinSam() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/samConstructors/kotlinSam.kt");
+ }
+
+ @Test
+ @TestMetadata("realConstructorFunction.kt")
+ public void testRealConstructorFunction() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/samConstructors/realConstructorFunction.kt");
+ }
+
+ @Test
+ @TestMetadata("runnable.kt")
+ public void testRunnable() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/samConstructors/runnable.kt");
+ }
+
+ @Test
+ @TestMetadata("simple.kt")
+ public void testSimple() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/samConstructors/simple.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/samConversions")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class SamConversions extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInSamConversions() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/samConversions"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("genericSam.kt")
+ public void testGenericSam() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/samConversions/genericSam.kt");
+ }
+
+ @Test
+ @TestMetadata("kotlinSam.kt")
+ public void testKotlinSam() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/samConversions/kotlinSam.kt");
+ }
+
+ @Test
+ @TestMetadata("notSamBecauseOfSupertype.kt")
+ public void testNotSamBecauseOfSupertype() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/samConversions/notSamBecauseOfSupertype.kt");
+ }
+
+ @Test
+ @TestMetadata("runnable.kt")
+ public void testRunnable() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/samConversions/runnable.kt");
+ }
+
+ @Test
+ @TestMetadata("samConversionInConstructorCall.kt")
+ public void testSamConversionInConstructorCall() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/samConversions/samConversionInConstructorCall.kt");
+ }
+
+ @Test
+ @TestMetadata("samSupertype.kt")
+ public void testSamSupertype() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/samConversions/samSupertype.kt");
+ }
+
+ @Test
+ @TestMetadata("samSupertypeWithOverride.kt")
+ public void testSamSupertypeWithOverride() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/samConversions/samSupertypeWithOverride.kt");
+ }
+
+ @Test
+ @TestMetadata("samWithEquals.kt")
+ public void testSamWithEquals() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/samConversions/samWithEquals.kt");
+ }
+
+ @Test
+ @TestMetadata("simple.kt")
+ public void testSimple() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/samConversions/simple.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class Smartcasts extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInSmartcasts() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/smartcasts"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("bangbang.kt")
+ public void testBangbang() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/bangbang.kt");
+ }
+
+ @Test
+ @TestMetadata("casts.kt")
+ public void testCasts() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/casts.kt");
+ }
+
+ @Test
+ @TestMetadata("equalsAndIdentity.kt")
+ public void testEqualsAndIdentity() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/equalsAndIdentity.kt");
+ }
+
+ @Test
+ @TestMetadata("kt10240.kt")
+ public void testKt10240() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/kt10240.kt");
+ }
+
+ @Test
+ @TestMetadata("kt37327.kt")
+ public void testKt37327() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/kt37327.kt");
+ }
+
+ @Test
+ @TestMetadata("kt39000.kt")
+ public void testKt39000() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/kt39000.kt");
+ }
+
+ @Test
+ @TestMetadata("multipleCasts.kt")
+ public void testMultipleCasts() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/multipleCasts.kt");
+ }
+
+ @Test
+ @TestMetadata("nullability.kt")
+ public void testNullability() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/nullability.kt");
+ }
+
+ @Test
+ @TestMetadata("orInWhenBranch.kt")
+ public void testOrInWhenBranch() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/orInWhenBranch.kt");
+ }
+
+ @Test
+ @TestMetadata("smartCastInInit.kt")
+ public void testSmartCastInInit() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/smartCastInInit.kt");
+ }
+
+ @Test
+ @TestMetadata("smartcastToNothing.kt")
+ public void testSmartcastToNothing() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/smartcastToNothing.kt");
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/booleans")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class Booleans extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInBooleans() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/smartcasts/booleans"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("booleanOperators.kt")
+ public void testBooleanOperators() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/booleans/booleanOperators.kt");
+ }
+
+ @Test
+ @TestMetadata("equalsToBoolean.kt")
+ public void testEqualsToBoolean() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/booleans/equalsToBoolean.kt");
+ }
+
+ @Test
+ @TestMetadata("jumpFromRhsOfOperator.kt")
+ public void testJumpFromRhsOfOperator() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/booleans/jumpFromRhsOfOperator.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/boundSmartcasts")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class BoundSmartcasts extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInBoundSmartcasts() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/smartcasts/boundSmartcasts"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("boundSmartcasts.kt")
+ public void testBoundSmartcasts() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/boundSmartcasts/boundSmartcasts.kt");
+ }
+
+ @Test
+ @TestMetadata("boundSmartcastsInBranches.kt")
+ public void testBoundSmartcastsInBranches() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/boundSmartcasts/boundSmartcastsInBranches.kt");
+ }
+
+ @Test
+ @TestMetadata("functionCallBound.kt")
+ public void testFunctionCallBound() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/boundSmartcasts/functionCallBound.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class ControlStructures extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInControlStructures() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("elvis.kt")
+ public void testElvis() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures/elvis.kt");
+ }
+
+ @Test
+ @TestMetadata("returns.kt")
+ public void testReturns() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures/returns.kt");
+ }
+
+ @Test
+ @TestMetadata("simpleIf.kt")
+ public void testSimpleIf() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures/simpleIf.kt");
+ }
+
+ @Test
+ @TestMetadata("smartcastFromArgument.kt")
+ public void testSmartcastFromArgument() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures/smartcastFromArgument.kt");
+ }
+
+ @Test
+ @TestMetadata("when.kt")
+ public void testWhen() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures/when.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/lambdas")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class Lambdas extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInLambdas() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/smartcasts/lambdas"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("inPlaceLambdas.kt")
+ public void testInPlaceLambdas() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/lambdas/inPlaceLambdas.kt");
+ }
+
+ @Test
+ @TestMetadata("lambdaInWhenBranch.kt")
+ public void testLambdaInWhenBranch() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/lambdas/lambdaInWhenBranch.kt");
+ }
+
+ @Test
+ @TestMetadata("smartcastOnLambda.kt")
+ public void testSmartcastOnLambda() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/lambdas/smartcastOnLambda.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/loops")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class Loops extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInLoops() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/smartcasts/loops"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("dataFlowInfoFromWhileCondition.kt")
+ public void testDataFlowInfoFromWhileCondition() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/loops/dataFlowInfoFromWhileCondition.kt");
+ }
+
+ @Test
+ @TestMetadata("endlessLoops.kt")
+ public void testEndlessLoops() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/loops/endlessLoops.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/problems")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class Problems extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInProblems() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/smartcasts/problems"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("invoke.kt")
+ public void testInvoke() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/problems/invoke.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/receivers")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class Receivers extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInReceivers() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/smartcasts/receivers"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("implicitReceiverAsWhenSubject.kt")
+ public void testImplicitReceiverAsWhenSubject() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/receivers/implicitReceiverAsWhenSubject.kt");
+ }
+
+ @Test
+ @TestMetadata("implicitReceivers.kt")
+ public void testImplicitReceivers() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/receivers/implicitReceivers.kt");
+ }
+
+ @Test
+ @TestMetadata("mixingImplicitAndExplicitReceivers.kt")
+ public void testMixingImplicitAndExplicitReceivers() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/receivers/mixingImplicitAndExplicitReceivers.kt");
+ }
+
+ @Test
+ @TestMetadata("thisOfExtensionProperty.kt")
+ public void testThisOfExtensionProperty() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/receivers/thisOfExtensionProperty.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/safeCalls")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class SafeCalls extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInSafeCalls() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/smartcasts/safeCalls"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("assignSafeCall.kt")
+ public void testAssignSafeCall() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/safeCalls/assignSafeCall.kt");
+ }
+
+ @Test
+ @TestMetadata("boundSafeCallAndIsCheck.kt")
+ public void testBoundSafeCallAndIsCheck() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/safeCalls/boundSafeCallAndIsCheck.kt");
+ }
+
+ @Test
+ @TestMetadata("safeCallAndEqualityToBool.kt")
+ public void testSafeCallAndEqualityToBool() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/safeCalls/safeCallAndEqualityToBool.kt");
+ }
+
+ @Test
+ @TestMetadata("safeCalls.kt")
+ public void testSafeCalls() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/safeCalls/safeCalls.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/stability")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class Stability extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInStability() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/smartcasts/stability"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("overridenOpenVal.kt")
+ public void testOverridenOpenVal() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/stability/overridenOpenVal.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/smartcasts/variables")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class Variables extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInVariables() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/smartcasts/variables"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("delayedAssignment.kt")
+ public void testDelayedAssignment() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/variables/delayedAssignment.kt");
+ }
+
+ @Test
+ @TestMetadata("smartcastAfterReassignment.kt")
+ public void testSmartcastAfterReassignment() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/smartcasts/variables/smartcastAfterReassignment.kt");
+ }
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/stdlib")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class Stdlib extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInStdlib() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/stdlib"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/stdlib/j+k")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class J_k extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInJ_k() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/stdlib/j+k"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("ArrayInGenericArguments.kt")
+ public void testArrayInGenericArguments() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/stdlib/j+k/ArrayInGenericArguments.kt");
+ }
+
+ @Test
+ @TestMetadata("flexibleWildcard.kt")
+ public void testFlexibleWildcard() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/stdlib/j+k/flexibleWildcard.kt");
+ }
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/types")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class Types extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInTypes() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/types"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("bareWithSubjectTypeAlias.kt")
+ public void testBareWithSubjectTypeAlias() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/types/bareWithSubjectTypeAlias.kt");
+ }
+
+ @Test
+ @TestMetadata("capturedParametersOfInnerClasses.kt")
+ public void testCapturedParametersOfInnerClasses() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/types/capturedParametersOfInnerClasses.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolve/visibility")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class Visibility extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInVisibility() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/visibility"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("exposedFunctionParameterType.kt")
+ public void testExposedFunctionParameterType() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/visibility/exposedFunctionParameterType.kt");
+ }
+
+ @Test
+ @TestMetadata("exposedFunctionReturnType.kt")
+ public void testExposedFunctionReturnType() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/visibility/exposedFunctionReturnType.kt");
+ }
+
+ @Test
+ @TestMetadata("exposedPropertyType.kt")
+ public void testExposedPropertyType() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/visibility/exposedPropertyType.kt");
+ }
+
+ @Test
+ @TestMetadata("exposedSupertype.kt")
+ public void testExposedSupertype() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/visibility/exposedSupertype.kt");
+ }
+
+ @Test
+ @TestMetadata("exposedTypeAlias.kt")
+ public void testExposedTypeAlias() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/visibility/exposedTypeAlias.kt");
+ }
+
+ @Test
+ @TestMetadata("exposedTypeParameters.kt")
+ public void testExposedTypeParameters() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/visibility/exposedTypeParameters.kt");
+ }
+
+ @Test
+ @TestMetadata("intersectionOverrideWithImplicitTypes.kt")
+ public void testIntersectionOverrideWithImplicitTypes() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/visibility/intersectionOverrideWithImplicitTypes.kt");
+ }
+
+ @Test
+ @TestMetadata("kotlinJavaKotlinHierarchy.kt")
+ public void testKotlinJavaKotlinHierarchy() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/visibility/kotlinJavaKotlinHierarchy.kt");
+ }
+
+ @Test
+ @TestMetadata("protectedInCompanion.kt")
+ public void testProtectedInCompanion() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/visibility/protectedInCompanion.kt");
+ }
+
+ @Test
+ @TestMetadata("singletonConstructors.kt")
+ public void testSingletonConstructors() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/visibility/singletonConstructors.kt");
+ }
+
+ @Test
+ @TestMetadata("visibilityWithOverrides.kt")
+ public void testVisibilityWithOverrides() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolve/visibility/visibilityWithOverrides.kt");
}
}
}
@Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/stdlib")
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolveWithStdlib")
@TestDataPath("$PROJECT_ROOT")
@Execution(ExecutionMode.SAME_THREAD)
- public class Stdlib extends AbstractFirDiagnosticsWithLightTreeTest {
+ public class ResolveWithStdlib extends AbstractFirDiagnosticsWithLightTreeTest {
@Test
- public void testAllFilesPresentInStdlib() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/stdlib"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ @TestMetadata("addAllOnJavaCollection.kt")
+ public void testAddAllOnJavaCollection() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/addAllOnJavaCollection.kt");
+ }
+
+ @Test
+ public void testAllFilesPresentInResolveWithStdlib() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolveWithStdlib"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("arrayFilterCapturedType.kt")
+ public void testArrayFilterCapturedType() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/arrayFilterCapturedType.kt");
+ }
+
+ @Test
+ @TestMetadata("arrayFirstOrNull.kt")
+ public void testArrayFirstOrNull() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/arrayFirstOrNull.kt");
+ }
+
+ @Test
+ @TestMetadata("arrayInLocal.kt")
+ public void testArrayInLocal() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/arrayInLocal.kt");
+ }
+
+ @Test
+ @TestMetadata("backingField.kt")
+ public void testBackingField() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/backingField.kt");
+ }
+
+ @Test
+ @TestMetadata("classLiteralForParameter.kt")
+ public void testClassLiteralForParameter() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/classLiteralForParameter.kt");
+ }
+
+ @Test
+ @TestMetadata("cloneArray.kt")
+ public void testCloneArray() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/cloneArray.kt");
+ }
+
+ @Test
+ @TestMetadata("companionLoad.kt")
+ public void testCompanionLoad() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/companionLoad.kt");
+ }
+
+ @Test
+ @TestMetadata("complexPostponedCfg.kt")
+ public void testComplexPostponedCfg() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/complexPostponedCfg.kt");
+ }
+
+ @Test
+ @TestMetadata("components.kt")
+ public void testComponents() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/components.kt");
+ }
+
+ @Test
+ @TestMetadata("concurrent.kt")
+ public void testConcurrent() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/concurrent.kt");
+ }
+
+ @Test
+ @TestMetadata("concurrentMapOfAliases.kt")
+ public void testConcurrentMapOfAliases() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/concurrentMapOfAliases.kt");
+ }
+
+ @Test
+ @TestMetadata("emptyArray.kt")
+ public void testEmptyArray() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/emptyArray.kt");
+ }
+
+ @Test
+ @TestMetadata("enumValuesDeserialized.kt")
+ public void testEnumValuesDeserialized() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/enumValuesDeserialized.kt");
+ }
+
+ @Test
+ @TestMetadata("exception.kt")
+ public void testException() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/exception.kt");
+ }
+
+ @Test
+ @TestMetadata("factoryFunctionOverloads.kt")
+ public void testFactoryFunctionOverloads() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/factoryFunctionOverloads.kt");
+ }
+
+ @Test
+ @TestMetadata("fillInStackTrace.kt")
+ public void testFillInStackTrace() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/fillInStackTrace.kt");
+ }
+
+ @Test
+ @TestMetadata("functionAndFunctionN.kt")
+ public void testFunctionAndFunctionN() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/functionAndFunctionN.kt");
+ }
+
+ @Test
+ @TestMetadata("functionX.kt")
+ public void testFunctionX() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/functionX.kt");
+ }
+
+ @Test
+ @TestMetadata("getOnKProperty.kt")
+ public void testGetOnKProperty() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/getOnKProperty.kt");
+ }
+
+ @Test
+ @TestMetadata("getOrPutAmbiguity.kt")
+ public void testGetOrPutAmbiguity() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/getOrPutAmbiguity.kt");
+ }
+
+ @Test
+ @TestMetadata("hashMapTypeAlias.kt")
+ public void testHashMapTypeAlias() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/hashMapTypeAlias.kt");
+ }
+
+ @Test
+ @TestMetadata("hashSet.kt")
+ public void testHashSet() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/hashSet.kt");
+ }
+
+ @Test
+ @TestMetadata("hashTableWithForEach.kt")
+ public void testHashTableWithForEach() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/hashTableWithForEach.kt");
+ }
+
+ @Test
+ @TestMetadata("helloWorld.kt")
+ public void testHelloWorld() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/helloWorld.kt");
+ }
+
+ @Test
+ @TestMetadata("implicitReceiverOrder.kt")
+ public void testImplicitReceiverOrder() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/implicitReceiverOrder.kt");
+ }
+
+ @Test
+ @TestMetadata("inapplicableRemoveAll.kt")
+ public void testInapplicableRemoveAll() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/inapplicableRemoveAll.kt");
+ }
+
+ @Test
+ @TestMetadata("javaEnumSynthetic.kt")
+ public void testJavaEnumSynthetic() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/javaEnumSynthetic.kt");
+ }
+
+ @Test
+ @TestMetadata("javaLangComparator.kt")
+ public void testJavaLangComparator() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/javaLangComparator.kt");
+ }
+
+ @Test
+ @TestMetadata("kotlinComparatorAlias.kt")
+ public void testKotlinComparatorAlias() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/kotlinComparatorAlias.kt");
+ }
+
+ @Test
+ @TestMetadata("listPlusAssign.kt")
+ public void testListPlusAssign() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/listPlusAssign.kt");
+ }
+
+ @Test
+ @TestMetadata("lowPriorityInResolution.kt")
+ public void testLowPriorityInResolution() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/lowPriorityInResolution.kt");
+ }
+
+ @Test
+ @TestMetadata("mapList.kt")
+ public void testMapList() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/mapList.kt");
+ }
+
+ @Test
+ @TestMetadata("multipleImplicitReceivers.kt")
+ public void testMultipleImplicitReceivers() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/multipleImplicitReceivers.kt");
+ }
+
+ @Test
+ @TestMetadata("noneWithForEach.kt")
+ public void testNoneWithForEach() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/noneWithForEach.kt");
+ }
+
+ @Test
+ @TestMetadata("nullableTypeParameter.kt")
+ public void testNullableTypeParameter() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/nullableTypeParameter.kt");
+ }
+
+ @Test
+ @TestMetadata("plusAssignNullable.kt")
+ public void testPlusAssignNullable() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/plusAssignNullable.kt");
+ }
+
+ @Test
+ @TestMetadata("problems.kt")
+ public void testProblems() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/problems.kt");
+ }
+
+ @Test
+ @TestMetadata("rangeTo.kt")
+ public void testRangeTo() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/rangeTo.kt");
+ }
+
+ @Test
+ @TestMetadata("recursiveBug.kt")
+ public void testRecursiveBug() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/recursiveBug.kt");
+ }
+
+ @Test
+ @TestMetadata("reflectionClass.kt")
+ public void testReflectionClass() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/reflectionClass.kt");
+ }
+
+ @Test
+ @TestMetadata("removeIf.kt")
+ public void testRemoveIf() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/removeIf.kt");
+ }
+
+ @Test
+ @TestMetadata("removeOnAbstractMap.kt")
+ public void testRemoveOnAbstractMap() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/removeOnAbstractMap.kt");
+ }
+
+ @Test
+ @TestMetadata("runOnIntegerLiteral.kt")
+ public void testRunOnIntegerLiteral() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/runOnIntegerLiteral.kt");
+ }
+
+ @Test
+ @TestMetadata("samForComparator.kt")
+ public void testSamForComparator() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/samForComparator.kt");
+ }
+
+ @Test
+ @TestMetadata("simpleLazy.kt")
+ public void testSimpleLazy() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/simpleLazy.kt");
+ }
+
+ @Test
+ @TestMetadata("stringConstructors.kt")
+ public void testStringConstructors() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/stringConstructors.kt");
+ }
+
+ @Test
+ @TestMetadata("toSortedMapWithComparator.kt")
+ public void testToSortedMapWithComparator() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/toSortedMapWithComparator.kt");
+ }
+
+ @Test
+ @TestMetadata("topLevelResolve.kt")
+ public void testTopLevelResolve() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/topLevelResolve.kt");
+ }
+
+ @Test
+ @TestMetadata("typeAliasDeserialization.kt")
+ public void testTypeAliasDeserialization() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/typeAliasDeserialization.kt");
+ }
+
+ @Test
+ @TestMetadata("typeAliasWithForEach.kt")
+ public void testTypeAliasWithForEach() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/typeAliasWithForEach.kt");
+ }
+
+ @Test
+ @TestMetadata("typeParameterDerived.kt")
+ public void testTypeParameterDerived() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/typeParameterDerived.kt");
+ }
+
+ @Test
+ @TestMetadata("unaryOperators.kt")
+ public void testUnaryOperators() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/unaryOperators.kt");
+ }
+
+ @Test
+ @TestMetadata("whenAsLambdaReturnStatement.kt")
+ public void testWhenAsLambdaReturnStatement() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/whenAsLambdaReturnStatement.kt");
+ }
+
+ @Test
+ @TestMetadata("withInInitializer.kt")
+ public void testWithInInitializer() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/withInInitializer.kt");
}
@Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/stdlib/j+k")
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class CallableReferences extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInCallableReferences() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("beyoundCalls.kt")
+ public void testBeyoundCalls() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/beyoundCalls.kt");
+ }
+
+ @Test
+ @TestMetadata("coercionToUnit.kt")
+ public void testCoercionToUnit() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/coercionToUnit.kt");
+ }
+
+ @Test
+ @TestMetadata("companions.kt")
+ public void testCompanions() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/companions.kt");
+ }
+
+ @Test
+ @TestMetadata("constructors.kt")
+ public void testConstructors() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/constructors.kt");
+ }
+
+ @Test
+ @TestMetadata("differentLevels.kt")
+ public void testDifferentLevels() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/differentLevels.kt");
+ }
+
+ @Test
+ @TestMetadata("extensionReceiverInference.kt")
+ public void testExtensionReceiverInference() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/extensionReceiverInference.kt");
+ }
+
+ @Test
+ @TestMetadata("genericInReceiver.kt")
+ public void testGenericInReceiver() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/genericInReceiver.kt");
+ }
+
+ @Test
+ @TestMetadata("ifWithCR.kt")
+ public void testIfWithCR() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/ifWithCR.kt");
+ }
+
+ @Test
+ @TestMetadata("implicitTypes.kt")
+ public void testImplicitTypes() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/implicitTypes.kt");
+ }
+
+ @Test
+ @TestMetadata("inferenceFromCallableReferenceType.kt")
+ public void testInferenceFromCallableReferenceType() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/inferenceFromCallableReferenceType.kt");
+ }
+
+ @Test
+ @TestMetadata("inferenceFromExpectedType.kt")
+ public void testInferenceFromExpectedType() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/inferenceFromExpectedType.kt");
+ }
+
+ @Test
+ @TestMetadata("javaStatic.kt")
+ public void testJavaStatic() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/javaStatic.kt");
+ }
+
+ @Test
+ @TestMetadata("manyCandidatesInference.kt")
+ public void testManyCandidatesInference() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/manyCandidatesInference.kt");
+ }
+
+ @Test
+ @TestMetadata("manyInnerCandidates.kt")
+ public void testManyInnerCandidates() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/manyInnerCandidates.kt");
+ }
+
+ @Test
+ @TestMetadata("manyInnerManyOuterCandidates.kt")
+ public void testManyInnerManyOuterCandidates() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/manyInnerManyOuterCandidates.kt");
+ }
+
+ @Test
+ @TestMetadata("manyInnermanyOuterCandidatesAmbiguity.kt")
+ public void testManyInnermanyOuterCandidatesAmbiguity() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/manyInnermanyOuterCandidatesAmbiguity.kt");
+ }
+
+ @Test
+ @TestMetadata("manyOuterCandidates.kt")
+ public void testManyOuterCandidates() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/manyOuterCandidates.kt");
+ }
+
+ @Test
+ @TestMetadata("properties.kt")
+ public void testProperties() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/properties.kt");
+ }
+
+ @Test
+ @TestMetadata("sam.kt")
+ public void testSam() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/sam.kt");
+ }
+
+ @Test
+ @TestMetadata("simpleClassReceiver.kt")
+ public void testSimpleClassReceiver() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/simpleClassReceiver.kt");
+ }
+
+ @Test
+ @TestMetadata("simpleExpressionReceiver.kt")
+ public void testSimpleExpressionReceiver() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/simpleExpressionReceiver.kt");
+ }
+
+ @Test
+ @TestMetadata("simpleNoReceiver.kt")
+ public void testSimpleNoReceiver() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/simpleNoReceiver.kt");
+ }
+
+ @Test
+ @TestMetadata("varProperties.kt")
+ public void testVarProperties() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/varProperties.kt");
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class FromBasicDiagnosticTests extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInFromBasicDiagnosticTests() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("ambiguityWhenNoApplicableCallableReferenceCandidate.kt")
+ public void testAmbiguityWhenNoApplicableCallableReferenceCandidate() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/ambiguityWhenNoApplicableCallableReferenceCandidate.kt");
+ }
+
+ @Test
+ @TestMetadata("applicableCallableReferenceFromDistantScope.kt")
+ public void testApplicableCallableReferenceFromDistantScope() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/applicableCallableReferenceFromDistantScope.kt");
+ }
+
+ @Test
+ @TestMetadata("chooseCallableReferenceDependingOnInferredReceiver.kt")
+ public void testChooseCallableReferenceDependingOnInferredReceiver() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/chooseCallableReferenceDependingOnInferredReceiver.kt");
+ }
+
+ @Test
+ @TestMetadata("commonSupertypeFromReturnTypesOfCallableReference.kt")
+ public void testCommonSupertypeFromReturnTypesOfCallableReference() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/commonSupertypeFromReturnTypesOfCallableReference.kt");
+ }
+
+ @Test
+ @TestMetadata("eagerAndPostponedCallableReferences.kt")
+ public void testEagerAndPostponedCallableReferences() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/eagerAndPostponedCallableReferences.kt");
+ }
+
+ @Test
+ @TestMetadata("eagerResolveOfSingleCallableReference.kt")
+ public void testEagerResolveOfSingleCallableReference() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/eagerResolveOfSingleCallableReference.kt");
+ }
+
+ @Test
+ @TestMetadata("moreSpecificAmbiguousExtensions.kt")
+ public void testMoreSpecificAmbiguousExtensions() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/moreSpecificAmbiguousExtensions.kt");
+ }
+
+ @Test
+ @TestMetadata("multipleOutersAndMultipleCallableReferences.kt")
+ public void testMultipleOutersAndMultipleCallableReferences() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/multipleOutersAndMultipleCallableReferences.kt");
+ }
+
+ @Test
+ @TestMetadata("noAmbiguityBetweenTopLevelAndMemberProperty.kt")
+ public void testNoAmbiguityBetweenTopLevelAndMemberProperty() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/noAmbiguityBetweenTopLevelAndMemberProperty.kt");
+ }
+
+ @Test
+ @TestMetadata("overloadsBound.kt")
+ public void testOverloadsBound() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/overloadsBound.kt");
+ }
+
+ @Test
+ @TestMetadata("postponedResolveOfManyCallableReference.kt")
+ public void testPostponedResolveOfManyCallableReference() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/postponedResolveOfManyCallableReference.kt");
+ }
+
+ @Test
+ @TestMetadata("resolveCallableReferencesAfterAllSimpleArguments.kt")
+ public void testResolveCallableReferencesAfterAllSimpleArguments() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/resolveCallableReferencesAfterAllSimpleArguments.kt");
+ }
+
+ @Test
+ @TestMetadata("withGenericFun.kt")
+ public void testWithGenericFun() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/withGenericFun.kt");
+ }
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class Contracts extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInContracts() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromLibrary")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class FromLibrary extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInFromLibrary() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromLibrary"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("callsInPlace.kt")
+ public void testCallsInPlace() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromLibrary/callsInPlace.kt");
+ }
+
+ @Test
+ @TestMetadata("conditionalEffects.kt")
+ public void testConditionalEffects() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromLibrary/conditionalEffects.kt");
+ }
+
+ @Test
+ @TestMetadata("notIsNullOrEmpty.kt")
+ public void testNotIsNullOrEmpty() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromLibrary/notIsNullOrEmpty.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class FromSource extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInFromSource() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/bad")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class Bad extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInBad() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/bad"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/bad/callsInPlace")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class CallsInPlace extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInCallsInPlace() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/bad/callsInPlace"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("inAnonymousObject.kt")
+ public void testInAnonymousObject() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/bad/callsInPlace/inAnonymousObject.kt");
+ }
+
+ @Test
+ @TestMetadata("inLocalClass.kt")
+ public void testInLocalClass() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/bad/callsInPlace/inLocalClass.kt");
+ }
+
+ @Test
+ @TestMetadata("inLocalFunction.kt")
+ public void testInLocalFunction() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/bad/callsInPlace/inLocalFunction.kt");
+ }
+
+ @Test
+ @TestMetadata("toLocalVariables.kt")
+ public void testToLocalVariables() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/bad/callsInPlace/toLocalVariables.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/bad/returnsImplies")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class ReturnsImplies extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInReturnsImplies() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/bad/returnsImplies"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("notNull.kt")
+ public void testNotNull() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/bad/returnsImplies/notNull.kt");
+ }
+
+ @Test
+ @TestMetadata("propertyGetter.kt")
+ public void testPropertyGetter() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/bad/returnsImplies/propertyGetter.kt");
+ }
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class Good extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInGood() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/callsInPlace")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class CallsInPlace extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInCallsInPlace() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/callsInPlace"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("atLeastOnce.kt")
+ public void testAtLeastOnce() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/callsInPlace/atLeastOnce.kt");
+ }
+
+ @Test
+ @TestMetadata("atMostOnce.kt")
+ public void testAtMostOnce() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/callsInPlace/atMostOnce.kt");
+ }
+
+ @Test
+ @TestMetadata("contractsUsage.kt")
+ public void testContractsUsage() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/callsInPlace/contractsUsage.kt");
+ }
+
+ @Test
+ @TestMetadata("exactlyOnce.kt")
+ public void testExactlyOnce() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/callsInPlace/exactlyOnce.kt");
+ }
+
+ @Test
+ @TestMetadata("flow.kt")
+ public void testFlow() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/callsInPlace/flow.kt");
+ }
+
+ @Test
+ @TestMetadata("inPlaceLambda.kt")
+ public void testInPlaceLambda() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/callsInPlace/inPlaceLambda.kt");
+ }
+
+ @Test
+ @TestMetadata("simple.kt")
+ public void testSimple() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/callsInPlace/simple.kt");
+ }
+
+ @Test
+ @TestMetadata("unknown.kt")
+ public void testUnknown() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/callsInPlace/unknown.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/returnsImplies")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class ReturnsImplies extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInReturnsImplies() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/returnsImplies"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("booleanOperators.kt")
+ public void testBooleanOperators() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/returnsImplies/booleanOperators.kt");
+ }
+
+ @Test
+ @TestMetadata("conditionLogic.kt")
+ public void testConditionLogic() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/returnsImplies/conditionLogic.kt");
+ }
+
+ @Test
+ @TestMetadata("eqNotEq.kt")
+ public void testEqNotEq() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/returnsImplies/eqNotEq.kt");
+ }
+
+ @Test
+ @TestMetadata("inapplicable.kt")
+ public void testInapplicable() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/returnsImplies/inapplicable.kt");
+ }
+
+ @Test
+ @TestMetadata("namedArguments.kt")
+ public void testNamedArguments() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/returnsImplies/namedArguments.kt");
+ }
+
+ @Test
+ @TestMetadata("notNull.kt")
+ public void testNotNull() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/returnsImplies/notNull.kt");
+ }
+
+ @Test
+ @TestMetadata("propertyAccessors.kt")
+ public void testPropertyAccessors() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/returnsImplies/propertyAccessors.kt");
+ }
+
+ @Test
+ @TestMetadata("receivers.kt")
+ public void testReceivers() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/returnsImplies/receivers.kt");
+ }
+
+ @Test
+ @TestMetadata("safeCall.kt")
+ public void testSafeCall() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/returnsImplies/safeCall.kt");
+ }
+
+ @Test
+ @TestMetadata("trickyCases.kt")
+ public void testTrickyCases() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/returnsImplies/trickyCases.kt");
+ }
+
+ @Test
+ @TestMetadata("typePredicate.kt")
+ public void testTypePredicate() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/returnsImplies/typePredicate.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/variousContracts")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class VariousContracts extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInVariousContracts() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/variousContracts"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/variousContracts/newSyntax")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class NewSyntax extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInNewSyntax() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/variousContracts/newSyntax"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("functionsWithContract.kt")
+ public void testFunctionsWithContract() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromSource/good/variousContracts/newSyntax/functionsWithContract.kt");
+ }
+ }
+ }
+ }
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolveWithStdlib/delegates")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class Delegates extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInDelegates() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolveWithStdlib/delegates"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("anonymousInDelegate.kt")
+ public void testAnonymousInDelegate() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/delegates/anonymousInDelegate.kt");
+ }
+
+ @Test
+ @TestMetadata("delegateTypeMismatch.kt")
+ public void testDelegateTypeMismatch() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/delegates/delegateTypeMismatch.kt");
+ }
+
+ @Test
+ @TestMetadata("delegateWithAnonymousObject.kt")
+ public void testDelegateWithAnonymousObject() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/delegates/delegateWithAnonymousObject.kt");
+ }
+
+ @Test
+ @TestMetadata("propertyWithFunctionalType.kt")
+ public void testPropertyWithFunctionalType() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/delegates/propertyWithFunctionalType.kt");
+ }
+
+ @Test
+ @TestMetadata("simpleDelegateProvider.kt")
+ public void testSimpleDelegateProvider() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/delegates/simpleDelegateProvider.kt");
+ }
+
+ @Test
+ @TestMetadata("simpleDelegatedToMap.kt")
+ public void testSimpleDelegatedToMap() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/delegates/simpleDelegatedToMap.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolveWithStdlib/inference")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class Inference extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInInference() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolveWithStdlib/inference"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("builderInference.kt")
+ public void testBuilderInference() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/inference/builderInference.kt");
+ }
+
+ @Test
+ @TestMetadata("builderInferenceAndCoercionToUnit.kt")
+ public void testBuilderInferenceAndCoercionToUnit() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/inference/builderInferenceAndCoercionToUnit.kt");
+ }
+
+ @Test
+ @TestMetadata("builderInferenceFromStdlib.kt")
+ public void testBuilderInferenceFromStdlib() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/inference/builderInferenceFromStdlib.kt");
+ }
+
+ @Test
+ @TestMetadata("complexConstraintSystem.kt")
+ public void testComplexConstraintSystem() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/inference/complexConstraintSystem.kt");
+ }
+
+ @Test
+ @TestMetadata("flexibleTypeInSystem.kt")
+ public void testFlexibleTypeInSystem() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/inference/flexibleTypeInSystem.kt");
+ }
+
+ @Test
+ @TestMetadata("ifElvisReturn.kt")
+ public void testIfElvisReturn() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/inference/ifElvisReturn.kt");
+ }
+
+ @Test
+ @TestMetadata("plusAssignWithLambdaInRhs.kt")
+ public void testPlusAssignWithLambdaInRhs() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/inference/plusAssignWithLambdaInRhs.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolveWithStdlib/initialization")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class Initialization extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInInitialization() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolveWithStdlib/initialization"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("fromLocalMembers.kt")
+ public void testFromLocalMembers() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/initialization/fromLocalMembers.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k")
@TestDataPath("$PROJECT_ROOT")
@Execution(ExecutionMode.SAME_THREAD)
public class J_k extends AbstractFirDiagnosticsWithLightTreeTest {
@Test
public void testAllFilesPresentInJ_k() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/stdlib/j+k"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@Test
- @TestMetadata("ArrayInGenericArguments.kt")
- public void testArrayInGenericArguments() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/stdlib/j+k/ArrayInGenericArguments.kt");
+ @TestMetadata("BasicWithAnnotatedJava.kt")
+ public void testBasicWithAnnotatedJava() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/BasicWithAnnotatedJava.kt");
}
@Test
- @TestMetadata("flexibleWildcard.kt")
- public void testFlexibleWildcard() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/stdlib/j+k/flexibleWildcard.kt");
+ @TestMetadata("BasicWithAnnotatedOverriddenJava.kt")
+ public void testBasicWithAnnotatedOverriddenJava() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/BasicWithAnnotatedOverriddenJava.kt");
+ }
+
+ @Test
+ @TestMetadata("BasicWithJava.kt")
+ public void testBasicWithJava() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/BasicWithJava.kt");
+ }
+
+ @Test
+ @TestMetadata("BasicWithJavaFakeOverride.kt")
+ public void testBasicWithJavaFakeOverride() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/BasicWithJavaFakeOverride.kt");
+ }
+
+ @Test
+ @TestMetadata("BasicWithPrimitiveJava.kt")
+ public void testBasicWithPrimitiveJava() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/BasicWithPrimitiveJava.kt");
+ }
+
+ @Test
+ @TestMetadata("capturedFlexible.kt")
+ public void testCapturedFlexible() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/capturedFlexible.kt");
+ }
+
+ @Test
+ @TestMetadata("complexFlexibleInference.kt")
+ public void testComplexFlexibleInference() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/complexFlexibleInference.kt");
+ }
+
+ @Test
+ @TestMetadata("FieldAccessFromDerived.kt")
+ public void testFieldAccessFromDerived() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/FieldAccessFromDerived.kt");
+ }
+
+ @Test
+ @TestMetadata("FieldAndGetter.kt")
+ public void testFieldAndGetter() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/FieldAndGetter.kt");
+ }
+
+ @Test
+ @TestMetadata("fieldOverride.kt")
+ public void testFieldOverride() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/fieldOverride.kt");
+ }
+
+ @Test
+ @TestMetadata("FieldSubstitution.kt")
+ public void testFieldSubstitution() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/FieldSubstitution.kt");
+ }
+
+ @Test
+ @TestMetadata("FlexiblePrimitiveOverloading.kt")
+ public void testFlexiblePrimitiveOverloading() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/FlexiblePrimitiveOverloading.kt");
+ }
+
+ @Test
+ @TestMetadata("flexibleTypeAliases.kt")
+ public void testFlexibleTypeAliases() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/flexibleTypeAliases.kt");
+ }
+
+ @Test
+ @TestMetadata("FunctionTypeInJava.kt")
+ public void testFunctionTypeInJava() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/FunctionTypeInJava.kt");
+ }
+
+ @Test
+ @TestMetadata("IntersectionTypesProblem.kt")
+ public void testIntersectionTypesProblem() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/IntersectionTypesProblem.kt");
+ }
+
+ @Test
+ @TestMetadata("JavaGetPrefixConflict.kt")
+ public void testJavaGetPrefixConflict() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/JavaGetPrefixConflict.kt");
+ }
+
+ @Test
+ @TestMetadata("JavaInheritsKotlinDerived.kt")
+ public void testJavaInheritsKotlinDerived() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/JavaInheritsKotlinDerived.kt");
+ }
+
+ @Test
+ @TestMetadata("JavaInheritsKotlinExtension.kt")
+ public void testJavaInheritsKotlinExtension() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/JavaInheritsKotlinExtension.kt");
+ }
+
+ @Test
+ @TestMetadata("JavaInheritsKotlinProperty.kt")
+ public void testJavaInheritsKotlinProperty() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/JavaInheritsKotlinProperty.kt");
+ }
+
+ @Test
+ @TestMetadata("JavaInheritsRawKotlin.kt")
+ public void testJavaInheritsRawKotlin() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/JavaInheritsRawKotlin.kt");
+ }
+
+ @Test
+ @TestMetadata("JavaSyntheticProperty.kt")
+ public void testJavaSyntheticProperty() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/JavaSyntheticProperty.kt");
+ }
+
+ @Test
+ @TestMetadata("JavaVisibility2.kt")
+ public void testJavaVisibility2() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/JavaVisibility2.kt");
+ }
+
+ @Test
+ @TestMetadata("KJKComplexHierarchy.kt")
+ public void testKJKComplexHierarchy() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/KJKComplexHierarchy.kt");
+ }
+
+ @Test
+ @TestMetadata("KJKComplexHierarchyWithNested.kt")
+ public void testKJKComplexHierarchyWithNested() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/KJKComplexHierarchyWithNested.kt");
+ }
+
+ @Test
+ @TestMetadata("KJKInheritance.kt")
+ public void testKJKInheritance() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/KJKInheritance.kt");
+ }
+
+ @Test
+ @TestMetadata("KJKInheritanceGeneric.kt")
+ public void testKJKInheritanceGeneric() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/KJKInheritanceGeneric.kt");
+ }
+
+ @Test
+ @TestMetadata("KotlinClassParameter.kt")
+ public void testKotlinClassParameter() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/KotlinClassParameter.kt");
+ }
+
+ @Test
+ @TestMetadata("KotlinClassParameterGeneric.kt")
+ public void testKotlinClassParameterGeneric() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/KotlinClassParameterGeneric.kt");
+ }
+
+ @Test
+ @TestMetadata("kt39076.kt")
+ public void testKt39076() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/kt39076.kt");
+ }
+
+ @Test
+ @TestMetadata("LoggerInstance.kt")
+ public void testLoggerInstance() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/LoggerInstance.kt");
+ }
+
+ @Test
+ @TestMetadata("MapCompute.kt")
+ public void testMapCompute() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/MapCompute.kt");
+ }
+
+ @Test
+ @TestMetadata("MapEntry.kt")
+ public void testMapEntry() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/MapEntry.kt");
+ }
+
+ @Test
+ @TestMetadata("mapMerge.kt")
+ public void testMapMerge() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/mapMerge.kt");
+ }
+
+ @Test
+ @TestMetadata("MyException.kt")
+ public void testMyException() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/MyException.kt");
+ }
+
+ @Test
+ @TestMetadata("MyIterable.kt")
+ public void testMyIterable() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/MyIterable.kt");
+ }
+
+ @Test
+ @TestMetadata("MyMap.kt")
+ public void testMyMap() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/MyMap.kt");
+ }
+
+ @Test
+ @TestMetadata("outerInnerClasses.kt")
+ public void testOuterInnerClasses() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/outerInnerClasses.kt");
+ }
+
+ @Test
+ @TestMetadata("OverrideWithJava.kt")
+ public void testOverrideWithJava() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/OverrideWithJava.kt");
+ }
+
+ @Test
+ @TestMetadata("RawType.kt")
+ public void testRawType() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/RawType.kt");
+ }
+
+ @Test
+ @TestMetadata("serializableString.kt")
+ public void testSerializableString() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/serializableString.kt");
+ }
+
+ @Test
+ @TestMetadata("smartSet.kt")
+ public void testSmartSet() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/smartSet.kt");
+ }
+
+ @Test
+ @TestMetadata("StaticClassConstructorFromBaseClass.kt")
+ public void testStaticClassConstructorFromBaseClass() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/StaticClassConstructorFromBaseClass.kt");
+ }
+
+ @Test
+ @TestMetadata("StaticFromBaseClass.kt")
+ public void testStaticFromBaseClass() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/StaticFromBaseClass.kt");
+ }
+
+ @Test
+ @TestMetadata("StaticGenericMethod.kt")
+ public void testStaticGenericMethod() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/StaticGenericMethod.kt");
+ }
+
+ @Test
+ @TestMetadata("SyntheticAfterFiltering.kt")
+ public void testSyntheticAfterFiltering() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/SyntheticAfterFiltering.kt");
+ }
+
+ @Test
+ @TestMetadata("SyntheticWithForEach.kt")
+ public void testSyntheticWithForEach() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/SyntheticWithForEach.kt");
+ }
+
+ @Test
+ @TestMetadata("typeParameterUse.kt")
+ public void testTypeParameterUse() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/j+k/typeParameterUse.kt");
}
}
- }
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/types")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class Types extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- public void testAllFilesPresentInTypes() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/types"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolveWithStdlib/multiModule")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class MultiModule extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInMultiModule() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolveWithStdlib/multiModule"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("Basic.kt")
+ public void testBasic() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/multiModule/Basic.kt");
+ }
+
+ @Test
+ @TestMetadata("FakeOverrides.kt")
+ public void testFakeOverrides() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/multiModule/FakeOverrides.kt");
+ }
+
+ @Test
+ @TestMetadata("MemberType.kt")
+ public void testMemberType() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/multiModule/MemberType.kt");
+ }
+
+ @Test
+ @TestMetadata("Members.kt")
+ public void testMembers() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/multiModule/Members.kt");
+ }
+
+ @Test
+ @TestMetadata("SuperTypes.kt")
+ public void testSuperTypes() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/multiModule/SuperTypes.kt");
+ }
}
- @Test
- @TestMetadata("bareWithSubjectTypeAlias.kt")
- public void testBareWithSubjectTypeAlias() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/types/bareWithSubjectTypeAlias.kt");
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolveWithStdlib/problems")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class Problems extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInProblems() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolveWithStdlib/problems"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
+
+ @Test
+ @TestMetadata("DeepCopyIrTree.kt")
+ public void testDeepCopyIrTree() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/problems/DeepCopyIrTree.kt");
+ }
+
+ @Test
+ @TestMetadata("EnumMapGet.kt")
+ public void testEnumMapGet() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/problems/EnumMapGet.kt");
+ }
+
+ @Test
+ @TestMetadata("invokePriority.kt")
+ public void testInvokePriority() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/problems/invokePriority.kt");
+ }
+
+ @Test
+ @TestMetadata("invokePriorityComplex.kt")
+ public void testInvokePriorityComplex() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/problems/invokePriorityComplex.kt");
+ }
+
+ @Test
+ @TestMetadata("KJKComplexHierarchyNestedLoop.kt")
+ public void testKJKComplexHierarchyNestedLoop() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/problems/KJKComplexHierarchyNestedLoop.kt");
+ }
+
+ @Test
+ @TestMetadata("qualifierPriority.kt")
+ public void testQualifierPriority() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/problems/qualifierPriority.kt");
+ }
+
+ @Test
+ @TestMetadata("receiverResolutionInLambda.kt")
+ public void testReceiverResolutionInLambda() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/problems/receiverResolutionInLambda.kt");
+ }
+
+ @Test
+ @TestMetadata("selfReferenceToCompanionObject.kt")
+ public void testSelfReferenceToCompanionObject() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/problems/selfReferenceToCompanionObject.kt");
+ }
+
+ @Test
+ @TestMetadata("SpecialCallsWithLambdas.kt")
+ public void testSpecialCallsWithLambdas() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/problems/SpecialCallsWithLambdas.kt");
+ }
+
+ @Test
+ @TestMetadata("TypesEligibleForSimpleVisit.kt")
+ public void testTypesEligibleForSimpleVisit() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/problems/TypesEligibleForSimpleVisit.kt");
+ }
+
+ @Test
+ @TestMetadata("weakHashMap.kt")
+ public void testWeakHashMap() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/problems/weakHashMap.kt");
+ }
}
- @Test
- @TestMetadata("capturedParametersOfInnerClasses.kt")
- public void testCapturedParametersOfInnerClasses() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/types/capturedParametersOfInnerClasses.kt");
- }
- }
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolveWithStdlib/reinitializations")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class Reinitializations extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInReinitializations() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolveWithStdlib/reinitializations"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
- @Nested
- @TestMetadata("compiler/fir/analysis-tests/testData/resolve/visibility")
- @TestDataPath("$PROJECT_ROOT")
- @Execution(ExecutionMode.SAME_THREAD)
- public class Visibility extends AbstractFirDiagnosticsWithLightTreeTest {
- @Test
- public void testAllFilesPresentInVisibility() throws Exception {
- KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/visibility"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ @Test
+ @TestMetadata("constructorVarWrite.kt")
+ public void testConstructorVarWrite() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/reinitializations/constructorVarWrite.kt");
+ }
}
- @Test
- @TestMetadata("exposedFunctionParameterType.kt")
- public void testExposedFunctionParameterType() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/visibility/exposedFunctionParameterType.kt");
- }
+ @Nested
+ @TestMetadata("compiler/fir/analysis-tests/testData/resolveWithStdlib/smartcasts")
+ @TestDataPath("$PROJECT_ROOT")
+ @Execution(ExecutionMode.SAME_THREAD)
+ public class Smartcasts extends AbstractFirDiagnosticsWithLightTreeTest {
+ @Test
+ public void testAllFilesPresentInSmartcasts() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolveWithStdlib/smartcasts"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
+ }
- @Test
- @TestMetadata("exposedFunctionReturnType.kt")
- public void testExposedFunctionReturnType() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/visibility/exposedFunctionReturnType.kt");
- }
-
- @Test
- @TestMetadata("exposedPropertyType.kt")
- public void testExposedPropertyType() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/visibility/exposedPropertyType.kt");
- }
-
- @Test
- @TestMetadata("exposedSupertype.kt")
- public void testExposedSupertype() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/visibility/exposedSupertype.kt");
- }
-
- @Test
- @TestMetadata("exposedTypeAlias.kt")
- public void testExposedTypeAlias() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/visibility/exposedTypeAlias.kt");
- }
-
- @Test
- @TestMetadata("exposedTypeParameters.kt")
- public void testExposedTypeParameters() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/visibility/exposedTypeParameters.kt");
- }
-
- @Test
- @TestMetadata("intersectionOverrideWithImplicitTypes.kt")
- public void testIntersectionOverrideWithImplicitTypes() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/visibility/intersectionOverrideWithImplicitTypes.kt");
- }
-
- @Test
- @TestMetadata("kotlinJavaKotlinHierarchy.kt")
- public void testKotlinJavaKotlinHierarchy() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/visibility/kotlinJavaKotlinHierarchy.kt");
- }
-
- @Test
- @TestMetadata("protectedInCompanion.kt")
- public void testProtectedInCompanion() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/visibility/protectedInCompanion.kt");
- }
-
- @Test
- @TestMetadata("singletonConstructors.kt")
- public void testSingletonConstructors() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/visibility/singletonConstructors.kt");
- }
-
- @Test
- @TestMetadata("visibilityWithOverrides.kt")
- public void testVisibilityWithOverrides() throws Exception {
- runTest("compiler/fir/analysis-tests/testData/resolve/visibility/visibilityWithOverrides.kt");
+ @Test
+ @TestMetadata("tryWithLambdaInside.kt")
+ public void testTryWithLambdaInside() throws Exception {
+ runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/smartcasts/tryWithLambdaInside.kt");
+ }
}
}
}
diff --git a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirOldFrontendDiagnosticsTestGenerated.java b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirOldFrontendDiagnosticsTestGenerated.java
index a6b54dd2470..4f3716e24a4 100644
--- a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirOldFrontendDiagnosticsTestGenerated.java
+++ b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirOldFrontendDiagnosticsTestGenerated.java
@@ -1457,6 +1457,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
public void testParenthesizedAnnotations() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/functionalTypes/parenthesizedAnnotations.kt");
}
+
+ @Test
+ @TestMetadata("propagteAnyAnnotations.kt")
+ public void testPropagteAnyAnnotations() throws Exception {
+ runTest("compiler/testData/diagnostics/tests/annotations/functionalTypes/propagteAnyAnnotations.kt");
+ }
}
@Nested
@@ -14002,6 +14008,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
runTest("compiler/testData/diagnostics/tests/inference/regressions/kt4420.kt");
}
+ @Test
+ @TestMetadata("kt44440.kt")
+ public void testKt44440() throws Exception {
+ runTest("compiler/testData/diagnostics/tests/inference/regressions/kt44440.kt");
+ }
+
@Test
@TestMetadata("kt702.kt")
public void testKt702() throws Exception {
@@ -14189,6 +14201,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
public void testSubstitutionIntoInnerClass() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/substitutions/substitutionIntoInnerClass.kt");
}
+
+ @Test
+ @TestMetadata("substitutionOfTypeEnhancement.kt")
+ public void testSubstitutionOfTypeEnhancement() throws Exception {
+ runTest("compiler/testData/diagnostics/tests/inference/substitutions/substitutionOfTypeEnhancement.kt");
+ }
}
@Nested
@@ -14305,6 +14323,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
runTest("compiler/testData/diagnostics/tests/inline/anonymousObjects.kt");
}
+ @Test
+ @TestMetadata("approximateReturnedAnonymousObjects.kt")
+ public void testApproximateReturnedAnonymousObjects() throws Exception {
+ runTest("compiler/testData/diagnostics/tests/inline/approximateReturnedAnonymousObjects.kt");
+ }
+
@Test
@TestMetadata("assignment.kt")
public void testAssignment() throws Exception {
@@ -20201,6 +20225,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
runTest("compiler/testData/diagnostics/tests/platformTypes/override.kt");
}
+ @Test
+ @TestMetadata("propagateFlexibilityFromOtherConstraints.kt")
+ public void testPropagateFlexibilityFromOtherConstraints() throws Exception {
+ runTest("compiler/testData/diagnostics/tests/platformTypes/propagateFlexibilityFromOtherConstraints.kt");
+ }
+
@Test
@TestMetadata("rawOverrides.kt")
public void testRawOverrides() throws Exception {
@@ -20852,6 +20882,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/platformTypes/typeEnhancement"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
+ @Test
+ @TestMetadata("buildFlexibleEnhancement.kt")
+ public void testBuildFlexibleEnhancement() throws Exception {
+ runTest("compiler/testData/diagnostics/tests/platformTypes/typeEnhancement/buildFlexibleEnhancement.kt");
+ }
+
@Test
@TestMetadata("overriddenExtensions.kt")
public void testOverriddenExtensions() throws Exception {
@@ -24391,12 +24427,6 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
runTest("compiler/testData/diagnostics/tests/sealed/NeverFinal.kt");
}
- @Test
- @TestMetadata("NeverInterface.kt")
- public void testNeverInterface() throws Exception {
- runTest("compiler/testData/diagnostics/tests/sealed/NeverInterface.kt");
- }
-
@Test
@TestMetadata("NeverObject.kt")
public void testNeverObject() throws Exception {
@@ -27231,12 +27261,6 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
runTest("compiler/testData/diagnostics/tests/sourceCompatibility/noMultiplatformProjects.kt");
}
- @Test
- @TestMetadata("noTopLevelSealedInheritance.kt")
- public void testNoTopLevelSealedInheritance() throws Exception {
- runTest("compiler/testData/diagnostics/tests/sourceCompatibility/noTopLevelSealedInheritance.kt");
- }
-
@Nested
@TestMetadata("compiler/testData/diagnostics/tests/sourceCompatibility/apiVersion")
@TestDataPath("$PROJECT_ROOT")
diff --git a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxCodegenTestGenerated.java b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxCodegenTestGenerated.java
index 0da9a2ee212..6441ede6b42 100644
--- a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxCodegenTestGenerated.java
+++ b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxCodegenTestGenerated.java
@@ -4906,12 +4906,6 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/classes/rightHandOverride.kt");
}
- @Test
- @TestMetadata("sealedInSameFile.kt")
- public void testSealedInSameFile() throws Exception {
- runTest("compiler/testData/codegen/box/classes/sealedInSameFile.kt");
- }
-
@Test
@TestMetadata("selfcreate.kt")
public void testSelfcreate() throws Exception {
@@ -13706,12 +13700,36 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
+ @TestMetadata("ConstValAccess.kt")
+ public void testConstValAccess() throws Exception {
+ runTest("compiler/testData/codegen/box/fir/ConstValAccess.kt");
+ }
+
@Test
@TestMetadata("ExtensionAlias.kt")
public void testExtensionAlias() throws Exception {
runTest("compiler/testData/codegen/box/fir/ExtensionAlias.kt");
}
+ @Test
+ @TestMetadata("FakeOverrideBuilder.kt")
+ public void testFakeOverrideBuilder() throws Exception {
+ runTest("compiler/testData/codegen/box/fir/FakeOverrideBuilder.kt");
+ }
+
+ @Test
+ @TestMetadata("IrBuiltIns.kt")
+ public void testIrBuiltIns() throws Exception {
+ runTest("compiler/testData/codegen/box/fir/IrBuiltIns.kt");
+ }
+
+ @Test
+ @TestMetadata("NameHighlighter.kt")
+ public void testNameHighlighter() throws Exception {
+ runTest("compiler/testData/codegen/box/fir/NameHighlighter.kt");
+ }
+
@Test
@TestMetadata("SuspendExtension.kt")
public void testSuspendExtension() throws Exception {
@@ -18361,6 +18379,268 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
}
}
+ @Nested
+ @TestMetadata("compiler/testData/codegen/box/invokedynamic")
+ @TestDataPath("$PROJECT_ROOT")
+ public class Invokedynamic extends AbstractFirBlackBoxCodegenTest {
+ @Test
+ public void testAllFilesPresentInInvokedynamic() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/invokedynamic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
+ }
+
+ @Nested
+ @TestMetadata("compiler/testData/codegen/box/invokedynamic/sam")
+ @TestDataPath("$PROJECT_ROOT")
+ public class Sam extends AbstractFirBlackBoxCodegenTest {
+ @Test
+ public void testAllFilesPresentInSam() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/invokedynamic/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
+ }
+
+ @Test
+ @TestMetadata("boundFunctionReferenceEquality.kt")
+ public void testBoundFunctionReferenceEquality() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/boundFunctionReferenceEquality.kt");
+ }
+
+ @Test
+ @TestMetadata("boundReference.kt")
+ public void testBoundReference() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/boundReference.kt");
+ }
+
+ @Test
+ @TestMetadata("builtinMemberReference.kt")
+ public void testBuiltinMemberReference() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/builtinMemberReference.kt");
+ }
+
+ @Test
+ @TestMetadata("capturedDispatchReceiver.kt")
+ public void testCapturedDispatchReceiver() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/capturedDispatchReceiver.kt");
+ }
+
+ @Test
+ @TestMetadata("capturedExtensionReceiver.kt")
+ public void testCapturedExtensionReceiver() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/capturedExtensionReceiver.kt");
+ }
+
+ @Test
+ @TestMetadata("capturingIndyFunInterface.kt")
+ public void testCapturingIndyFunInterface() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/capturingIndyFunInterface.kt");
+ }
+
+ @Test
+ @TestMetadata("capturingIndySam.kt")
+ public void testCapturingIndySam() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/capturingIndySam.kt");
+ }
+
+ @Test
+ @TestMetadata("capturingVar.kt")
+ public void testCapturingVar() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/capturingVar.kt");
+ }
+
+ @Test
+ @TestMetadata("constructorReference.kt")
+ public void testConstructorReference() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/constructorReference.kt");
+ }
+
+ @Test
+ @TestMetadata("genericFunInterface.kt")
+ public void testGenericFunInterface() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/genericFunInterface.kt");
+ }
+
+ @Test
+ @TestMetadata("genericFunInterfaceWithPrimitive.kt")
+ public void testGenericFunInterfaceWithPrimitive() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/genericFunInterfaceWithPrimitive.kt");
+ }
+
+ @Test
+ @TestMetadata("possibleOverrideClash.kt")
+ public void testPossibleOverrideClash() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/possibleOverrideClash.kt");
+ }
+
+ @Test
+ @TestMetadata("primitiveVsWrapperInSam.kt")
+ public void testPrimitiveVsWrapperInSam() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/primitiveVsWrapperInSam.kt");
+ }
+
+ @Test
+ @TestMetadata("samConversionInsideSamConvertedLambda.kt")
+ public void testSamConversionInsideSamConvertedLambda() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/samConversionInsideSamConvertedLambda.kt");
+ }
+
+ @Test
+ @TestMetadata("samConversionOnFunctionReference.kt")
+ public void testSamConversionOnFunctionReference() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/samConversionOnFunctionReference.kt");
+ }
+
+ @Test
+ @TestMetadata("simpleIndyFunInterface.kt")
+ public void testSimpleIndyFunInterface() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/simpleIndyFunInterface.kt");
+ }
+
+ @Test
+ @TestMetadata("simpleIndySam.kt")
+ public void testSimpleIndySam() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/simpleIndySam.kt");
+ }
+
+ @Test
+ @TestMetadata("streamApi1.kt")
+ public void testStreamApi1() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/streamApi1.kt");
+ }
+
+ @Test
+ @TestMetadata("streamApi2.kt")
+ public void testStreamApi2() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/streamApi2.kt");
+ }
+
+ @Test
+ @TestMetadata("suspendFunInterface.kt")
+ public void testSuspendFunInterface() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/suspendFunInterface.kt");
+ }
+
+ @Test
+ @TestMetadata("unboundFunctionReferenceEquality.kt")
+ public void testUnboundFunctionReferenceEquality() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/unboundFunctionReferenceEquality.kt");
+ }
+
+ @Nested
+ @TestMetadata("compiler/testData/codegen/box/invokedynamic/sam/inline")
+ @TestDataPath("$PROJECT_ROOT")
+ public class Inline extends AbstractFirBlackBoxCodegenTest {
+ @Test
+ public void testAllFilesPresentInInline() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/invokedynamic/sam/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
+ }
+
+ @Test
+ @TestMetadata("crossinlineLambda1.kt")
+ public void testCrossinlineLambda1() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/inline/crossinlineLambda1.kt");
+ }
+
+ @Test
+ @TestMetadata("crossinlineLambda2.kt")
+ public void testCrossinlineLambda2() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/inline/crossinlineLambda2.kt");
+ }
+
+ @Test
+ @TestMetadata("inlineFunInDifferentPackage.kt")
+ public void testInlineFunInDifferentPackage() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/inline/inlineFunInDifferentPackage.kt");
+ }
+
+ @Test
+ @TestMetadata("inlineLambda1.kt")
+ public void testInlineLambda1() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/inline/inlineLambda1.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature")
+ @TestDataPath("$PROJECT_ROOT")
+ public class InlineClassInSignature extends AbstractFirBlackBoxCodegenTest {
+ @Test
+ public void testAllFilesPresentInInlineClassInSignature() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
+ }
+
+ @Test
+ @TestMetadata("funInterfaceWithInlineAny.kt")
+ public void testFunInterfaceWithInlineAny() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/funInterfaceWithInlineAny.kt");
+ }
+
+ @Test
+ @TestMetadata("funInterfaceWithInlineInt.kt")
+ public void testFunInterfaceWithInlineInt() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/funInterfaceWithInlineInt.kt");
+ }
+
+ @Test
+ @TestMetadata("funInterfaceWithInlineNAny.kt")
+ public void testFunInterfaceWithInlineNAny() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/funInterfaceWithInlineNAny.kt");
+ }
+
+ @Test
+ @TestMetadata("funInterfaceWithInlineNInt.kt")
+ public void testFunInterfaceWithInlineNInt() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/funInterfaceWithInlineNInt.kt");
+ }
+
+ @Test
+ @TestMetadata("funInterfaceWithInlineNString.kt")
+ public void testFunInterfaceWithInlineNString() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/funInterfaceWithInlineNString.kt");
+ }
+
+ @Test
+ @TestMetadata("funInterfaceWithInlineString.kt")
+ public void testFunInterfaceWithInlineString() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/funInterfaceWithInlineString.kt");
+ }
+
+ @Test
+ @TestMetadata("genericFunInterfaceWithInlineAny.kt")
+ public void testGenericFunInterfaceWithInlineAny() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/genericFunInterfaceWithInlineAny.kt");
+ }
+
+ @Test
+ @TestMetadata("genericFunInterfaceWithInlineInt.kt")
+ public void testGenericFunInterfaceWithInlineInt() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/genericFunInterfaceWithInlineInt.kt");
+ }
+
+ @Test
+ @TestMetadata("genericFunInterfaceWithInlineNAny.kt")
+ public void testGenericFunInterfaceWithInlineNAny() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/genericFunInterfaceWithInlineNAny.kt");
+ }
+
+ @Test
+ @TestMetadata("genericFunInterfaceWithInlineNInt.kt")
+ public void testGenericFunInterfaceWithInlineNInt() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/genericFunInterfaceWithInlineNInt.kt");
+ }
+
+ @Test
+ @TestMetadata("genericFunInterfaceWithInlineNString.kt")
+ public void testGenericFunInterfaceWithInlineNString() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/genericFunInterfaceWithInlineNString.kt");
+ }
+
+ @Test
+ @TestMetadata("genericFunInterfaceWithInlineString.kt")
+ public void testGenericFunInterfaceWithInlineString() throws Exception {
+ runTest("compiler/testData/codegen/box/invokedynamic/sam/inlineClassInSignature/genericFunInterfaceWithInlineString.kt");
+ }
+ }
+ }
+ }
+
@Nested
@TestMetadata("compiler/testData/codegen/box/ir")
@TestDataPath("$PROJECT_ROOT")
@@ -19264,6 +19544,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
@TestMetadata("compiler/testData/codegen/box/jvm8/defaults")
@TestDataPath("$PROJECT_ROOT")
public class Defaults extends AbstractFirBlackBoxCodegenTest {
+ @Test
+ @TestMetadata("26360.kt")
+ public void test26360() throws Exception {
+ runTest("compiler/testData/codegen/box/jvm8/defaults/26360.kt");
+ }
+
@Test
@TestMetadata("accessor.kt")
public void testAccessor() throws Exception {
@@ -33290,6 +33576,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/regressions/approximateIntersectionType.kt");
}
+ @Test
+ @TestMetadata("approximationForDefinitelyNotNull.kt")
+ public void testApproximationForDefinitelyNotNull() throws Exception {
+ runTest("compiler/testData/codegen/box/regressions/approximationForDefinitelyNotNull.kt");
+ }
+
@Test
@TestMetadata("arrayLengthNPE.kt")
public void testArrayLengthNPE() throws Exception {
@@ -34224,12 +34516,6 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/sam/arrayAsVarargAfterSamArgument.kt");
}
- @Test
- @TestMetadata("arrayAsVarargAfterSamArgumentWithoutSamConversionsPerArgument.kt")
- public void testArrayAsVarargAfterSamArgumentWithoutSamConversionsPerArgument() throws Exception {
- runTest("compiler/testData/codegen/box/sam/arrayAsVarargAfterSamArgumentWithoutSamConversionsPerArgument.kt");
- }
-
@Test
@TestMetadata("castFromAny.kt")
public void testCastFromAny() throws Exception {
@@ -34494,6 +34780,18 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/sealed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
+ @TestMetadata("constructorAnnotations.kt")
+ public void testConstructorAnnotations() throws Exception {
+ runTest("compiler/testData/codegen/box/sealed/constructorAnnotations.kt");
+ }
+
+ @Test
+ @TestMetadata("delegatingConstructor.kt")
+ public void testDelegatingConstructor() throws Exception {
+ runTest("compiler/testData/codegen/box/sealed/delegatingConstructor.kt");
+ }
+
@Test
@TestMetadata("multipleFiles_enabled.kt")
public void testMultipleFiles_enabled() throws Exception {
@@ -34506,6 +34804,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/sealed/objects.kt");
}
+ @Test
+ @TestMetadata("sealedInSameFile.kt")
+ public void testSealedInSameFile() throws Exception {
+ runTest("compiler/testData/codegen/box/sealed/sealedInSameFile.kt");
+ }
+
@Test
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
@@ -34858,6 +35162,18 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/smartCasts"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
+ @TestMetadata("complexExplicitReceiver.kt")
+ public void testComplexExplicitReceiver() throws Exception {
+ runTest("compiler/testData/codegen/box/smartCasts/complexExplicitReceiver.kt");
+ }
+
+ @Test
+ @TestMetadata("complexImplicitReceiver.kt")
+ public void testComplexImplicitReceiver() throws Exception {
+ runTest("compiler/testData/codegen/box/smartCasts/complexImplicitReceiver.kt");
+ }
+
@Test
@TestMetadata("falseSmartCast.kt")
public void testFalseSmartCast() throws Exception {
diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/codegen/ir/FirBytecodeTextTestGenerated.java b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBytecodeTextTestGenerated.java
similarity index 88%
rename from compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/codegen/ir/FirBytecodeTextTestGenerated.java
rename to compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBytecodeTextTestGenerated.java
index 5aab02dcb1e..115fc4cd7da 100644
--- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/codegen/ir/FirBytecodeTextTestGenerated.java
+++ b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBytecodeTextTestGenerated.java
@@ -3,739 +3,843 @@
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
-package org.jetbrains.kotlin.codegen.ir;
+package org.jetbrains.kotlin.test.runners.codegen;
import com.intellij.testFramework.TestDataPath;
-import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
-import org.jetbrains.kotlin.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.util.KtTestUtil;
import org.jetbrains.kotlin.test.TargetBackend;
import org.jetbrains.kotlin.test.TestMetadata;
-import org.junit.runner.RunWith;
+import org.junit.jupiter.api.Nested;
+import org.junit.jupiter.api.Test;
import java.io.File;
import java.util.regex.Pattern;
-/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
+/** This class is generated by {@link GenerateNewCompilerTests.kt}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@TestMetadata("compiler/testData/codegen/bytecodeText")
@TestDataPath("$PROJECT_ROOT")
-@RunWith(JUnit3RunnerWithInners.class)
public class FirBytecodeTextTestGenerated extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ @Test
@TestMetadata("accessorForOverridenVal.kt")
public void testAccessorForOverridenVal() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/accessorForOverridenVal.kt");
}
+ @Test
@TestMetadata("accessorForProtected.kt")
public void testAccessorForProtected() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/accessorForProtected.kt");
}
+ @Test
@TestMetadata("accessorNaming.kt")
public void testAccessorNaming() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/accessorNaming.kt");
}
+ @Test
public void testAllFilesPresentInBytecodeText() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true, "oldLanguageVersions");
}
+ @Test
@TestMetadata("annotationDefaultValue.kt")
public void testAnnotationDefaultValue() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/annotationDefaultValue.kt");
}
+ @Test
@TestMetadata("annotationJavaRetentionPolicyRuntime.kt")
public void testAnnotationJavaRetentionPolicyRuntime() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/annotationJavaRetentionPolicyRuntime.kt");
}
+ @Test
@TestMetadata("annotationRetentionPolicyClass.kt")
public void testAnnotationRetentionPolicyClass() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/annotationRetentionPolicyClass.kt");
}
+ @Test
@TestMetadata("annotationRetentionPolicyRuntime.kt")
public void testAnnotationRetentionPolicyRuntime() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/annotationRetentionPolicyRuntime.kt");
}
+ @Test
@TestMetadata("annotationRetentionPolicySource.kt")
public void testAnnotationRetentionPolicySource() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/annotationRetentionPolicySource.kt");
}
+ @Test
@TestMetadata("boxedNotNumberTypeOnUnboxing.kt")
public void testBoxedNotNumberTypeOnUnboxing() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/boxedNotNumberTypeOnUnboxing.kt");
}
+ @Test
@TestMetadata("bridgeForFakeOverride.kt")
public void testBridgeForFakeOverride() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/bridgeForFakeOverride.kt");
}
+ @Test
@TestMetadata("charConstant.kt")
public void testCharConstant() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/charConstant.kt");
}
+ @Test
@TestMetadata("collectionStubs.kt")
public void testCollectionStubs() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/collectionStubs.kt");
}
+ @Test
@TestMetadata("componentEvaluatesOnlyOnce.kt")
public void testComponentEvaluatesOnlyOnce() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/componentEvaluatesOnlyOnce.kt");
}
+ @Test
@TestMetadata("constClosureOptimization.kt")
public void testConstClosureOptimization() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constClosureOptimization.kt");
}
+ @Test
@TestMetadata("defaultMethodBody.kt")
public void testDefaultMethodBody() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/defaultMethodBody.kt");
}
+ @Test
@TestMetadata("doNotStoreNullForTmpInDestructuring.kt")
public void testDoNotStoreNullForTmpInDestructuring() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/doNotStoreNullForTmpInDestructuring.kt");
}
+ @Test
@TestMetadata("doNotStoreNullsForCapturedVars.kt")
public void testDoNotStoreNullsForCapturedVars() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/doNotStoreNullsForCapturedVars.kt");
}
+ @Test
@TestMetadata("falseSmartCast.kt")
public void testFalseSmartCast() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/falseSmartCast.kt");
}
+ @Test
@TestMetadata("flagsInMultiFileInherit.kt")
public void testFlagsInMultiFileInherit() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/flagsInMultiFileInherit.kt");
}
+ @Test
@TestMetadata("iincGeneration.kt")
public void testIincGeneration() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/iincGeneration.kt");
}
+ @Test
@TestMetadata("inheritedPropertyAnnotations.kt")
public void testInheritedPropertyAnnotations() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inheritedPropertyAnnotations.kt");
}
+ @Test
@TestMetadata("inlineFromOtherModule.kt")
public void testInlineFromOtherModule() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineFromOtherModule.kt");
}
+ @Test
@TestMetadata("inlineJavaConstantFromSubclass.kt")
public void testInlineJavaConstantFromSubclass() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineJavaConstantFromSubclass.kt");
}
+ @Test
@TestMetadata("inlineJavaStaticFields.kt")
public void testInlineJavaStaticFields() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineJavaStaticFields.kt");
}
+ @Test
@TestMetadata("inlineProtectedJavaConstantFromOtherPackage.kt")
public void testInlineProtectedJavaConstantFromOtherPackage() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineProtectedJavaConstantFromOtherPackage.kt");
}
+ @Test
@TestMetadata("intConstantNotNull.kt")
public void testIntConstantNotNull() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/intConstantNotNull.kt");
}
+ @Test
@TestMetadata("intConstantNullable.kt")
public void testIntConstantNullable() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/intConstantNullable.kt");
}
+ @Test
@TestMetadata("intConstantNullableSafeCall.kt")
public void testIntConstantNullableSafeCall() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/intConstantNullableSafeCall.kt");
}
+ @Test
@TestMetadata("intConstantSafeCall.kt")
public void testIntConstantSafeCall() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/intConstantSafeCall.kt");
}
+ @Test
@TestMetadata("intProgressionNoBoxing.kt")
public void testIntProgressionNoBoxing() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/intProgressionNoBoxing.kt");
}
+ @Test
@TestMetadata("intRangeNoBoxing.kt")
public void testIntRangeNoBoxing() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/intRangeNoBoxing.kt");
}
+ @Test
@TestMetadata("interfaceDefaultImpl.kt")
public void testInterfaceDefaultImpl() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/interfaceDefaultImpl.kt");
}
+ @Test
@TestMetadata("isArrayOf.kt")
public void testIsArrayOf() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/isArrayOf.kt");
}
+ @Test
@TestMetadata("javaExtensionPropertyIntrinsic.kt")
public void testJavaExtensionPropertyIntrinsic() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/javaExtensionPropertyIntrinsic.kt");
}
+ @Test
@TestMetadata("javaFields.kt")
public void testJavaFields() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/javaFields.kt");
}
+ @Test
@TestMetadata("javaFieldsWithIntersectionTypes.kt")
public void testJavaFieldsWithIntersectionTypes() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/javaFieldsWithIntersectionTypes.kt");
}
+ @Test
@TestMetadata("javaStatics.kt")
public void testJavaStatics() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/javaStatics.kt");
}
+ @Test
@TestMetadata("jvmField.kt")
public void testJvmField() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/jvmField.kt");
}
+ @Test
@TestMetadata("jvmStaticInternalMangling.kt")
public void testJvmStaticInternalMangling() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/jvmStaticInternalMangling.kt");
}
+ @Test
@TestMetadata("kt10259.kt")
public void testKt10259() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/kt10259.kt");
}
+ @Test
@TestMetadata("kt10259_2.kt")
public void testKt10259_2() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/kt10259_2.kt");
}
+ @Test
@TestMetadata("kt10259_3.kt")
public void testKt10259_3() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/kt10259_3.kt");
}
+ @Test
@TestMetadata("kt2202.kt")
public void testKt2202() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/kt2202.kt");
}
+ @Test
@TestMetadata("kt2887.kt")
public void testKt2887() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/kt2887.kt");
}
+ @Test
@TestMetadata("kt3845.kt")
public void testKt3845() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/kt3845.kt");
}
+ @Test
@TestMetadata("kt5016.kt")
public void testKt5016() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/kt5016.kt");
}
+ @Test
@TestMetadata("kt5016int.kt")
public void testKt5016int() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/kt5016int.kt");
}
+ @Test
@TestMetadata("kt5016intOrNull.kt")
public void testKt5016intOrNull() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/kt5016intOrNull.kt");
}
+ @Test
@TestMetadata("kt7188.kt")
public void testKt7188() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/kt7188.kt");
}
+ @Test
@TestMetadata("kt7769.kt")
public void testKt7769() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/kt7769.kt");
}
+ @Test
@TestMetadata("kt9603.kt")
public void testKt9603() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/kt9603.kt");
}
+ @Test
@TestMetadata("mapGetOrDefault.kt")
public void testMapGetOrDefault() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/mapGetOrDefault.kt");
}
+ @Test
@TestMetadata("maxStackAfterOptimizations.kt")
public void testMaxStackAfterOptimizations() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/maxStackAfterOptimizations.kt");
}
+ @Test
@TestMetadata("noAccessorForProtectedInSamePackageCrossinline.kt")
public void testNoAccessorForProtectedInSamePackageCrossinline() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/noAccessorForProtectedInSamePackageCrossinline.kt");
}
+ @Test
@TestMetadata("noFlagAnnotations.kt")
public void testNoFlagAnnotations() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/noFlagAnnotations.kt");
}
+ @Test
@TestMetadata("noNumberCheckCast.kt")
public void testNoNumberCheckCast() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/noNumberCheckCast.kt");
}
+ @Test
@TestMetadata("noSuperCheckInDefaultConstuctor.kt")
public void testNoSuperCheckInDefaultConstuctor() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/noSuperCheckInDefaultConstuctor.kt");
}
+ @Test
@TestMetadata("noSyntheticAccessorForPrivateCompanionObjectWhenNotRequired.kt")
public void testNoSyntheticAccessorForPrivateCompanionObjectWhenNotRequired() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/noSyntheticAccessorForPrivateCompanionObjectWhenNotRequired.kt");
}
+ @Test
@TestMetadata("noWrapperForMethodReturningPrimitive.kt")
public void testNoWrapperForMethodReturningPrimitive() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/noWrapperForMethodReturningPrimitive.kt");
}
+ @Test
@TestMetadata("nopsInDoWhile.kt")
public void testNopsInDoWhile() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/nopsInDoWhile.kt");
}
+ @Test
@TestMetadata("partMembersCall.kt")
public void testPartMembersCall() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/partMembersCall.kt");
}
+ @Test
@TestMetadata("partMembersInline.kt")
public void testPartMembersInline() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/partMembersInline.kt");
}
+ @Test
@TestMetadata("preEvaluateInlineJavaStaticFields.kt")
public void testPreEvaluateInlineJavaStaticFields() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/preEvaluateInlineJavaStaticFields.kt");
}
+ @Test
@TestMetadata("prefixIntVarIncrement.kt")
public void testPrefixIntVarIncrement() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/prefixIntVarIncrement.kt");
}
+ @Test
@TestMetadata("privateDefaultArgs.kt")
public void testPrivateDefaultArgs() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/privateDefaultArgs.kt");
}
+ @Test
@TestMetadata("redundantGotoRemoving.kt")
public void testRedundantGotoRemoving() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/redundantGotoRemoving.kt");
}
+ @Test
@TestMetadata("redundantInitializer.kt")
public void testRedundantInitializer() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/redundantInitializer.kt");
}
+ @Test
@TestMetadata("redundantInitializerNumber.kt")
public void testRedundantInitializerNumber() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/redundantInitializerNumber.kt");
}
+ @Test
@TestMetadata("redundantValInitializer.kt")
public void testRedundantValInitializer() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/redundantValInitializer.kt");
}
+ @Test
@TestMetadata("redundantValInitializerInObject.kt")
public void testRedundantValInitializerInObject() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/redundantValInitializerInObject.kt");
}
+ @Test
@TestMetadata("redundantVarInitializer.kt")
public void testRedundantVarInitializer() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/redundantVarInitializer.kt");
}
+ @Test
@TestMetadata("redundantVarInitializerInObject.kt")
public void testRedundantVarInitializerInObject() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/redundantVarInitializerInObject.kt");
}
+ @Test
@TestMetadata("reifiedAsCheck.kt")
public void testReifiedAsCheck() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/reifiedAsCheck.kt");
}
+ @Test
@TestMetadata("reifiedAsCheckWithNullable.kt")
public void testReifiedAsCheckWithNullable() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/reifiedAsCheckWithNullable.kt");
}
+ @Test
@TestMetadata("reifiedIsCheck.kt")
public void testReifiedIsCheck() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/reifiedIsCheck.kt");
}
+ @Test
@TestMetadata("reifiedIsCheckWithNullable.kt")
public void testReifiedIsCheckWithNullable() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/reifiedIsCheckWithNullable.kt");
}
+ @Test
@TestMetadata("reifiedSafeAsCheck.kt")
public void testReifiedSafeAsCheck() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/reifiedSafeAsCheck.kt");
}
+ @Test
@TestMetadata("safeAsWithMutable.kt")
public void testSafeAsWithMutable() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/safeAsWithMutable.kt");
}
+ @Test
@TestMetadata("superFlagInMultiFileFacade.kt")
public void testSuperFlagInMultiFileFacade() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/superFlagInMultiFileFacade.kt");
}
+ @Test
@TestMetadata("superToString.kt")
public void testSuperToString() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/superToString.kt");
}
+ @Test
@TestMetadata("suspendCoroutineUninterceptedOrReturn.kt")
public void testSuspendCoroutineUninterceptedOrReturn() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/suspendCoroutineUninterceptedOrReturn.kt");
}
+ @Test
@TestMetadata("topLevelFunWithDefaultArgs.kt")
public void testTopLevelFunWithDefaultArgs() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/topLevelFunWithDefaultArgs.kt");
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/argumentOrder")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class ArgumentOrder extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class ArgumentOrder extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInArgumentOrder() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/argumentOrder"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("sameOrder.kt")
public void testSameOrder() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/argumentOrder/sameOrder.kt");
}
+ @Test
@TestMetadata("sameOrderWithDefault.kt")
public void testSameOrderWithDefault() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/argumentOrder/sameOrderWithDefault.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/assert")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Assert extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class Assert extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInAssert() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/assert"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("jvmCrossinline.kt")
public void testJvmCrossinline() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/assert/jvmCrossinline.kt");
}
+ @Test
@TestMetadata("jvmCrossinlineAssertInLambda.kt")
public void testJvmCrossinlineAssertInLambda() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/assert/jvmCrossinlineAssertInLambda.kt");
}
+ @Test
@TestMetadata("jvmInline.kt")
public void testJvmInline() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/assert/jvmInline.kt");
}
+ @Test
@TestMetadata("jvmInlineLambda.kt")
public void testJvmInlineLambda() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/assert/jvmInlineLambda.kt");
}
+ @Test
@TestMetadata("jvmNestedClass.kt")
public void testJvmNestedClass() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/assert/jvmNestedClass.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/boxing")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Boxing extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class Boxing extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInBoxing() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/boxing"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("crossinlineSuspend.kt")
public void testCrossinlineSuspend() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/boxing/crossinlineSuspend.kt");
}
+ @Test
@TestMetadata("inlineSuspend.kt")
public void testInlineSuspend() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/boxing/inlineSuspend.kt");
}
+ @Test
@TestMetadata("suspend.kt")
public void testSuspend() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/boxing/suspend.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/boxingOptimization")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class BoxingOptimization extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class BoxingOptimization extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInBoxingOptimization() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/boxingOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("boxingAndEquals.kt")
public void testBoxingAndEquals() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/boxingAndEquals.kt");
}
+ @Test
@TestMetadata("casts.kt")
public void testCasts() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/casts.kt");
}
+ @Test
@TestMetadata("checkcastAndInstanceOf.kt")
public void testCheckcastAndInstanceOf() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/checkcastAndInstanceOf.kt");
}
+ @Test
@TestMetadata("fold.kt")
public void testFold() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/fold.kt");
}
+ @Test
@TestMetadata("inlineClassesAndInlinedLambda.kt")
public void testInlineClassesAndInlinedLambda() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/inlineClassesAndInlinedLambda.kt");
}
+ @Test
@TestMetadata("intCompareTo.kt")
public void testIntCompareTo() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/intCompareTo.kt");
}
+ @Test
@TestMetadata("kClassInAnnotation.kt")
public void testKClassInAnnotation() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/kClassInAnnotation.kt");
}
+ @Test
@TestMetadata("kClassInAnnotationEscaping.kt")
public void testKClassInAnnotationEscaping() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/kClassInAnnotationEscaping.kt");
}
+ @Test
@TestMetadata("kt15862.kt")
public void testKt15862() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/kt15862.kt");
}
+ @Test
@TestMetadata("kt15862_2.kt")
public void testKt15862_2() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/kt15862_2.kt");
}
+ @Test
@TestMetadata("kt6842.kt")
public void testKt6842() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/kt6842.kt");
}
+ @Test
@TestMetadata("kt7224.kt")
public void testKt7224() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/kt7224.kt");
}
+ @Test
@TestMetadata("maxMinByOrNull.kt")
public void testMaxMinByOrNull() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/maxMinByOrNull.kt");
}
+ @Test
@TestMetadata("nullCheck.kt")
public void testNullCheck() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/nullCheck.kt");
}
+ @Test
@TestMetadata("progressions.kt")
public void testProgressions() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/progressions.kt");
}
+ @Test
@TestMetadata("safeCallToPrimitiveEquality.kt")
public void testSafeCallToPrimitiveEquality() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/safeCallToPrimitiveEquality.kt");
}
+ @Test
@TestMetadata("safeCallWithElvis.kt")
public void testSafeCallWithElvis() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/safeCallWithElvis.kt");
}
+ @Test
@TestMetadata("severalInlines.kt")
public void testSeveralInlines() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/severalInlines.kt");
}
+ @Test
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/simple.kt");
}
+ @Test
@TestMetadata("simpleUninitializedMerge.kt")
public void testSimpleUninitializedMerge() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/simpleUninitializedMerge.kt");
}
+ @Test
@TestMetadata("unsafeRemoving.kt")
public void testUnsafeRemoving() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/unsafeRemoving.kt");
}
+ @Test
@TestMetadata("unsignedRangeIteratorSpecialization.kt")
public void testUnsignedRangeIteratorSpecialization() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/unsignedRangeIteratorSpecialization.kt");
}
+ @Test
@TestMetadata("variableClash.kt")
public void testVariableClash() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/variableClash.kt");
}
+ @Test
@TestMetadata("variables.kt")
public void testVariables() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/boxingOptimization/variables.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/builtinFunctions")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class BuiltinFunctions extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class BuiltinFunctions extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInBuiltinFunctions() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/builtinFunctions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("charSequence.kt")
public void testCharSequence() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/builtinFunctions/charSequence.kt");
}
+ @Test
@TestMetadata("contains.kt")
public void testContains() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/builtinFunctions/contains.kt");
}
+ @Test
@TestMetadata("removeAt.kt")
public void testRemoveAt() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/builtinFunctions/removeAt.kt");
}
+ @Test
@TestMetadata("size.kt")
public void testSize() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/builtinFunctions/size.kt");
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/builtinFunctions/genericParameterBridge")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class GenericParameterBridge extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class GenericParameterBridge extends AbstractFirBytecodeTextTest {
+ @Test
@TestMetadata("abstractList.kt")
public void testAbstractList() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/builtinFunctions/genericParameterBridge/abstractList.kt");
}
+ @Test
public void testAllFilesPresentInGenericParameterBridge() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/builtinFunctions/genericParameterBridge"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("IntMC.kt")
public void testIntMC() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/builtinFunctions/genericParameterBridge/IntMC.kt");
}
+ @Test
@TestMetadata("mutableCollection.kt")
public void testMutableCollection() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/builtinFunctions/genericParameterBridge/mutableCollection.kt");
}
+ @Test
@TestMetadata("mutableSetInterfaces.kt")
public void testMutableSetInterfaces() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/builtinFunctions/genericParameterBridge/mutableSetInterfaces.kt");
}
+ @Test
@TestMetadata("notNullAnyMC.kt")
public void testNotNullAnyMC() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/builtinFunctions/genericParameterBridge/notNullAnyMC.kt");
}
+ @Test
@TestMetadata("notNullParamMC.kt")
public void testNotNullParamMC() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/builtinFunctions/genericParameterBridge/notNullParamMC.kt");
}
+ @Test
@TestMetadata("nullableAnyMC.kt")
public void testNullableAnyMC() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/builtinFunctions/genericParameterBridge/nullableAnyMC.kt");
@@ -743,993 +847,1091 @@ public class FirBytecodeTextTestGenerated extends AbstractFirBytecodeTextTest {
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/callableReference")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class CallableReference extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class CallableReference extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInCallableReference() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("boundFieldReferenceInInline.kt")
public void testBoundFieldReferenceInInline() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/callableReference/boundFieldReferenceInInline.kt");
}
+ @Test
@TestMetadata("boundFunReferenceInInline.kt")
public void testBoundFunReferenceInInline() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/callableReference/boundFunReferenceInInline.kt");
}
+ @Test
@TestMetadata("boundPropertyReferenceInInline.kt")
public void testBoundPropertyReferenceInInline() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/callableReference/boundPropertyReferenceInInline.kt");
}
+ @Test
@TestMetadata("kt36975.kt")
public void testKt36975() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/callableReference/kt36975.kt");
}
+ @Test
@TestMetadata("kt39612.kt")
public void testKt39612() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/callableReference/kt39612.kt");
}
+ @Test
@TestMetadata("nameIntrinsicWithImplicitThis.kt")
public void testNameIntrinsicWithImplicitThis() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/callableReference/nameIntrinsicWithImplicitThis.kt");
}
+ @Test
@TestMetadata("unboundFieldReferenceInInline.kt")
public void testUnboundFieldReferenceInInline() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/callableReference/unboundFieldReferenceInInline.kt");
}
+ @Test
@TestMetadata("unboundFunReferenceInInline.kt")
public void testUnboundFunReferenceInInline() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/callableReference/unboundFunReferenceInInline.kt");
}
+ @Test
@TestMetadata("unboundPropertyReferenceInInline.kt")
public void testUnboundPropertyReferenceInInline() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/callableReference/unboundPropertyReferenceInInline.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/capturedVarsOptimization")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class CapturedVarsOptimization extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class CapturedVarsOptimization extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInCapturedVarsOptimization() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/capturedVarsOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("capturedInChainOfInlineFuns.kt")
public void testCapturedInChainOfInlineFuns() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/capturedVarsOptimization/capturedInChainOfInlineFuns.kt");
}
+ @Test
@TestMetadata("capturedInInlineOnly.kt")
public void testCapturedInInlineOnly() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/capturedVarsOptimization/capturedInInlineOnly.kt");
}
+ @Test
@TestMetadata("capturedInLocalObject.kt")
public void testCapturedInLocalObject() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/capturedVarsOptimization/capturedInLocalObject.kt");
}
+ @Test
@TestMetadata("capturedInNoInlineOnly.kt")
public void testCapturedInNoInlineOnly() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/capturedVarsOptimization/capturedInNoInlineOnly.kt");
}
+ @Test
@TestMetadata("capturedInNoInlneInsideChainOfInlineFuns.kt")
public void testCapturedInNoInlneInsideChainOfInlineFuns() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/capturedVarsOptimization/capturedInNoInlneInsideChainOfInlineFuns.kt");
}
+ @Test
@TestMetadata("capturedValInLambdaInitializedInside.kt")
public void testCapturedValInLambdaInitializedInside() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/capturedVarsOptimization/capturedValInLambdaInitializedInside.kt");
}
+ @Test
@TestMetadata("capturedValInLambdaInitializedOutside.kt")
public void testCapturedValInLambdaInitializedOutside() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/capturedVarsOptimization/capturedValInLambdaInitializedOutside.kt");
}
+ @Test
@TestMetadata("capturedVarsOfSize2.kt")
public void testCapturedVarsOfSize2() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/capturedVarsOptimization/capturedVarsOfSize2.kt");
}
+ @Test
@TestMetadata("sharedSlotsWithCapturedVars.kt")
public void testSharedSlotsWithCapturedVars() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/capturedVarsOptimization/sharedSlotsWithCapturedVars.kt");
}
+ @Test
@TestMetadata("withStackNormalization.kt")
public void testWithStackNormalization() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/capturedVarsOptimization/withStackNormalization.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/checkcast")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Checkcast extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class Checkcast extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInCheckcast() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/checkcast"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("kt14811.kt")
public void testKt14811() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/checkcast/kt14811.kt");
}
+ @Test
@TestMetadata("kt14963.kt")
public void testKt14963() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/checkcast/kt14963.kt");
}
+ @Test
@TestMetadata("kt15411.kt")
public void testKt15411() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/checkcast/kt15411.kt");
}
+ @Test
@TestMetadata("kt22714.kt")
public void testKt22714() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/checkcast/kt22714.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/coercionToUnitOptimization")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class CoercionToUnitOptimization extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class CoercionToUnitOptimization extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInCoercionToUnitOptimization() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/coercionToUnitOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("inRangeCheckWithConst.kt")
public void testInRangeCheckWithConst() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coercionToUnitOptimization/inRangeCheckWithConst.kt");
}
+ @Test
@TestMetadata("kt14360.kt")
public void testKt14360() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coercionToUnitOptimization/kt14360.kt");
}
+ @Test
@TestMetadata("largeMethodWithCoercionToUnit.kt")
public void testLargeMethodWithCoercionToUnit() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coercionToUnitOptimization/largeMethodWithCoercionToUnit.kt");
}
+ @Test
@TestMetadata("nopInlineFuns.kt")
public void testNopInlineFuns() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coercionToUnitOptimization/nopInlineFuns.kt");
}
+ @Test
@TestMetadata("returnsUnit.kt")
public void testReturnsUnit() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coercionToUnitOptimization/returnsUnit.kt");
}
+ @Test
@TestMetadata("safeCall.kt")
public void testSafeCall() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coercionToUnitOptimization/safeCall.kt");
}
+ @Test
@TestMetadata("safeCallWithReturnValue.kt")
public void testSafeCallWithReturnValue() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coercionToUnitOptimization/safeCallWithReturnValue.kt");
}
+ @Test
@TestMetadata("safeLet.kt")
public void testSafeLet() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coercionToUnitOptimization/safeLet.kt");
}
+ @Test
@TestMetadata("tryInlined.kt")
public void testTryInlined() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coercionToUnitOptimization/tryInlined.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/companion")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Companion extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class Companion extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInCompanion() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/companion"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("directAccessToBackingField.kt")
public void testDirectAccessToBackingField() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/companion/directAccessToBackingField.kt");
}
+ @Test
@TestMetadata("floatingPointCompanionAccess.kt")
public void testFloatingPointCompanionAccess() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/companion/floatingPointCompanionAccess.kt");
}
+ @Test
@TestMetadata("inlineFunctionCompanionPropertyAccess.kt")
public void testInlineFunctionCompanionPropertyAccess() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/companion/inlineFunctionCompanionPropertyAccess.kt");
}
+ @Test
@TestMetadata("inlineFunctionObjectCompanionPropertyAccess.kt")
public void testInlineFunctionObjectCompanionPropertyAccess() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/companion/inlineFunctionObjectCompanionPropertyAccess.kt");
}
+ @Test
@TestMetadata("kt14258_1.kt")
public void testKt14258_1() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/companion/kt14258_1.kt");
}
+ @Test
@TestMetadata("kt14258_2.kt")
public void testKt14258_2() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/companion/kt14258_2.kt");
}
+ @Test
@TestMetadata("kt14258_3.kt")
public void testKt14258_3() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/companion/kt14258_3.kt");
}
+ @Test
@TestMetadata("kt14258_4.kt")
public void testKt14258_4() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/companion/kt14258_4.kt");
}
+ @Test
@TestMetadata("kt14258_5.kt")
public void testKt14258_5() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/companion/kt14258_5.kt");
}
+ @Test
@TestMetadata("nonDefaultAccessors.kt")
public void testNonDefaultAccessors() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/companion/nonDefaultAccessors.kt");
}
+ @Test
@TestMetadata("privateCompanionObjectAccessors_after.kt")
public void testPrivateCompanionObjectAccessors_after() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/companion/privateCompanionObjectAccessors_after.kt");
}
+ @Test
@TestMetadata("privateCompanionObjectAccessors_before.kt")
public void testPrivateCompanionObjectAccessors_before() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/companion/privateCompanionObjectAccessors_before.kt");
}
+ @Test
@TestMetadata("protectedCompanionObjectAccessors_after.kt")
public void testProtectedCompanionObjectAccessors_after() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/companion/protectedCompanionObjectAccessors_after.kt");
}
+ @Test
@TestMetadata("protectedCompanionObjectAccessors_before.kt")
public void testProtectedCompanionObjectAccessors_before() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/companion/protectedCompanionObjectAccessors_before.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/conditions")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Conditions extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class Conditions extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInConditions() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/conditions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("conjunction.kt")
public void testConjunction() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/conditions/conjunction.kt");
}
+ @Test
@TestMetadata("conjunctionInDoWhile.kt")
public void testConjunctionInDoWhile() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/conditions/conjunctionInDoWhile.kt");
}
+ @Test
@TestMetadata("conjunctionInWhile.kt")
public void testConjunctionInWhile() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/conditions/conjunctionInWhile.kt");
}
+ @Test
@TestMetadata("disjunction.kt")
public void testDisjunction() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/conditions/disjunction.kt");
}
+ @Test
@TestMetadata("negatedConjuction.kt")
public void testNegatedConjuction() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/conditions/negatedConjuction.kt");
}
+ @Test
@TestMetadata("negatedDisjunction.kt")
public void testNegatedDisjunction() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/conditions/negatedDisjunction.kt");
}
+ @Test
@TestMetadata("negatedNonZeroCompareInDoWhile.kt")
public void testNegatedNonZeroCompareInDoWhile() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/conditions/negatedNonZeroCompareInDoWhile.kt");
}
+ @Test
@TestMetadata("negatedNonZeroCompareInIf.kt")
public void testNegatedNonZeroCompareInIf() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/conditions/negatedNonZeroCompareInIf.kt");
}
+ @Test
@TestMetadata("negatedNonZeroCompareInWhile.kt")
public void testNegatedNonZeroCompareInWhile() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/conditions/negatedNonZeroCompareInWhile.kt");
}
+ @Test
@TestMetadata("negatedNullCompareInDoWhile.kt")
public void testNegatedNullCompareInDoWhile() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/conditions/negatedNullCompareInDoWhile.kt");
}
+ @Test
@TestMetadata("negatedNullCompareInIf.kt")
public void testNegatedNullCompareInIf() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/conditions/negatedNullCompareInIf.kt");
}
+ @Test
@TestMetadata("negatedNullCompareInWhile.kt")
public void testNegatedNullCompareInWhile() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/conditions/negatedNullCompareInWhile.kt");
}
+ @Test
@TestMetadata("negatedZeroCompareInDoWhile.kt")
public void testNegatedZeroCompareInDoWhile() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/conditions/negatedZeroCompareInDoWhile.kt");
}
+ @Test
@TestMetadata("negatedZeroCompareInIf.kt")
public void testNegatedZeroCompareInIf() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/conditions/negatedZeroCompareInIf.kt");
}
+ @Test
@TestMetadata("negatedZeroCompareInWhile.kt")
public void testNegatedZeroCompareInWhile() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/conditions/negatedZeroCompareInWhile.kt");
}
+ @Test
@TestMetadata("noBoxingForBoxedEqPrimitive.kt")
public void testNoBoxingForBoxedEqPrimitive() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/conditions/noBoxingForBoxedEqPrimitive.kt");
}
+ @Test
@TestMetadata("noBoxingForPrimitiveEqBoxed.kt")
public void testNoBoxingForPrimitiveEqBoxed() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/conditions/noBoxingForPrimitiveEqBoxed.kt");
}
+ @Test
@TestMetadata("noBoxingForPrimitiveEqObject.kt")
public void testNoBoxingForPrimitiveEqObject() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/conditions/noBoxingForPrimitiveEqObject.kt");
}
+ @Test
@TestMetadata("nonZeroCompareInDoWhile.kt")
public void testNonZeroCompareInDoWhile() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/conditions/nonZeroCompareInDoWhile.kt");
}
+ @Test
@TestMetadata("nonZeroCompareInIf.kt")
public void testNonZeroCompareInIf() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/conditions/nonZeroCompareInIf.kt");
}
+ @Test
@TestMetadata("nonZeroCompareInWhile.kt")
public void testNonZeroCompareInWhile() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/conditions/nonZeroCompareInWhile.kt");
}
+ @Test
@TestMetadata("nullCompareConst.kt")
public void testNullCompareConst() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/conditions/nullCompareConst.kt");
}
+ @Test
@TestMetadata("nullCompareInDoWhile.kt")
public void testNullCompareInDoWhile() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/conditions/nullCompareInDoWhile.kt");
}
+ @Test
@TestMetadata("nullCompareInIf.kt")
public void testNullCompareInIf() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/conditions/nullCompareInIf.kt");
}
+ @Test
@TestMetadata("nullCompareInWhile.kt")
public void testNullCompareInWhile() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/conditions/nullCompareInWhile.kt");
}
+ @Test
@TestMetadata("zeroCompareInDoWhile.kt")
public void testZeroCompareInDoWhile() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/conditions/zeroCompareInDoWhile.kt");
}
+ @Test
@TestMetadata("zeroCompareInIf.kt")
public void testZeroCompareInIf() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/conditions/zeroCompareInIf.kt");
}
+ @Test
@TestMetadata("zeroCompareInWhile.kt")
public void testZeroCompareInWhile() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/conditions/zeroCompareInWhile.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/constProperty")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class ConstProperty extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class ConstProperty extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInConstProperty() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/constProperty"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("noAccessorsForPrivateConstants.kt")
public void testNoAccessorsForPrivateConstants() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constProperty/noAccessorsForPrivateConstants.kt");
}
+ @Test
@TestMetadata("noInline.kt")
public void testNoInline() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constProperty/noInline.kt");
}
+ @Test
@TestMetadata("noInlineInCmp.kt")
public void testNoInlineInCmp() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constProperty/noInlineInCmp.kt");
}
+ @Test
@TestMetadata("nonConstValHasNoDefaultValue_after.kt")
public void testNonConstValHasNoDefaultValue_after() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constProperty/nonConstValHasNoDefaultValue_after.kt");
}
+ @Test
@TestMetadata("nonConstValHasNoDefaultValue_before.kt")
public void testNonConstValHasNoDefaultValue_before() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constProperty/nonConstValHasNoDefaultValue_before.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/constantConditions")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class ConstantConditions extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class ConstantConditions extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInConstantConditions() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/constantConditions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("cmpIntWith0.kt")
public void testCmpIntWith0() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constantConditions/cmpIntWith0.kt");
}
+ @Test
@TestMetadata("constantFlag.kt")
public void testConstantFlag() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constantConditions/constantFlag.kt");
}
+ @Test
@TestMetadata("constantInt.kt")
public void testConstantInt() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constantConditions/constantInt.kt");
}
+ @Test
@TestMetadata("inlineIfFalse.kt")
public void testInlineIfFalse() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constantConditions/inlineIfFalse.kt");
}
+ @Test
@TestMetadata("kt3098.kt")
public void testKt3098() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constantConditions/kt3098.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/constants")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Constants extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class Constants extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInConstants() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/constants"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("byte.kt")
public void testByte() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constants/byte.kt");
}
+ @Test
@TestMetadata("comparisonFalse.kt")
public void testComparisonFalse() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constants/comparisonFalse.kt");
}
+ @Test
@TestMetadata("comparisonTrue.kt")
public void testComparisonTrue() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constants/comparisonTrue.kt");
}
+ @Test
@TestMetadata("floatingPoints.kt")
public void testFloatingPoints() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constants/floatingPoints.kt");
}
+ @Test
@TestMetadata("inlineUnsignedIntConstant.kt")
public void testInlineUnsignedIntConstant() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constants/inlineUnsignedIntConstant.kt");
}
+ @Test
@TestMetadata("kt9532.kt")
public void testKt9532() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constants/kt9532.kt");
}
+ @Test
@TestMetadata("noInlineNonConst.kt")
public void testNoInlineNonConst() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constants/noInlineNonConst.kt");
}
+ @Test
@TestMetadata("noInlineNonStaticJavaField.kt")
public void testNoInlineNonStaticJavaField() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constants/noInlineNonStaticJavaField.kt");
}
+ @Test
@TestMetadata("noInlineNonStaticJavaField_lv10.kt")
public void testNoInlineNonStaticJavaField_lv10() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constants/noInlineNonStaticJavaField_lv10.kt");
}
+ @Test
@TestMetadata("nullableByteAndShort.kt")
public void testNullableByteAndShort() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constants/nullableByteAndShort.kt");
}
+ @Test
@TestMetadata("partialString.kt")
public void testPartialString() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constants/partialString.kt");
}
+ @Test
@TestMetadata("short.kt")
public void testShort() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constants/short.kt");
}
+ @Test
@TestMetadata("string.kt")
public void testString() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constants/string.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/constructors")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Constructors extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class Constructors extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInConstructors() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/constructors"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("enumPrimaryDefaults.kt")
public void testEnumPrimaryDefaults() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constructors/enumPrimaryDefaults.kt");
}
+ @Test
@TestMetadata("inlineArgumentPrimaryDefaults.kt")
public void testInlineArgumentPrimaryDefaults() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constructors/inlineArgumentPrimaryDefaults.kt");
}
+ @Test
@TestMetadata("inlinePrimaryDefaults.kt")
public void testInlinePrimaryDefaults() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constructors/inlinePrimaryDefaults.kt");
}
+ @Test
@TestMetadata("innerPrimaryDefaults.kt")
public void testInnerPrimaryDefaults() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constructors/innerPrimaryDefaults.kt");
}
+ @Test
@TestMetadata("internalPrimaryDefaults.kt")
public void testInternalPrimaryDefaults() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constructors/internalPrimaryDefaults.kt");
}
+ @Test
@TestMetadata("localPrimaryDefaults.kt")
public void testLocalPrimaryDefaults() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constructors/localPrimaryDefaults.kt");
}
+ @Test
@TestMetadata("parameterlessPrimary.kt")
public void testParameterlessPrimary() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constructors/parameterlessPrimary.kt");
}
+ @Test
@TestMetadata("privatePrimaryDefaults.kt")
public void testPrivatePrimaryDefaults() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constructors/privatePrimaryDefaults.kt");
}
+ @Test
@TestMetadata("protectedPrimaryDefaults.kt")
public void testProtectedPrimaryDefaults() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/constructors/protectedPrimaryDefaults.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/controlStructures")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class ControlStructures extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class ControlStructures extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInControlStructures() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/controlStructures"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("ifConsts.kt")
public void testIfConsts() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/controlStructures/ifConsts.kt");
}
+ @Test
@TestMetadata("kt17110.kt")
public void testKt17110() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/controlStructures/kt17110.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/coroutines")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Coroutines extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class Coroutines extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInCoroutines() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/coroutines"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("crossinlineSuspendContinuation_1_3.kt")
public void testCrossinlineSuspendContinuation_1_3() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/crossinlineSuspendContinuation_1_3.kt");
}
+ @Test
@TestMetadata("doNotReassignContinuation.kt")
public void testDoNotReassignContinuation() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/doNotReassignContinuation.kt");
}
+ @Test
@TestMetadata("effectivelyInlineOnly.kt")
public void testEffectivelyInlineOnly() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/effectivelyInlineOnly.kt");
}
+ @Test
@TestMetadata("internalInlineSuspend.kt")
public void testInternalInlineSuspend() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/internalInlineSuspend.kt");
}
+ @Test
@TestMetadata("mergeLvt.kt")
public void testMergeLvt() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/mergeLvt.kt");
}
+ @Test
@TestMetadata("nonLocalReturn.kt")
public void testNonLocalReturn() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/nonLocalReturn.kt");
}
+ @Test
@TestMetadata("returnUnitInLambda.kt")
public void testReturnUnitInLambda() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/returnUnitInLambda.kt");
}
+ @Test
@TestMetadata("suspendMain.kt")
public void testSuspendMain() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/suspendMain.kt");
}
+ @Test
@TestMetadata("throwOnFailure.kt")
public void testThrowOnFailure() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/throwOnFailure.kt");
}
+ @Test
@TestMetadata("varValueConflictsWithTable.kt")
public void testVarValueConflictsWithTable() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/varValueConflictsWithTable.kt");
}
+ @Test
@TestMetadata("varValueConflictsWithTableSameSort.kt")
public void testVarValueConflictsWithTableSameSort() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/varValueConflictsWithTableSameSort.kt");
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/coroutines/cleanup")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Cleanup extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class Cleanup extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInCleanup() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/coroutines/cleanup"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("backEdge.kt")
public void testBackEdge() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/cleanup/backEdge.kt");
}
+ @Test
@TestMetadata("if.kt")
public void testIf() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/cleanup/if.kt");
}
+ @Test
@TestMetadata("nullCleanup.kt")
public void testNullCleanup() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/cleanup/nullCleanup.kt");
}
+ @Test
@TestMetadata("nullNotSpill.kt")
public void testNullNotSpill() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/cleanup/nullNotSpill.kt");
}
+ @Test
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/cleanup/simple.kt");
}
+ @Test
@TestMetadata("twoRefs.kt")
public void testTwoRefs() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/cleanup/twoRefs.kt");
}
+ @Test
@TestMetadata("unusedParamNotSpill.kt")
public void testUnusedParamNotSpill() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/cleanup/unusedParamNotSpill.kt");
}
+ @Test
@TestMetadata("when.kt")
public void testWhen() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/cleanup/when.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/coroutines/debug")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Debug extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class Debug extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInDebug() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/coroutines/debug"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("continuationInLvt.kt")
public void testContinuationInLvt() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/debug/continuationInLvt.kt");
}
+ @Test
@TestMetadata("localVariableCorrectLabel.kt")
public void testLocalVariableCorrectLabel() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/debug/localVariableCorrectLabel.kt");
}
+ @Test
@TestMetadata("probeCoroutineSuspended.kt")
public void testProbeCoroutineSuspended() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/debug/probeCoroutineSuspended.kt");
}
+ @Test
@TestMetadata("shrinkLvtTopLevel.kt")
public void testShrinkLvtTopLevel() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/debug/shrinkLvtTopLevel.kt");
}
+ @Test
@TestMetadata("thisAndResultInLvt.kt")
public void testThisAndResultInLvt() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/debug/thisAndResultInLvt.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/coroutines/destructuringInLambda")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class DestructuringInLambda extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class DestructuringInLambda extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInDestructuringInLambda() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/coroutines/destructuringInLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("inlineSeparateFiles.kt")
public void testInlineSeparateFiles() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/destructuringInLambda/inlineSeparateFiles.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/coroutines/inlineClasses")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class InlineClasses extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class InlineClasses extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInInlineClasses() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/coroutines/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("inlineClassBoxingInSuspendFunReturn_Primitive.kt")
public void testInlineClassBoxingInSuspendFunReturn_Primitive() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/inlineClasses/inlineClassBoxingInSuspendFunReturn_Primitive.kt");
}
+ @Test
@TestMetadata("noInlineClassBoxingInSuspendFunReturn_Any.kt")
public void testNoInlineClassBoxingInSuspendFunReturn_Any() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/inlineClasses/noInlineClassBoxingInSuspendFunReturn_Any.kt");
}
+ @Test
@TestMetadata("noInlineClassBoxingInSuspendFunReturn_InlineAny.kt")
public void testNoInlineClassBoxingInSuspendFunReturn_InlineAny() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/inlineClasses/noInlineClassBoxingInSuspendFunReturn_InlineAny.kt");
}
+ @Test
@TestMetadata("noInlineClassBoxingInSuspendFunReturn_SameJvmType.kt")
public void testNoInlineClassBoxingInSuspendFunReturn_SameJvmType() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/inlineClasses/noInlineClassBoxingInSuspendFunReturn_SameJvmType.kt");
}
+ @Test
@TestMetadata("noInlineClassBoxingInSuspendFunReturn_String.kt")
public void testNoInlineClassBoxingInSuspendFunReturn_String() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/inlineClasses/noInlineClassBoxingInSuspendFunReturn_String.kt");
}
+ @Test
@TestMetadata("returnResult.kt")
public void testReturnResult() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/inlineClasses/returnResult.kt");
}
+ @Test
@TestMetadata("returnStringOverride.kt")
public void testReturnStringOverride() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/inlineClasses/returnStringOverride.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/coroutines/intLikeVarSpilling")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class IntLikeVarSpilling extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class IntLikeVarSpilling extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInIntLikeVarSpilling() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/coroutines/intLikeVarSpilling"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("complicatedMerge.kt")
public void testComplicatedMerge() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/intLikeVarSpilling/complicatedMerge.kt");
}
+ @Test
@TestMetadata("i2bResult.kt")
public void testI2bResult() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/intLikeVarSpilling/i2bResult.kt");
}
+ @Test
@TestMetadata("loadFromBooleanArray.kt")
public void testLoadFromBooleanArray() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/intLikeVarSpilling/loadFromBooleanArray.kt");
}
+ @Test
@TestMetadata("loadFromByteArray.kt")
public void testLoadFromByteArray() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/intLikeVarSpilling/loadFromByteArray.kt");
}
+ @Test
@TestMetadata("noVariableInTable.kt")
public void testNoVariableInTable() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/intLikeVarSpilling/noVariableInTable.kt");
}
+ @Test
@TestMetadata("sameIconst1ManyVars.kt")
public void testSameIconst1ManyVars() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/intLikeVarSpilling/sameIconst1ManyVars.kt");
}
+ @Test
@TestMetadata("usedInArrayStore.kt")
public void testUsedInArrayStore() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/intLikeVarSpilling/usedInArrayStore.kt");
}
+ @Test
@TestMetadata("usedInMethodCall.kt")
public void testUsedInMethodCall() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/intLikeVarSpilling/usedInMethodCall.kt");
}
+ @Test
@TestMetadata("usedInPutfield.kt")
public void testUsedInPutfield() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/intLikeVarSpilling/usedInPutfield.kt");
}
+ @Test
@TestMetadata("usedInVarStore.kt")
public void testUsedInVarStore() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/intLikeVarSpilling/usedInVarStore.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/coroutines/stateMachine")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class StateMachine extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class StateMachine extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInStateMachine() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/coroutines/stateMachine"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("kt25893.kt")
public void testKt25893() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/stateMachine/kt25893.kt");
}
+ @Test
@TestMetadata("withTypeParameter.kt")
public void testWithTypeParameter() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/stateMachine/withTypeParameter.kt");
@@ -1737,1058 +1939,1169 @@ public class FirBytecodeTextTestGenerated extends AbstractFirBytecodeTextTest {
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/deadCodeElimination")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class DeadCodeElimination extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class DeadCodeElimination extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInDeadCodeElimination() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/deadCodeElimination"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("arrayConstructor.kt")
public void testArrayConstructor() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/deadCodeElimination/arrayConstructor.kt");
}
+ @Test
@TestMetadata("boxing.kt")
public void testBoxing() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/deadCodeElimination/boxing.kt");
}
+ @Test
@TestMetadata("boxingNotOptimizable.kt")
public void testBoxingNotOptimizable() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/deadCodeElimination/boxingNotOptimizable.kt");
}
+ @Test
@TestMetadata("emptyVariableRange.kt")
public void testEmptyVariableRange() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/deadCodeElimination/emptyVariableRange.kt");
}
+ @Test
@TestMetadata("kt14357.kt")
public void testKt14357() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/deadCodeElimination/kt14357.kt");
}
+ @Test
@TestMetadata("lastReturn.kt")
public void testLastReturn() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/deadCodeElimination/lastReturn.kt");
}
+ @Test
@TestMetadata("literal.kt")
public void testLiteral() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/deadCodeElimination/literal.kt");
}
+ @Test
@TestMetadata("simpleConstructor.kt")
public void testSimpleConstructor() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/deadCodeElimination/simpleConstructor.kt");
}
+ @Test
@TestMetadata("simpleConstructorNotRedundant.kt")
public void testSimpleConstructorNotRedundant() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/deadCodeElimination/simpleConstructorNotRedundant.kt");
}
+ @Test
@TestMetadata("simpleConstructorNotRedundantNotOptimizable.kt")
public void testSimpleConstructorNotRedundantNotOptimizable() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/deadCodeElimination/simpleConstructorNotRedundantNotOptimizable.kt");
}
+ @Test
@TestMetadata("unusedPrimitiveAndObjectEquals.kt")
public void testUnusedPrimitiveAndObjectEquals() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/deadCodeElimination/unusedPrimitiveAndObjectEquals.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/defaultArguments")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class DefaultArguments extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class DefaultArguments extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInDefaultArguments() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/defaultArguments"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("inheritedInterfaceFunction.kt")
public void testInheritedInterfaceFunction() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/defaultArguments/inheritedInterfaceFunction.kt");
}
+ @Test
@TestMetadata("kt11962.kt")
public void testKt11962() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/defaultArguments/kt11962.kt");
}
+ @Test
@TestMetadata("localVariablesInInlinedDefaultStubs.kt")
public void testLocalVariablesInInlinedDefaultStubs() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/defaultArguments/localVariablesInInlinedDefaultStubs.kt");
}
+ @Test
@TestMetadata("maskAndArgumentElimination.kt")
public void testMaskAndArgumentElimination() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/defaultArguments/maskAndArgumentElimination.kt");
}
+ @Test
@TestMetadata("maskCheckSequence.kt")
public void testMaskCheckSequence() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/defaultArguments/maskCheckSequence.kt");
}
+ @Test
@TestMetadata("methodHandlerElimination.kt")
public void testMethodHandlerElimination() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/defaultArguments/methodHandlerElimination.kt");
}
+ @Test
@TestMetadata("noAccessorForDefault.kt")
public void testNoAccessorForDefault() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/defaultArguments/noAccessorForDefault.kt");
}
+ @Test
@TestMetadata("noAnonymousObjectRegenerationInDefaultStub.kt")
public void testNoAnonymousObjectRegenerationInDefaultStub() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/defaultArguments/noAnonymousObjectRegenerationInDefaultStub.kt");
}
+ @Test
@TestMetadata("noEmptyArray.kt")
public void testNoEmptyArray() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/defaultArguments/noEmptyArray.kt");
}
+ @Test
@TestMetadata("noSyntheticParameters.kt")
public void testNoSyntheticParameters() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/defaultArguments/noSyntheticParameters.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/directInvoke")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class DirectInvoke extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class DirectInvoke extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInDirectInvoke() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/directInvoke"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("callableReference.kt")
public void testCallableReference() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/directInvoke/callableReference.kt");
}
+ @Test
@TestMetadata("inplaceClosure.kt")
public void testInplaceClosure() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/directInvoke/inplaceClosure.kt");
}
+ @Test
@TestMetadata("localFun.kt")
public void testLocalFun() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/directInvoke/localFun.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/disabledOptimizations")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class DisabledOptimizations extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class DisabledOptimizations extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInDisabledOptimizations() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/disabledOptimizations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("noJumpInLastBranch.kt")
public void testNoJumpInLastBranch() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/disabledOptimizations/noJumpInLastBranch.kt");
}
+ @Test
@TestMetadata("noJumpInSingleBranch.kt")
public void testNoJumpInSingleBranch() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/disabledOptimizations/noJumpInSingleBranch.kt");
}
+ @Test
@TestMetadata("noObjectCastAfterReification.kt")
public void testNoObjectCastAfterReification() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/disabledOptimizations/noObjectCastAfterReification.kt");
}
+ @Test
@TestMetadata("noUnitInstanceInDefaultParameterInitialization.kt")
public void testNoUnitInstanceInDefaultParameterInitialization() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/disabledOptimizations/noUnitInstanceInDefaultParameterInitialization.kt");
}
+ @Test
@TestMetadata("noUnitInstanceOnVoidFunctionCall.kt")
public void testNoUnitInstanceOnVoidFunctionCall() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/disabledOptimizations/noUnitInstanceOnVoidFunctionCall.kt");
}
+ @Test
@TestMetadata("noUnusedLabel.kt")
public void testNoUnusedLabel() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/disabledOptimizations/noUnusedLabel.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/enum")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Enum extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class Enum extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInEnum() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/enum"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("constructorAccessors.kt")
public void testConstructorAccessors() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/enum/constructorAccessors.kt");
}
+ @Test
@TestMetadata("enumCheckcasts.kt")
public void testEnumCheckcasts() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/enum/enumCheckcasts.kt");
}
+ @Test
@TestMetadata("kt18731.kt")
public void testKt18731() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/enum/kt18731.kt");
}
+ @Test
@TestMetadata("kt18731_2.kt")
public void testKt18731_2() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/enum/kt18731_2.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/exclExcl")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class ExclExcl extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class ExclExcl extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInExclExcl() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/exclExcl"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("primitive.kt")
public void testPrimitive() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/exclExcl/primitive.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/fieldsForCapturedValues")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class FieldsForCapturedValues extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class FieldsForCapturedValues extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInFieldsForCapturedValues() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/fieldsForCapturedValues"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("extensionLambdaExtensionReceiver.kt")
public void testExtensionLambdaExtensionReceiver() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/fieldsForCapturedValues/extensionLambdaExtensionReceiver.kt");
}
+ @Test
@TestMetadata("extensionReceiver.kt")
public void testExtensionReceiver() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/fieldsForCapturedValues/extensionReceiver.kt");
}
+ @Test
@TestMetadata("innerAndOuterThis.kt")
public void testInnerAndOuterThis() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/fieldsForCapturedValues/innerAndOuterThis.kt");
}
+ @Test
@TestMetadata("labeledExtensionLambdaExtensionReceiver.kt")
public void testLabeledExtensionLambdaExtensionReceiver() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/fieldsForCapturedValues/labeledExtensionLambdaExtensionReceiver.kt");
}
+ @Test
@TestMetadata("multipleExtensionReceivers.kt")
public void testMultipleExtensionReceivers() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/fieldsForCapturedValues/multipleExtensionReceivers.kt");
}
+ @Test
@TestMetadata("outerThis.kt")
public void testOuterThis() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/fieldsForCapturedValues/outerThis.kt");
}
+ @Test
@TestMetadata("outerThisInInnerConstructor.kt")
public void testOuterThisInInnerConstructor() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/fieldsForCapturedValues/outerThisInInnerConstructor.kt");
}
+ @Test
@TestMetadata("outerThisInInnerInitBlock.kt")
public void testOuterThisInInnerInitBlock() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/fieldsForCapturedValues/outerThisInInnerInitBlock.kt");
}
+ @Test
@TestMetadata("this.kt")
public void testThis() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/fieldsForCapturedValues/this.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/forLoop")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class ForLoop extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class ForLoop extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInForLoop() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/forLoop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("forInCharSequence.kt")
public void testForInCharSequence() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInCharSequence.kt");
}
+ @Test
@TestMetadata("forInCharSequenceTypeParameter.kt")
public void testForInCharSequenceTypeParameter() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInCharSequenceTypeParameter.kt");
}
+ @Test
@TestMetadata("forInDownToCharMinValue.kt")
public void testForInDownToCharMinValue() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInDownToCharMinValue.kt");
}
+ @Test
@TestMetadata("forInDownToIntMinValue.kt")
public void testForInDownToIntMinValue() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInDownToIntMinValue.kt");
}
+ @Test
@TestMetadata("forInDownToLongMinValue.kt")
public void testForInDownToLongMinValue() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInDownToLongMinValue.kt");
}
+ @Test
@TestMetadata("forInObjectArray.kt")
public void testForInObjectArray() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInObjectArray.kt");
}
+ @Test
@TestMetadata("forInPrimitiveArray.kt")
public void testForInPrimitiveArray() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInPrimitiveArray.kt");
}
+ @Test
@TestMetadata("forInRangeSpecializedToUntil.kt")
public void testForInRangeSpecializedToUntil() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeSpecializedToUntil.kt");
}
+ @Test
@TestMetadata("forInRangeToCharConst.kt")
public void testForInRangeToCharConst() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeToCharConst.kt");
}
+ @Test
@TestMetadata("forInRangeToCharMaxValue.kt")
public void testForInRangeToCharMaxValue() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeToCharMaxValue.kt");
}
+ @Test
@TestMetadata("forInRangeToConst.kt")
public void testForInRangeToConst() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeToConst.kt");
}
+ @Test
@TestMetadata("forInRangeToIntMaxValue.kt")
public void testForInRangeToIntMaxValue() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeToIntMaxValue.kt");
}
+ @Test
@TestMetadata("forInRangeToLongConst.kt")
public void testForInRangeToLongConst() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeToLongConst.kt");
}
+ @Test
@TestMetadata("forInRangeToLongMaxValue.kt")
public void testForInRangeToLongMaxValue() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeToLongMaxValue.kt");
}
+ @Test
@TestMetadata("forInRangeToQualifiedConst.kt")
public void testForInRangeToQualifiedConst() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeToQualifiedConst.kt");
}
+ @Test
@TestMetadata("forInRangeWithImplicitReceiver.kt")
public void testForInRangeWithImplicitReceiver() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeWithImplicitReceiver.kt");
}
+ @Test
@TestMetadata("forInStringSpecialized.kt")
public void testForInStringSpecialized() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInStringSpecialized.kt");
}
+ @Test
@TestMetadata("forIntInDownTo.kt")
public void testForIntInDownTo() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forIntInDownTo.kt");
}
+ @Test
@TestMetadata("iincGeneration.kt")
public void testIincGeneration() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/iincGeneration.kt");
}
+ @Test
@TestMetadata("intrinsicArrayConstructorsUseCounterLoop.kt")
public void testIntrinsicArrayConstructorsUseCounterLoop() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/intrinsicArrayConstructorsUseCounterLoop.kt");
}
+ @Test
@TestMetadata("loopVarInterval.kt")
public void testLoopVarInterval() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/loopVarInterval.kt");
}
+ @Test
@TestMetadata("primitiveLiteralRange1.kt")
public void testPrimitiveLiteralRange1() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/primitiveLiteralRange1.kt");
}
+ @Test
@TestMetadata("primitiveLiteralRange2.kt")
public void testPrimitiveLiteralRange2() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/primitiveLiteralRange2.kt");
}
+ @Test
@TestMetadata("primitiveProgression.kt")
public void testPrimitiveProgression() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/primitiveProgression.kt");
}
+ @Test
@TestMetadata("primitiveRange.kt")
public void testPrimitiveRange() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/primitiveRange.kt");
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/forLoop/forInArrayWithIndex")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class ForInArrayWithIndex extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class ForInArrayWithIndex extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInForInArrayWithIndex() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/forLoop/forInArrayWithIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("forInArrayWithIndexNoElementVar.kt")
public void testForInArrayWithIndexNoElementVar() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInArrayWithIndex/forInArrayWithIndexNoElementVar.kt");
}
+ @Test
@TestMetadata("forInArrayWithIndexNoIndexVar.kt")
public void testForInArrayWithIndexNoIndexVar() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInArrayWithIndex/forInArrayWithIndexNoIndexVar.kt");
}
+ @Test
@TestMetadata("forInEmptyArrayWithIndex.kt")
public void testForInEmptyArrayWithIndex() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInArrayWithIndex/forInEmptyArrayWithIndex.kt");
}
+ @Test
@TestMetadata("forInIntArrayWithIndex.kt")
public void testForInIntArrayWithIndex() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInArrayWithIndex/forInIntArrayWithIndex.kt");
}
+ @Test
@TestMetadata("forInObjectArrayWithIndex.kt")
public void testForInObjectArrayWithIndex() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInArrayWithIndex/forInObjectArrayWithIndex.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/forLoop/forInCharSequenceWithIndex")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class ForInCharSequenceWithIndex extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class ForInCharSequenceWithIndex extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInForInCharSequenceWithIndex() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/forLoop/forInCharSequenceWithIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("forInCharSequenceWithIndex.kt")
public void testForInCharSequenceWithIndex() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInCharSequenceWithIndex/forInCharSequenceWithIndex.kt");
}
+ @Test
@TestMetadata("forInEmptyStringWithIndex.kt")
public void testForInEmptyStringWithIndex() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInCharSequenceWithIndex/forInEmptyStringWithIndex.kt");
}
+ @Test
@TestMetadata("forInStringWithIndex.kt")
public void testForInStringWithIndex() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInCharSequenceWithIndex/forInStringWithIndex.kt");
}
+ @Test
@TestMetadata("forInStringWithIndexNoElementVar.kt")
public void testForInStringWithIndexNoElementVar() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInCharSequenceWithIndex/forInStringWithIndexNoElementVar.kt");
}
+ @Test
@TestMetadata("forInStringWithIndexNoIndexVar.kt")
public void testForInStringWithIndexNoIndexVar() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInCharSequenceWithIndex/forInStringWithIndexNoIndexVar.kt");
}
+ @Test
@TestMetadata("forInStringWithIndexWithExplicitlyTypedIndexVariable.kt")
public void testForInStringWithIndexWithExplicitlyTypedIndexVariable() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInCharSequenceWithIndex/forInStringWithIndexWithExplicitlyTypedIndexVariable.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/forLoop/forInIndices")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class ForInIndices extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class ForInIndices extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInForInIndices() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/forLoop/forInIndices"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("forInArrayListIndices.kt")
public void testForInArrayListIndices() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIndices/forInArrayListIndices.kt");
}
+ @Test
@TestMetadata("forInCharSequenceIndices.kt")
public void testForInCharSequenceIndices() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIndices/forInCharSequenceIndices.kt");
}
+ @Test
@TestMetadata("forInCharSequenceTypeParameterIndices.kt")
public void testForInCharSequenceTypeParameterIndices() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIndices/forInCharSequenceTypeParameterIndices.kt");
}
+ @Test
@TestMetadata("forInCollectionImplicitReceiverIndices.kt")
public void testForInCollectionImplicitReceiverIndices() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIndices/forInCollectionImplicitReceiverIndices.kt");
}
+ @Test
@TestMetadata("forInCollectionIndices.kt")
public void testForInCollectionIndices() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIndices/forInCollectionIndices.kt");
}
+ @Test
@TestMetadata("forInCollectionTypeParameterIndices.kt")
public void testForInCollectionTypeParameterIndices() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIndices/forInCollectionTypeParameterIndices.kt");
}
+ @Test
@TestMetadata("forInNonOptimizedIndices.kt")
public void testForInNonOptimizedIndices() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIndices/forInNonOptimizedIndices.kt");
}
+ @Test
@TestMetadata("forInObjectArrayIndices.kt")
public void testForInObjectArrayIndices() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIndices/forInObjectArrayIndices.kt");
}
+ @Test
@TestMetadata("forInPrimitiveArrayIndices.kt")
public void testForInPrimitiveArrayIndices() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIndices/forInPrimitiveArrayIndices.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/forLoop/forInIterableWithIndex")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class ForInIterableWithIndex extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class ForInIterableWithIndex extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInForInIterableWithIndex() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/forLoop/forInIterableWithIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("forInEmptyListWithIndex.kt")
public void testForInEmptyListWithIndex() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIterableWithIndex/forInEmptyListWithIndex.kt");
}
+ @Test
@TestMetadata("forInIterableTypeParameterWithIndex.kt")
public void testForInIterableTypeParameterWithIndex() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIterableWithIndex/forInIterableTypeParameterWithIndex.kt");
}
+ @Test
@TestMetadata("forInListWithIndex.kt")
public void testForInListWithIndex() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIterableWithIndex/forInListWithIndex.kt");
}
+ @Test
@TestMetadata("forInListWithIndexNoElementVar.kt")
public void testForInListWithIndexNoElementVar() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIterableWithIndex/forInListWithIndexNoElementVar.kt");
}
+ @Test
@TestMetadata("forInListWithIndexNoIndexVar.kt")
public void testForInListWithIndexNoIndexVar() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIterableWithIndex/forInListWithIndexNoIndexVar.kt");
}
+ @Test
@TestMetadata("forInListWithIndexWithExplicitlyTypedIndexVariable.kt")
public void testForInListWithIndexWithExplicitlyTypedIndexVariable() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIterableWithIndex/forInListWithIndexWithExplicitlyTypedIndexVariable.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/forLoop/forInProgressionWithIndex")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class ForInProgressionWithIndex extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class ForInProgressionWithIndex extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInForInProgressionWithIndex() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/forLoop/forInProgressionWithIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("forInDownToWithIndex.kt")
public void testForInDownToWithIndex() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInProgressionWithIndex/forInDownToWithIndex.kt");
}
+ @Test
@TestMetadata("forInIndicesWithIndex.kt")
public void testForInIndicesWithIndex() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInProgressionWithIndex/forInIndicesWithIndex.kt");
}
+ @Test
@TestMetadata("forInRangeToWithIndex.kt")
public void testForInRangeToWithIndex() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInProgressionWithIndex/forInRangeToWithIndex.kt");
}
+ @Test
@TestMetadata("forInReversedStepWithIndex.kt")
public void testForInReversedStepWithIndex() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInProgressionWithIndex/forInReversedStepWithIndex.kt");
}
+ @Test
@TestMetadata("forInReversedWithIndex.kt")
public void testForInReversedWithIndex() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInProgressionWithIndex/forInReversedWithIndex.kt");
}
+ @Test
@TestMetadata("forInStepReversedWithIndex.kt")
public void testForInStepReversedWithIndex() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInProgressionWithIndex/forInStepReversedWithIndex.kt");
}
+ @Test
@TestMetadata("forInStepWithIndex.kt")
public void testForInStepWithIndex() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInProgressionWithIndex/forInStepWithIndex.kt");
}
+ @Test
@TestMetadata("forInUntilWithIndex.kt")
public void testForInUntilWithIndex() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInProgressionWithIndex/forInUntilWithIndex.kt");
}
+ @Test
@TestMetadata("forInWithIndexNoIndexOrElementVar.kt")
public void testForInWithIndexNoIndexOrElementVar() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInProgressionWithIndex/forInWithIndexNoIndexOrElementVar.kt");
}
+ @Test
@TestMetadata("forInWithIndexNotDestructured.kt")
public void testForInWithIndexNotDestructured() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInProgressionWithIndex/forInWithIndexNotDestructured.kt");
}
+ @Test
@TestMetadata("forInWithIndexReversed.kt")
public void testForInWithIndexReversed() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInProgressionWithIndex/forInWithIndexReversed.kt");
}
+ @Test
@TestMetadata("forInWithIndexWithIndex.kt")
public void testForInWithIndexWithIndex() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInProgressionWithIndex/forInWithIndexWithIndex.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/forLoop/forInReversed")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class ForInReversed extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class ForInReversed extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInForInReversed() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/forLoop/forInReversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("forInReversedArrayIndices.kt")
public void testForInReversedArrayIndices() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedArrayIndices.kt");
}
+ @Test
@TestMetadata("forInReversedCharSequenceIndices.kt")
public void testForInReversedCharSequenceIndices() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedCharSequenceIndices.kt");
}
+ @Test
@TestMetadata("forInReversedCollectionIndices.kt")
public void testForInReversedCollectionIndices() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedCollectionIndices.kt");
}
+ @Test
@TestMetadata("forInReversedDownTo.kt")
public void testForInReversedDownTo() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedDownTo.kt");
}
+ @Test
@TestMetadata("forInReversedEmptyRangeLiteral.kt")
public void testForInReversedEmptyRangeLiteral() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedEmptyRangeLiteral.kt");
}
+ @Test
@TestMetadata("forInReversedRange.kt")
public void testForInReversedRange() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedRange.kt");
}
+ @Test
@TestMetadata("forInReversedRangeLiteral.kt")
public void testForInReversedRangeLiteral() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedRangeLiteral.kt");
}
+ @Test
@TestMetadata("forInReversedReversedArrayIndices.kt")
public void testForInReversedReversedArrayIndices() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedReversedArrayIndices.kt");
}
+ @Test
@TestMetadata("forInReversedReversedDownTo.kt")
public void testForInReversedReversedDownTo() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedReversedDownTo.kt");
}
+ @Test
@TestMetadata("ForInReversedReversedRange.kt")
public void testForInReversedReversedRange() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/ForInReversedReversedRange.kt");
}
+ @Test
@TestMetadata("forInReversedReversedReversedRange.kt")
public void testForInReversedReversedReversedRange() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedReversedReversedRange.kt");
}
+ @Test
@TestMetadata("forInReversedReversedUntil.kt")
public void testForInReversedReversedUntil() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedReversedUntil.kt");
}
+ @Test
@TestMetadata("forInReversedUntil.kt")
public void testForInReversedUntil() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedUntil.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/forLoop/forInSequenceWithIndex")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class ForInSequenceWithIndex extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class ForInSequenceWithIndex extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInForInSequenceWithIndex() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/forLoop/forInSequenceWithIndex"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("forInEmptySequenceWithIndex.kt")
public void testForInEmptySequenceWithIndex() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInSequenceWithIndex/forInEmptySequenceWithIndex.kt");
}
+ @Test
@TestMetadata("forInSequenceTypeParameterWithIndex.kt")
public void testForInSequenceTypeParameterWithIndex() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInSequenceWithIndex/forInSequenceTypeParameterWithIndex.kt");
}
+ @Test
@TestMetadata("forInSequenceWithIndex.kt")
public void testForInSequenceWithIndex() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInSequenceWithIndex/forInSequenceWithIndex.kt");
}
+ @Test
@TestMetadata("forInSequenceWithIndexNoElementVar.kt")
public void testForInSequenceWithIndexNoElementVar() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInSequenceWithIndex/forInSequenceWithIndexNoElementVar.kt");
}
+ @Test
@TestMetadata("forInSequenceWithIndexNoIndexVar.kt")
public void testForInSequenceWithIndexNoIndexVar() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInSequenceWithIndex/forInSequenceWithIndexNoIndexVar.kt");
}
+ @Test
@TestMetadata("forInSequenceWithIndexThrowsCME.kt")
public void testForInSequenceWithIndexThrowsCME() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInSequenceWithIndex/forInSequenceWithIndexThrowsCME.kt");
}
+ @Test
@TestMetadata("forInSequenceWithIndexWithExplicitlyTypedIndexVariable.kt")
public void testForInSequenceWithIndexWithExplicitlyTypedIndexVariable() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInSequenceWithIndex/forInSequenceWithIndexWithExplicitlyTypedIndexVariable.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/forLoop/forInUntil")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class ForInUntil extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class ForInUntil extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInForInUntil() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/forLoop/forInUntil"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("forInUntilChar.kt")
public void testForInUntilChar() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilChar.kt");
}
+ @Test
@TestMetadata("forInUntilCharMaxValue.kt")
public void testForInUntilCharMaxValue() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilCharMaxValue.kt");
}
+ @Test
@TestMetadata("forInUntilCharMinValue.kt")
public void testForInUntilCharMinValue() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilCharMinValue.kt");
}
+ @Test
@TestMetadata("forInUntilInt.kt")
public void testForInUntilInt() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilInt.kt");
}
+ @Test
@TestMetadata("forInUntilIntMaxValue.kt")
public void testForInUntilIntMaxValue() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilIntMaxValue.kt");
}
+ @Test
@TestMetadata("forInUntilIntMinValue.kt")
public void testForInUntilIntMinValue() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilIntMinValue.kt");
}
+ @Test
@TestMetadata("forInUntilLong.kt")
public void testForInUntilLong() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilLong.kt");
}
+ @Test
@TestMetadata("forInUntilLongMaxValue.kt")
public void testForInUntilLongMaxValue() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilLongMaxValue.kt");
}
+ @Test
@TestMetadata("forInUntilLongMinValue.kt")
public void testForInUntilLongMinValue() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilLongMinValue.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/forLoop/stepped")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Stepped extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class Stepped extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInStepped() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/forLoop/stepped"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("illegalStepConst.kt")
public void testIllegalStepConst() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/stepped/illegalStepConst.kt");
}
+ @Test
@TestMetadata("reversedThenStep.kt")
public void testReversedThenStep() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/stepped/reversedThenStep.kt");
}
+ @Test
@TestMetadata("stepConst.kt")
public void testStepConst() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/stepped/stepConst.kt");
}
+ @Test
@TestMetadata("stepConstOnNonLiteralProgression.kt")
public void testStepConstOnNonLiteralProgression() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/stepped/stepConstOnNonLiteralProgression.kt");
}
+ @Test
@TestMetadata("stepNonConst.kt")
public void testStepNonConst() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/stepped/stepNonConst.kt");
}
+ @Test
@TestMetadata("stepNonConstOnNonLiteralProgression.kt")
public void testStepNonConstOnNonLiteralProgression() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/stepped/stepNonConstOnNonLiteralProgression.kt");
}
+ @Test
@TestMetadata("stepOnNonLiteralRange.kt")
public void testStepOnNonLiteralRange() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/stepped/stepOnNonLiteralRange.kt");
}
+ @Test
@TestMetadata("stepOne.kt")
public void testStepOne() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/stepped/stepOne.kt");
}
+ @Test
@TestMetadata("stepOneThenStepOne.kt")
public void testStepOneThenStepOne() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/stepped/stepOneThenStepOne.kt");
}
+ @Test
@TestMetadata("stepThenDifferentStep.kt")
public void testStepThenDifferentStep() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/stepped/stepThenDifferentStep.kt");
}
+ @Test
@TestMetadata("stepThenReversed.kt")
public void testStepThenReversed() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/stepped/stepThenReversed.kt");
}
+ @Test
@TestMetadata("stepThenSameStep.kt")
public void testStepThenSameStep() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/stepped/stepThenSameStep.kt");
}
+ @Test
@TestMetadata("stepThenStepNonConst.kt")
public void testStepThenStepNonConst() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/stepped/stepThenStepNonConst.kt");
}
+ @Test
@TestMetadata("stepThenStepOne.kt")
public void testStepThenStepOne() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/stepped/stepThenStepOne.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/forLoop/unsigned")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Unsigned extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class Unsigned extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInUnsigned() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/forLoop/unsigned"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("forInDownToUIntMinValue.kt")
public void testForInDownToUIntMinValue() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/forInDownToUIntMinValue.kt");
}
+ @Test
@TestMetadata("forInDownToULongMinValue.kt")
public void testForInDownToULongMinValue() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/forInDownToULongMinValue.kt");
}
+ @Test
@TestMetadata("forInOptimizableUnsignedRange.kt")
public void testForInOptimizableUnsignedRange() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/forInOptimizableUnsignedRange.kt");
}
+ @Test
@TestMetadata("forInRangeToUIntMaxValue.kt")
public void testForInRangeToUIntMaxValue() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/forInRangeToUIntMaxValue.kt");
}
+ @Test
@TestMetadata("forInRangeToULongMaxValue.kt")
public void testForInRangeToULongMaxValue() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/forInRangeToULongMaxValue.kt");
}
+ @Test
@TestMetadata("forInUntilUIntMaxValue.kt")
public void testForInUntilUIntMaxValue() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/forInUntilUIntMaxValue.kt");
}
+ @Test
@TestMetadata("forInUntilUIntMinValue.kt")
public void testForInUntilUIntMinValue() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/forInUntilUIntMinValue.kt");
}
+ @Test
@TestMetadata("forInUntilULongMaxValue.kt")
public void testForInUntilULongMaxValue() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/forInUntilULongMaxValue.kt");
}
+ @Test
@TestMetadata("forInUntilULongMinValue.kt")
public void testForInUntilULongMinValue() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/forInUntilULongMinValue.kt");
}
+ @Test
@TestMetadata("illegalStepConst.kt")
public void testIllegalStepConst() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/illegalStepConst.kt");
}
+ @Test
@TestMetadata("reversedThenStep.kt")
public void testReversedThenStep() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/reversedThenStep.kt");
}
+ @Test
@TestMetadata("stepConstOnNonLiteralProgression.kt")
public void testStepConstOnNonLiteralProgression() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/stepConstOnNonLiteralProgression.kt");
}
+ @Test
@TestMetadata("stepNonConstOnNonLiteralProgression.kt")
public void testStepNonConstOnNonLiteralProgression() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/stepNonConstOnNonLiteralProgression.kt");
}
+ @Test
@TestMetadata("stepOnNonLiteralRange.kt")
public void testStepOnNonLiteralRange() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/stepOnNonLiteralRange.kt");
}
+ @Test
@TestMetadata("stepThenDifferentStep.kt")
public void testStepThenDifferentStep() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/forLoop/unsigned/stepThenDifferentStep.kt");
@@ -2796,201 +3109,219 @@ public class FirBytecodeTextTestGenerated extends AbstractFirBytecodeTextTest {
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/hashCode")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class HashCode extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class HashCode extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInHashCode() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/hashCode"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("hashCode.kt")
public void testHashCode() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/hashCode/hashCode.kt");
}
+ @Test
@TestMetadata("interfaceHashCode.kt")
public void testInterfaceHashCode() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/hashCode/interfaceHashCode.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/ieee754")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Ieee754 extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class Ieee754 extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInIeee754() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/ieee754"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("nullableDoubleEquals.kt")
public void testNullableDoubleEquals() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/ieee754/nullableDoubleEquals.kt");
}
+ @Test
@TestMetadata("nullableDoubleNotEquals.kt")
public void testNullableDoubleNotEquals() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/ieee754/nullableDoubleNotEquals.kt");
}
+ @Test
@TestMetadata("nullableFloatEquals.kt")
public void testNullableFloatEquals() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/ieee754/nullableFloatEquals.kt");
}
+ @Test
@TestMetadata("nullableFloatNotEquals.kt")
public void testNullableFloatNotEquals() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/ieee754/nullableFloatNotEquals.kt");
}
+ @Test
@TestMetadata("smartCastsForDouble.kt")
public void testSmartCastsForDouble() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/ieee754/smartCastsForDouble.kt");
}
+ @Test
@TestMetadata("smartCastsForFloat.kt")
public void testSmartCastsForFloat() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/ieee754/smartCastsForFloat.kt");
}
+ @Test
@TestMetadata("when.kt")
public void testWhen() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/ieee754/when.kt");
}
+ @Test
@TestMetadata("whenNullableSmartCast.kt")
public void testWhenNullableSmartCast() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/ieee754/whenNullableSmartCast.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/inline")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Inline extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class Inline extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInInline() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/inline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("deleteClassOnTransformation.kt")
public void testDeleteClassOnTransformation() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inline/deleteClassOnTransformation.kt");
}
+ @Test
@TestMetadata("finallyMarkers.kt")
public void testFinallyMarkers() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inline/finallyMarkers.kt");
}
+ @Test
@TestMetadata("inlineArgumentSlots.kt")
public void testInlineArgumentSlots() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inline/inlineArgumentSlots.kt");
}
+ @Test
@TestMetadata("inlineReturnsNothing1.kt")
public void testInlineReturnsNothing1() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inline/inlineReturnsNothing1.kt");
}
+ @Test
@TestMetadata("inlineReturnsNothing2.kt")
public void testInlineReturnsNothing2() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inline/inlineReturnsNothing2.kt");
}
+ @Test
@TestMetadata("inlineReturnsNothing3.kt")
public void testInlineReturnsNothing3() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inline/inlineReturnsNothing3.kt");
}
+ @Test
@TestMetadata("inlineSuspendReifiedNoSpilling.kt")
public void testInlineSuspendReifiedNoSpilling() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inline/inlineSuspendReifiedNoSpilling.kt");
}
+ @Test
@TestMetadata("interfaceDefaultMethod.kt")
public void testInterfaceDefaultMethod() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inline/interfaceDefaultMethod.kt");
}
+ @Test
@TestMetadata("linenumberForOneParametersArgumentCall.kt")
public void testLinenumberForOneParametersArgumentCall() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inline/linenumberForOneParametersArgumentCall.kt");
}
+ @Test
@TestMetadata("noSynAccessor.kt")
public void testNoSynAccessor() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inline/noSynAccessor.kt");
}
+ @Test
@TestMetadata("noSynAccessorToDirectFieldAccess.kt")
public void testNoSynAccessorToDirectFieldAccess() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inline/noSynAccessorToDirectFieldAccess.kt");
}
+ @Test
@TestMetadata("noSynAccessorToSuper.kt")
public void testNoSynAccessorToSuper() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inline/noSynAccessorToSuper.kt");
}
+ @Test
@TestMetadata("notSplitedExceptionTable.kt")
public void testNotSplitedExceptionTable() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inline/notSplitedExceptionTable.kt");
}
+ @Test
@TestMetadata("reifiedSafeAsWithMutable.kt")
public void testReifiedSafeAsWithMutable() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inline/reifiedSafeAsWithMutable.kt");
}
+ @Test
@TestMetadata("remappedLocalVar.kt")
public void testRemappedLocalVar() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inline/remappedLocalVar.kt");
}
+ @Test
@TestMetadata("removedFinallyMarkers.kt")
public void testRemovedFinallyMarkers() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inline/removedFinallyMarkers.kt");
}
+ @Test
@TestMetadata("specialEnumFunction.kt")
public void testSpecialEnumFunction() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inline/specialEnumFunction.kt");
}
+ @Test
@TestMetadata("splitedExceptionTable.kt")
public void testSplitedExceptionTable() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inline/splitedExceptionTable.kt");
}
+ @Test
@TestMetadata("whenMappingOnCallSite.kt")
public void testWhenMappingOnCallSite() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inline/whenMappingOnCallSite.kt");
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/inline/property")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Property extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class Property extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInProperty() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/inline/property"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inline/property/simple.kt");
@@ -2998,646 +3329,730 @@ public class FirBytecodeTextTestGenerated extends AbstractFirBytecodeTextTest {
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/inlineClasses")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class InlineClasses extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class InlineClasses extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInInlineClasses() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/inlineClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("asCastForInlineClass.kt")
public void testAsCastForInlineClass() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/asCastForInlineClass.kt");
}
+ @Test
@TestMetadata("assertionsForParametersOfInlineClassTypes.kt")
public void testAssertionsForParametersOfInlineClassTypes() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/assertionsForParametersOfInlineClassTypes.kt");
}
+ @Test
@TestMetadata("boxInlineClassInsideElvisWithNullConstant.kt")
public void testBoxInlineClassInsideElvisWithNullConstant() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/boxInlineClassInsideElvisWithNullConstant.kt");
}
+ @Test
@TestMetadata("boxInlineClassesOnPassingToVarargs.kt")
public void testBoxInlineClassesOnPassingToVarargs() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/boxInlineClassesOnPassingToVarargs.kt");
}
+ @Test
@TestMetadata("boxMethodCalledByInlineClass.kt")
public void testBoxMethodCalledByInlineClass() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/boxMethodCalledByInlineClass.kt");
}
+ @Test
@TestMetadata("boxResultAfterConstructorCall.kt")
public void testBoxResultAfterConstructorCall() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/boxResultAfterConstructorCall.kt");
}
+ @Test
@TestMetadata("boxResultInlineClassOfConstructorCall.kt")
public void testBoxResultInlineClassOfConstructorCall() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/boxResultInlineClassOfConstructorCall.kt");
}
+ @Test
@TestMetadata("boxThisOfInlineClass.kt")
public void testBoxThisOfInlineClass() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/boxThisOfInlineClass.kt");
}
+ @Test
@TestMetadata("boxUnboxInlineClassFromMethodReturnType.kt")
public void testBoxUnboxInlineClassFromMethodReturnType() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/boxUnboxInlineClassFromMethodReturnType.kt");
}
+ @Test
@TestMetadata("boxUnboxInsideLambdaAsLastExpression.kt")
public void testBoxUnboxInsideLambdaAsLastExpression() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/boxUnboxInsideLambdaAsLastExpression.kt");
}
+ @Test
@TestMetadata("boxUnboxOfInlineClassesWithFunctionalTypes.kt")
public void testBoxUnboxOfInlineClassesWithFunctionalTypes() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/boxUnboxOfInlineClassesWithFunctionalTypes.kt");
}
+ @Test
@TestMetadata("boxUnboxOnInlinedParameters.kt")
public void testBoxUnboxOnInlinedParameters() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/boxUnboxOnInlinedParameters.kt");
}
+ @Test
@TestMetadata("boxingForNonLocalAndLabeledReturnsOfInlineClasses.kt")
public void testBoxingForNonLocalAndLabeledReturnsOfInlineClasses() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/boxingForNonLocalAndLabeledReturnsOfInlineClasses.kt");
}
+ @Test
@TestMetadata("callMemberMethodsInsideInlineClass.kt")
public void testCallMemberMethodsInsideInlineClass() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/callMemberMethodsInsideInlineClass.kt");
}
+ @Test
@TestMetadata("checkBoxingInInlineClass.kt")
public void testCheckBoxingInInlineClass() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/checkBoxingInInlineClass.kt");
}
+ @Test
@TestMetadata("checkOuterInlineFunctionCall.kt")
public void testCheckOuterInlineFunctionCall() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/checkOuterInlineFunctionCall.kt");
}
+ @Test
@TestMetadata("constructorBridge.kt")
public void testConstructorBridge() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/constructorBridge.kt");
}
+ @Test
@TestMetadata("constructorWithDefaultArguments.kt")
public void testConstructorWithDefaultArguments() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/constructorWithDefaultArguments.kt");
}
+ @Test
@TestMetadata("defaultParametersDontBox.kt")
public void testDefaultParametersDontBox() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/defaultParametersDontBox.kt");
}
+ @Test
@TestMetadata("delegatedPropertyMangling.kt")
public void testDelegatedPropertyMangling() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/delegatedPropertyMangling.kt");
}
+ @Test
@TestMetadata("equalsDoesNotBox.kt")
public void testEqualsDoesNotBox() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/equalsDoesNotBox.kt");
}
+ @Test
@TestMetadata("equalsIsCalledByInlineClass.kt")
public void testEqualsIsCalledByInlineClass() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/equalsIsCalledByInlineClass.kt");
}
+ @Test
@TestMetadata("factoryMethodForSecondaryConstructorsCalledByInlineClass.kt")
public void testFactoryMethodForSecondaryConstructorsCalledByInlineClass() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/factoryMethodForSecondaryConstructorsCalledByInlineClass.kt");
}
+ @Test
@TestMetadata("functionsWithInlineClassParametersHaveStableMangledNames.kt")
public void testFunctionsWithInlineClassParametersHaveStableMangledNames() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/functionsWithInlineClassParametersHaveStableMangledNames.kt");
}
+ @Test
@TestMetadata("generationOfAccessorToUnderlyingValue.kt")
public void testGenerationOfAccessorToUnderlyingValue() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/generationOfAccessorToUnderlyingValue.kt");
}
+ @Test
@TestMetadata("hashCodeIsCalledByInlineClass.kt")
public void testHashCodeIsCalledByInlineClass() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/hashCodeIsCalledByInlineClass.kt");
}
+ @Test
@TestMetadata("inlineClassBoxingOnAssignment.kt")
public void testInlineClassBoxingOnAssignment() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/inlineClassBoxingOnAssignment.kt");
}
+ @Test
@TestMetadata("inlineClassBoxingOnFunctionCall.kt")
public void testInlineClassBoxingOnFunctionCall() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/inlineClassBoxingOnFunctionCall.kt");
}
+ @Test
@TestMetadata("inlineClassBoxingUnboxingInsideInlinedLambda.kt")
public void testInlineClassBoxingUnboxingInsideInlinedLambda() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/inlineClassBoxingUnboxingInsideInlinedLambda.kt");
}
+ @Test
@TestMetadata("inlineClassInGeneratedToString.kt")
public void testInlineClassInGeneratedToString() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/inlineClassInGeneratedToString.kt");
}
+ @Test
@TestMetadata("inlineClassInStringTemplate.kt")
public void testInlineClassInStringTemplate() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/inlineClassInStringTemplate.kt");
}
+ @Test
@TestMetadata("inlineClassesUnboxingAfterAssertionOperator.kt")
public void testInlineClassesUnboxingAfterAssertionOperator() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/inlineClassesUnboxingAfterAssertionOperator.kt");
}
+ @Test
@TestMetadata("interfaceDefaultImplStubs.kt")
public void testInterfaceDefaultImplStubs() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/interfaceDefaultImplStubs.kt");
}
+ @Test
@TestMetadata("interfaceJvmDefaultImplStubs.kt")
public void testInterfaceJvmDefaultImplStubs() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/interfaceJvmDefaultImplStubs.kt");
}
+ @Test
@TestMetadata("isCheckForInlineClass.kt")
public void testIsCheckForInlineClass() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/isCheckForInlineClass.kt");
}
+ @Test
@TestMetadata("mangledInlineClassInterfaceImplementation.kt")
public void testMangledInlineClassInterfaceImplementation() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/mangledInlineClassInterfaceImplementation.kt");
}
+ @Test
@TestMetadata("noActualCallsOfInlineFunctionsOfInlineClass.kt")
public void testNoActualCallsOfInlineFunctionsOfInlineClass() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/noActualCallsOfInlineFunctionsOfInlineClass.kt");
}
+ @Test
@TestMetadata("noAssertionsForInlineClassesBasedOnNullableTypes.kt")
public void testNoAssertionsForInlineClassesBasedOnNullableTypes() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/noAssertionsForInlineClassesBasedOnNullableTypes.kt");
}
+ @Test
@TestMetadata("noBoxingInMethod.kt")
public void testNoBoxingInMethod() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/noBoxingInMethod.kt");
}
+ @Test
@TestMetadata("noBoxingOnCastOperations.kt")
public void testNoBoxingOnCastOperations() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/noBoxingOnCastOperations.kt");
}
+ @Test
@TestMetadata("noBoxingOperationsOnNonTrivialSpread.kt")
public void testNoBoxingOperationsOnNonTrivialSpread() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/noBoxingOperationsOnNonTrivialSpread.kt");
}
+ @Test
@TestMetadata("noBoxingUnboxingInAccessorsForDelegatedPropertyWithInlineClassDelegate.kt")
public void testNoBoxingUnboxingInAccessorsForDelegatedPropertyWithInlineClassDelegate() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/noBoxingUnboxingInAccessorsForDelegatedPropertyWithInlineClassDelegate.kt");
}
+ @Test
@TestMetadata("noManglingForFunctionsWithJvmName.kt")
public void testNoManglingForFunctionsWithJvmName() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/noManglingForFunctionsWithJvmName.kt");
}
+ @Test
@TestMetadata("noReturnTypeMangling.kt")
public void testNoReturnTypeMangling() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/noReturnTypeMangling.kt");
}
+ @Test
@TestMetadata("nonOverridingMethodsAreCalledByInlineClass.kt")
public void testNonOverridingMethodsAreCalledByInlineClass() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/nonOverridingMethodsAreCalledByInlineClass.kt");
}
+ @Test
@TestMetadata("overridingMethodsAreCalledByInlineClass.kt")
public void testOverridingMethodsAreCalledByInlineClass() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/overridingMethodsAreCalledByInlineClass.kt");
}
+ @Test
@TestMetadata("passInlineClassesWithSpreadOperatorToVarargs.kt")
public void testPassInlineClassesWithSpreadOperatorToVarargs() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/passInlineClassesWithSpreadOperatorToVarargs.kt");
}
+ @Test
@TestMetadata("primaryConstructorCalledByInlineClass.kt")
public void testPrimaryConstructorCalledByInlineClass() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/primaryConstructorCalledByInlineClass.kt");
}
+ @Test
@TestMetadata("propertyAccessorsAreCalledByInlineClass.kt")
public void testPropertyAccessorsAreCalledByInlineClass() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/propertyAccessorsAreCalledByInlineClass.kt");
}
+ @Test
@TestMetadata("propertySetterWithInlineClassTypeArgument.kt")
public void testPropertySetterWithInlineClassTypeArgument() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/propertySetterWithInlineClassTypeArgument.kt");
}
+ @Test
@TestMetadata("resultApiDoesntCallSpecializedEquals.kt")
public void testResultApiDoesntCallSpecializedEquals() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/resultApiDoesntCallSpecializedEquals.kt");
}
+ @Test
@TestMetadata("resultApiDoesntUseBox.kt")
public void testResultApiDoesntUseBox() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/resultApiDoesntUseBox.kt");
}
+ @Test
@TestMetadata("resultApiEqualsDoesntBox.kt")
public void testResultApiEqualsDoesntBox() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/resultApiEqualsDoesntBox.kt");
}
+ @Test
@TestMetadata("resultApiRunCatchingDoesntBox.kt")
public void testResultApiRunCatchingDoesntBox() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/resultApiRunCatchingDoesntBox.kt");
}
+ @Test
@TestMetadata("resultApiStringInterpolationDoesntBox.kt")
public void testResultApiStringInterpolationDoesntBox() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/resultApiStringInterpolationDoesntBox.kt");
}
+ @Test
@TestMetadata("resultMangling.kt")
public void testResultMangling() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/resultMangling.kt");
}
+ @Test
@TestMetadata("skipCallToUnderlyingValueOfInlineClass.kt")
public void testSkipCallToUnderlyingValueOfInlineClass() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/skipCallToUnderlyingValueOfInlineClass.kt");
}
+ @Test
@TestMetadata("suspendFunctionMangling.kt")
public void testSuspendFunctionMangling() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/suspendFunctionMangling.kt");
}
+ @Test
@TestMetadata("toStringOfInlineClassValue.kt")
public void testToStringOfInlineClassValue() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/toStringOfInlineClassValue.kt");
}
+ @Test
@TestMetadata("toStringOfReferenceInlineClassValue.kt")
public void testToStringOfReferenceInlineClassValue() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/toStringOfReferenceInlineClassValue.kt");
}
+ @Test
@TestMetadata("uIntArrayIteratorWithoutBoxing.kt")
public void testUIntArrayIteratorWithoutBoxing() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/uIntArrayIteratorWithoutBoxing.kt");
}
+ @Test
@TestMetadata("uIntArraySwapBoxing.kt")
public void testUIntArraySwapBoxing() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/uIntArraySwapBoxing.kt");
}
+ @Test
@TestMetadata("unboxInlineClassAfterElvis.kt")
public void testUnboxInlineClassAfterElvis() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/unboxInlineClassAfterElvis.kt");
}
+ @Test
@TestMetadata("unboxInlineClassAfterSafeCall.kt")
public void testUnboxInlineClassAfterSafeCall() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/unboxInlineClassAfterSafeCall.kt");
}
+ @Test
@TestMetadata("unboxInlineClassFromParameterizedType.kt")
public void testUnboxInlineClassFromParameterizedType() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/unboxInlineClassFromParameterizedType.kt");
}
+ @Test
@TestMetadata("unboxInlineClassesAfterSmartCasts.kt")
public void testUnboxInlineClassesAfterSmartCasts() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/unboxInlineClassesAfterSmartCasts.kt");
}
+ @Test
@TestMetadata("unboxMethodCalledByInlineClass.kt")
public void testUnboxMethodCalledByInlineClass() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/unboxMethodCalledByInlineClass.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/innerClasses")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class InnerClasses extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class InnerClasses extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInInnerClasses() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/innerClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("nestedClassInAnnotationArgument.kt")
public void testNestedClassInAnnotationArgument() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/innerClasses/nestedClassInAnnotationArgument.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/interfaces")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Interfaces extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class Interfaces extends AbstractFirBytecodeTextTest {
+ @Test
@TestMetadata("addedInterfaceBridge.kt")
public void testAddedInterfaceBridge() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/interfaces/addedInterfaceBridge.kt");
}
+ @Test
public void testAllFilesPresentInInterfaces() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/interfaces"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("firstInheritedMethodIsAbstract.kt")
public void testFirstInheritedMethodIsAbstract() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/interfaces/firstInheritedMethodIsAbstract.kt");
}
+ @Test
@TestMetadata("noAnyMethodsOnInterfaceInheritance.kt")
public void testNoAnyMethodsOnInterfaceInheritance() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/interfaces/noAnyMethodsOnInterfaceInheritance.kt");
}
+ @Test
@TestMetadata("noPrivateMemberInJavaInterface.kt")
public void testNoPrivateMemberInJavaInterface() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/interfaces/noPrivateMemberInJavaInterface.kt");
}
+ @Test
@TestMetadata("traitImplGeneratedOnce.kt")
public void testTraitImplGeneratedOnce() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/interfaces/traitImplGeneratedOnce.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/intrinsics")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Intrinsics extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class Intrinsics extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInIntrinsics() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/intrinsics"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("javaObjectType.kt")
public void testJavaObjectType() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/intrinsics/javaObjectType.kt");
}
+ @Test
@TestMetadata("javaPrimitiveType.kt")
public void testJavaPrimitiveType() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/intrinsics/javaPrimitiveType.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/intrinsicsCompare")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class IntrinsicsCompare extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class IntrinsicsCompare extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInIntrinsicsCompare() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/intrinsicsCompare"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("byteSmartCast_after.kt")
public void testByteSmartCast_after() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/intrinsicsCompare/byteSmartCast_after.kt");
}
+ @Test
@TestMetadata("byteSmartCast_before.kt")
public void testByteSmartCast_before() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/intrinsicsCompare/byteSmartCast_before.kt");
}
+ @Test
@TestMetadata("charSmartCast.kt")
public void testCharSmartCast() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/intrinsicsCompare/charSmartCast.kt");
}
+ @Test
@TestMetadata("differentTypes_after.kt")
public void testDifferentTypes_after() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/intrinsicsCompare/differentTypes_after.kt");
}
+ @Test
@TestMetadata("differentTypes_before.kt")
public void testDifferentTypes_before() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/intrinsicsCompare/differentTypes_before.kt");
}
+ @Test
@TestMetadata("intSmartCast_after.kt")
public void testIntSmartCast_after() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/intrinsicsCompare/intSmartCast_after.kt");
}
+ @Test
@TestMetadata("intSmartCast_before.kt")
public void testIntSmartCast_before() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/intrinsicsCompare/intSmartCast_before.kt");
}
+ @Test
@TestMetadata("longSmartCast.kt")
public void testLongSmartCast() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/intrinsicsCompare/longSmartCast.kt");
}
+ @Test
@TestMetadata("shortSmartCast_after.kt")
public void testShortSmartCast_after() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/intrinsicsCompare/shortSmartCast_after.kt");
}
+ @Test
@TestMetadata("shortSmartCast_before.kt")
public void testShortSmartCast_before() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/intrinsicsCompare/shortSmartCast_before.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/intrinsicsTrim")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class IntrinsicsTrim extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class IntrinsicsTrim extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInIntrinsicsTrim() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/intrinsicsTrim"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("trimIndentNegative.kt")
public void testTrimIndentNegative() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/intrinsicsTrim/trimIndentNegative.kt");
}
+ @Test
@TestMetadata("trimIndentPositive.kt")
public void testTrimIndentPositive() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/intrinsicsTrim/trimIndentPositive.kt");
}
+ @Test
@TestMetadata("trimMarginNegative.kt")
public void testTrimMarginNegative() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/intrinsicsTrim/trimMarginNegative.kt");
}
+ @Test
@TestMetadata("trimMarginPositive.kt")
public void testTrimMarginPositive() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/intrinsicsTrim/trimMarginPositive.kt");
}
}
- @TestMetadata("compiler/testData/codegen/bytecodeText/jvm8")
+ @Nested
+ @TestMetadata("compiler/testData/codegen/bytecodeText/invokedynamic")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Jvm8 extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
+ public class Invokedynamic extends AbstractFirBytecodeTextTest {
+ @Test
+ public void testAllFilesPresentInInvokedynamic() throws Exception {
+ KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/invokedynamic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
+ @TestMetadata("streamApi.kt")
+ public void testStreamApi() throws Exception {
+ runTest("compiler/testData/codegen/bytecodeText/invokedynamic/streamApi.kt");
+ }
+ }
+
+ @Nested
+ @TestMetadata("compiler/testData/codegen/bytecodeText/jvm8")
+ @TestDataPath("$PROJECT_ROOT")
+ public class Jvm8 extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInJvm8() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/jvm8"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/jvm8/hashCode")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class HashCode extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class HashCode extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInHashCode() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/jvm8/hashCode"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("dataClass.kt")
public void testDataClass() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/jvm8/hashCode/dataClass.kt");
}
+ @Test
@TestMetadata("hashCode.kt")
public void testHashCode() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/jvm8/hashCode/hashCode.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/jvm8/jvmDefault")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class JvmDefault extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class JvmDefault extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInJvmDefault() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/jvm8/jvmDefault"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/jvm8/jvmDefault/allCompatibility")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class AllCompatibility extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class AllCompatibility extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInAllCompatibility() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/jvm8/jvmDefault/allCompatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("defaultArgs.kt")
public void testDefaultArgs() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/jvm8/jvmDefault/allCompatibility/defaultArgs.kt");
}
+ @Test
@TestMetadata("simpleDiamond.kt")
public void testSimpleDiamond() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/jvm8/jvmDefault/allCompatibility/simpleDiamond.kt");
}
+ @Test
@TestMetadata("simpleFunction.kt")
public void testSimpleFunction() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/jvm8/jvmDefault/allCompatibility/simpleFunction.kt");
}
+ @Test
@TestMetadata("simpleFunctionWithAbstractOverride.kt")
public void testSimpleFunctionWithAbstractOverride() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/jvm8/jvmDefault/allCompatibility/simpleFunctionWithAbstractOverride.kt");
}
+ @Test
@TestMetadata("simpleProperty.kt")
public void testSimpleProperty() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/jvm8/jvmDefault/allCompatibility/simpleProperty.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/jvm8/jvmDefault/compatibility")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Compatibility extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class Compatibility extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInCompatibility() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/jvm8/jvmDefault/compatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("defaultArgs.kt")
public void testDefaultArgs() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/jvm8/jvmDefault/compatibility/defaultArgs.kt");
}
+ @Test
@TestMetadata("simpleDiamond.kt")
public void testSimpleDiamond() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/jvm8/jvmDefault/compatibility/simpleDiamond.kt");
}
+ @Test
@TestMetadata("simpleFunction.kt")
public void testSimpleFunction() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/jvm8/jvmDefault/compatibility/simpleFunction.kt");
}
+ @Test
@TestMetadata("simpleFunctionWithAbstractOverride.kt")
public void testSimpleFunctionWithAbstractOverride() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/jvm8/jvmDefault/compatibility/simpleFunctionWithAbstractOverride.kt");
}
+ @Test
@TestMetadata("simpleProperty.kt")
public void testSimpleProperty() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/jvm8/jvmDefault/compatibility/simpleProperty.kt");
@@ -3646,498 +4061,553 @@ public class FirBytecodeTextTestGenerated extends AbstractFirBytecodeTextTest {
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/lazyCodegen")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class LazyCodegen extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class LazyCodegen extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInLazyCodegen() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/lazyCodegen"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("inlineConstInsideComparison.kt")
public void testInlineConstInsideComparison() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/lazyCodegen/inlineConstInsideComparison.kt");
}
+ @Test
@TestMetadata("negateConst.kt")
public void testNegateConst() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/lazyCodegen/negateConst.kt");
}
+ @Test
@TestMetadata("negateConstantCompare.kt")
public void testNegateConstantCompare() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/lazyCodegen/negateConstantCompare.kt");
}
+ @Test
@TestMetadata("negateObjectComp.kt")
public void testNegateObjectComp() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/lazyCodegen/negateObjectComp.kt");
}
+ @Test
@TestMetadata("negateObjectCompChaing.kt")
public void testNegateObjectCompChaing() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/lazyCodegen/negateObjectCompChaing.kt");
}
+ @Test
@TestMetadata("negateVar.kt")
public void testNegateVar() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/lazyCodegen/negateVar.kt");
}
+ @Test
@TestMetadata("negateVarChain.kt")
public void testNegateVarChain() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/lazyCodegen/negateVarChain.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/lineNumbers")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class LineNumbers extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class LineNumbers extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInLineNumbers() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/lineNumbers"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("ifConsts.kt")
public void testIfConsts() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/lineNumbers/ifConsts.kt");
}
+ @Test
@TestMetadata("ifElse.kt")
public void testIfElse() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/lineNumbers/ifElse.kt");
}
+ @Test
@TestMetadata("ifFalse.kt")
public void testIfFalse() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/lineNumbers/ifFalse.kt");
}
+ @Test
@TestMetadata("ifFalseElse.kt")
public void testIfFalseElse() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/lineNumbers/ifFalseElse.kt");
}
+ @Test
@TestMetadata("ifTrue.kt")
public void testIfTrue() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/lineNumbers/ifTrue.kt");
}
+ @Test
@TestMetadata("ifTrueElse.kt")
public void testIfTrueElse() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/lineNumbers/ifTrueElse.kt");
}
+ @Test
@TestMetadata("inlineCondition.kt")
public void testInlineCondition() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/lineNumbers/inlineCondition.kt");
}
+ @Test
@TestMetadata("inlineCondition2.kt")
public void testInlineCondition2() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/lineNumbers/inlineCondition2.kt");
}
+ @Test
@TestMetadata("inlineLambdaObjectInit.kt")
public void testInlineLambdaObjectInit() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/lineNumbers/inlineLambdaObjectInit.kt");
}
+ @Test
@TestMetadata("singleThen.kt")
public void testSingleThen() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/lineNumbers/singleThen.kt");
}
+ @Test
@TestMetadata("tryCatch.kt")
public void testTryCatch() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/lineNumbers/tryCatch.kt");
}
+ @Test
@TestMetadata("when.kt")
public void testWhen() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/lineNumbers/when.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/localInitializationLVT")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class LocalInitializationLVT extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class LocalInitializationLVT extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInLocalInitializationLVT() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/localInitializationLVT"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("boxing.kt")
public void testBoxing() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/boxing.kt");
}
+ @Test
@TestMetadata("boxingVar.kt")
public void testBoxingVar() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/boxingVar.kt");
}
+ @Test
@TestMetadata("contract.kt")
public void testContract() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/contract.kt");
}
+ @Test
@TestMetadata("contractVar.kt")
public void testContractVar() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/contractVar.kt");
}
+ @Test
@TestMetadata("generics.kt")
public void testGenerics() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/generics.kt");
}
+ @Test
@TestMetadata("genericsVar.kt")
public void testGenericsVar() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/genericsVar.kt");
}
+ @Test
@TestMetadata("ifStatement.kt")
public void testIfStatement() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/ifStatement.kt");
}
+ @Test
@TestMetadata("ifStatementVar.kt")
public void testIfStatementVar() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/ifStatementVar.kt");
}
+ @Test
@TestMetadata("ifStatementWithoutBlock.kt")
public void testIfStatementWithoutBlock() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/ifStatementWithoutBlock.kt");
}
+ @Test
@TestMetadata("ifStatementWithoutBlockVar.kt")
public void testIfStatementWithoutBlockVar() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/ifStatementWithoutBlockVar.kt");
}
+ @Test
@TestMetadata("inlineClass.kt")
public void testInlineClass() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/inlineClass.kt");
}
+ @Test
@TestMetadata("inlineClassVar.kt")
public void testInlineClassVar() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/inlineClassVar.kt");
}
+ @Test
@TestMetadata("lateinit.kt")
public void testLateinit() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/lateinit.kt");
}
+ @Test
@TestMetadata("run.kt")
public void testRun() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/run.kt");
}
+ @Test
@TestMetadata("runVar.kt")
public void testRunVar() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/runVar.kt");
}
+ @Test
@TestMetadata("singleBlock.kt")
public void testSingleBlock() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/singleBlock.kt");
}
+ @Test
@TestMetadata("singleBlockVar.kt")
public void testSingleBlockVar() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/singleBlockVar.kt");
}
+ @Test
@TestMetadata("whenStatement.kt")
public void testWhenStatement() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/whenStatement.kt");
}
+ @Test
@TestMetadata("whenStatementVar.kt")
public void testWhenStatementVar() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/localInitializationLVT/whenStatementVar.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/mangling")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Mangling extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class Mangling extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInMangling() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/mangling"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("parentheses.kt")
public void testParentheses() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/mangling/parentheses.kt");
}
+ @Test
@TestMetadata("parenthesesNoSanitize.kt")
public void testParenthesesNoSanitize() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/mangling/parenthesesNoSanitize.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/multifileClasses")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class MultifileClasses extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class MultifileClasses extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInMultifileClasses() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/multifileClasses"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("defaultFunctionInMultifileClass.kt")
public void testDefaultFunctionInMultifileClass() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/multifileClasses/defaultFunctionInMultifileClass.kt");
}
+ @Test
@TestMetadata("optimizedMultifileClassFacadeMethods.kt")
public void testOptimizedMultifileClassFacadeMethods() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/multifileClasses/optimizedMultifileClassFacadeMethods.kt");
}
+ @Test
@TestMetadata("privateFunctionName.kt")
public void testPrivateFunctionName() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/multifileClasses/privateFunctionName.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/notNullAssertions")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class NotNullAssertions extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class NotNullAssertions extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInNotNullAssertions() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/notNullAssertions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("arrayListGet.kt")
public void testArrayListGet() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/notNullAssertions/arrayListGet.kt");
}
+ @Test
@TestMetadata("assertionForNotNullCaptured.kt")
public void testAssertionForNotNullCaptured() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/notNullAssertions/assertionForNotNullCaptured.kt");
}
+ @Test
@TestMetadata("assertionForNotNullTypeParam.kt")
public void testAssertionForNotNullTypeParam() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/notNullAssertions/assertionForNotNullTypeParam.kt");
}
+ @Test
@TestMetadata("assertionForNotNullTypeParam_1_4.kt")
public void testAssertionForNotNullTypeParam_1_4() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/notNullAssertions/assertionForNotNullTypeParam_1_4.kt");
}
+ @Test
@TestMetadata("doNotGenerateParamAssertions.kt")
public void testDoNotGenerateParamAssertions() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/notNullAssertions/doNotGenerateParamAssertions.kt");
}
+ @Test
@TestMetadata("javaMultipleSubstitutions.kt")
public void testJavaMultipleSubstitutions() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/notNullAssertions/javaMultipleSubstitutions.kt");
}
+ @Test
@TestMetadata("noAssertionForNullableCaptured.kt")
public void testNoAssertionForNullableCaptured() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/notNullAssertions/noAssertionForNullableCaptured.kt");
}
+ @Test
@TestMetadata("noAssertionForNullableGenericMethod.kt")
public void testNoAssertionForNullableGenericMethod() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/notNullAssertions/noAssertionForNullableGenericMethod.kt");
}
+ @Test
@TestMetadata("noAssertionForNullableGenericMethodCall.kt")
public void testNoAssertionForNullableGenericMethodCall() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/notNullAssertions/noAssertionForNullableGenericMethodCall.kt");
}
+ @Test
@TestMetadata("noAssertionForPrivateMethod.kt")
public void testNoAssertionForPrivateMethod() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/notNullAssertions/noAssertionForPrivateMethod.kt");
}
+ @Test
@TestMetadata("noAssertionsForKotlin.kt")
public void testNoAssertionsForKotlin() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/notNullAssertions/noAssertionsForKotlin.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/nullCheckOptimization")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class NullCheckOptimization extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class NullCheckOptimization extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInNullCheckOptimization() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/nullCheckOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("alreadyCheckedForIs.kt")
public void testAlreadyCheckedForIs() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/alreadyCheckedForIs.kt");
}
+ @Test
@TestMetadata("alreadyCheckedForNull.kt")
public void testAlreadyCheckedForNull() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/alreadyCheckedForNull.kt");
}
+ @Test
@TestMetadata("deterministicNotNullChecks.kt")
public void testDeterministicNotNullChecks() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/deterministicNotNullChecks.kt");
}
+ @Test
@TestMetadata("expressionValueIsNotNull.kt")
public void testExpressionValueIsNotNull() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/expressionValueIsNotNull.kt");
}
+ @Test
@TestMetadata("expressionValueIsNotNullAfterExclExcl.kt")
public void testExpressionValueIsNotNullAfterExclExcl() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/expressionValueIsNotNullAfterExclExcl.kt");
}
+ @Test
@TestMetadata("expressionValueIsNotNullTwice.kt")
public void testExpressionValueIsNotNullTwice() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/expressionValueIsNotNullTwice.kt");
}
+ @Test
@TestMetadata("ifNullEqualsNull.kt")
public void testIfNullEqualsNull() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/ifNullEqualsNull.kt");
}
+ @Test
@TestMetadata("ifNullEqualsNullInline.kt")
public void testIfNullEqualsNullInline() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/ifNullEqualsNullInline.kt");
}
+ @Test
@TestMetadata("ifUnitEqualsNull.kt")
public void testIfUnitEqualsNull() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/ifUnitEqualsNull.kt");
}
+ @Test
@TestMetadata("ifUnitEqualsNullInline.kt")
public void testIfUnitEqualsNullInline() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/ifUnitEqualsNullInline.kt");
}
+ @Test
@TestMetadata("kt12839.kt")
public void testKt12839() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/kt12839.kt");
}
+ @Test
@TestMetadata("multipleExclExcl_1_4.kt")
public void testMultipleExclExcl_1_4() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/multipleExclExcl_1_4.kt");
}
+ @Test
@TestMetadata("notNullAsNotNullable.kt")
public void testNotNullAsNotNullable() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/notNullAsNotNullable.kt");
}
+ @Test
@TestMetadata("notNullExpressionValueTwice_1_4.kt")
public void testNotNullExpressionValueTwice_1_4() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/notNullExpressionValueTwice_1_4.kt");
}
+ @Test
@TestMetadata("nullCheckAfterExclExcl_1_4.kt")
public void testNullCheckAfterExclExcl_1_4() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/nullCheckAfterExclExcl_1_4.kt");
}
+ @Test
@TestMetadata("nullabilityAssertionOnDispatchReceiver.kt")
public void testNullabilityAssertionOnDispatchReceiver() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/nullabilityAssertionOnDispatchReceiver.kt");
}
+ @Test
@TestMetadata("primitiveCheck.kt")
public void testPrimitiveCheck() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/primitiveCheck.kt");
}
+ @Test
@TestMetadata("redundantSafeCall.kt")
public void testRedundantSafeCall() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/redundantSafeCall.kt");
}
+ @Test
@TestMetadata("redundantSafeCall_1_4.kt")
public void testRedundantSafeCall_1_4() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/redundantSafeCall_1_4.kt");
}
+ @Test
@TestMetadata("reifiedIs.kt")
public void testReifiedIs() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/reifiedIs.kt");
}
+ @Test
@TestMetadata("reifiedNullIs.kt")
public void testReifiedNullIs() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/reifiedNullIs.kt");
}
+ @Test
@TestMetadata("trivialInstanceOf.kt")
public void testTrivialInstanceOf() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/trivialInstanceOf.kt");
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/nullCheckOptimization/localLateinit")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class LocalLateinit extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class LocalLateinit extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInLocalLateinit() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/nullCheckOptimization/localLateinit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("checkedAlways.kt")
public void testCheckedAlways() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/localLateinit/checkedAlways.kt");
}
+ @Test
@TestMetadata("checkedOnce.kt")
public void testCheckedOnce() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/localLateinit/checkedOnce.kt");
}
+ @Test
@TestMetadata("initialized.kt")
public void testInitialized() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/nullCheckOptimization/localLateinit/initialized.kt");
@@ -4145,126 +4615,129 @@ public class FirBytecodeTextTestGenerated extends AbstractFirBytecodeTextTest {
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/optimizedDelegatedProperties")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class OptimizedDelegatedProperties extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class OptimizedDelegatedProperties extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInOptimizedDelegatedProperties() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/optimizedDelegatedProperties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("definedInSources.kt")
public void testDefinedInSources() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/optimizedDelegatedProperties/definedInSources.kt");
}
+ @Test
@TestMetadata("inSeparateModule.kt")
public void testInSeparateModule() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/optimizedDelegatedProperties/inSeparateModule.kt");
}
+ @Test
@TestMetadata("lazy.kt")
public void testLazy() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/optimizedDelegatedProperties/lazy.kt");
}
+ @Test
@TestMetadata("withNonNullMetadataParameter.kt")
public void testWithNonNullMetadataParameter() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/optimizedDelegatedProperties/withNonNullMetadataParameter.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/parameterlessMain")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class ParameterlessMain extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class ParameterlessMain extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInParameterlessMain() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/parameterlessMain"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("dontGenerateOnExtensionReceiver.kt")
public void testDontGenerateOnExtensionReceiver() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/parameterlessMain/dontGenerateOnExtensionReceiver.kt");
}
+ @Test
@TestMetadata("dontGenerateOnJvmNameMain.kt")
public void testDontGenerateOnJvmNameMain() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/parameterlessMain/dontGenerateOnJvmNameMain.kt");
}
+ @Test
@TestMetadata("dontGenerateOnJvmOverloads.kt")
public void testDontGenerateOnJvmOverloads() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/parameterlessMain/dontGenerateOnJvmOverloads.kt");
}
+ @Test
@TestMetadata("dontGenerateOnMain.kt")
public void testDontGenerateOnMain() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/parameterlessMain/dontGenerateOnMain.kt");
}
+ @Test
@TestMetadata("dontGenerateOnMainExtension.kt")
public void testDontGenerateOnMainExtension() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/parameterlessMain/dontGenerateOnMainExtension.kt");
}
+ @Test
@TestMetadata("dontGenerateOnNullableArray.kt")
public void testDontGenerateOnNullableArray() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/parameterlessMain/dontGenerateOnNullableArray.kt");
}
+ @Test
@TestMetadata("dontGenerateOnVarargsString.kt")
public void testDontGenerateOnVarargsString() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/parameterlessMain/dontGenerateOnVarargsString.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/properties")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Properties extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class Properties extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInProperties() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/properties"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("dataClass.kt")
public void testDataClass() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/properties/dataClass.kt");
}
+ @Test
@TestMetadata("openDataClass.kt")
public void testOpenDataClass() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/properties/openDataClass.kt");
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/properties/lateinit")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Lateinit extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class Lateinit extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInLateinit() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/properties/lateinit"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("companionObject.kt")
public void testCompanionObject() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/properties/lateinit/companionObject.kt");
}
+ @Test
@TestMetadata("companionObjectFromLambda.kt")
public void testCompanionObjectFromLambda() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/properties/lateinit/companionObjectFromLambda.kt");
@@ -4272,791 +4745,882 @@ public class FirBytecodeTextTestGenerated extends AbstractFirBytecodeTextTest {
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/ranges")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Ranges extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class Ranges extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInRanges() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/ranges"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("ifNotInRange.kt")
public void testIfNotInRange() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/ranges/ifNotInRange.kt");
}
+ @Test
@TestMetadata("inArrayIndices.kt")
public void testInArrayIndices() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/ranges/inArrayIndices.kt");
}
+ @Test
@TestMetadata("inCharSequenceIndices.kt")
public void testInCharSequenceIndices() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/ranges/inCharSequenceIndices.kt");
}
+ @Test
@TestMetadata("inCollectionIndices.kt")
public void testInCollectionIndices() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/ranges/inCollectionIndices.kt");
}
+ @Test
@TestMetadata("inComparableRangeLiteral.kt")
public void testInComparableRangeLiteral() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/ranges/inComparableRangeLiteral.kt");
}
+ @Test
@TestMetadata("inMixedUnsignedRange.kt")
public void testInMixedUnsignedRange() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/ranges/inMixedUnsignedRange.kt");
}
+ @Test
@TestMetadata("inMixedUnsignedRange_2.kt")
public void testInMixedUnsignedRange_2() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/ranges/inMixedUnsignedRange_2.kt");
}
+ @Test
@TestMetadata("inNonMatchingRangeIntrinsified.kt")
public void testInNonMatchingRangeIntrinsified() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/ranges/inNonMatchingRangeIntrinsified.kt");
}
+ @Test
@TestMetadata("inOptimizableRange.kt")
public void testInOptimizableRange() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/ranges/inOptimizableRange.kt");
}
+ @Test
@TestMetadata("inOptimizableUnsignedRange.kt")
public void testInOptimizableUnsignedRange() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/ranges/inOptimizableUnsignedRange.kt");
}
+ @Test
@TestMetadata("inUntil.kt")
public void testInUntil() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/ranges/inUntil.kt");
}
+ @Test
@TestMetadata("noDupXForLiteralRangeContains.kt")
public void testNoDupXForLiteralRangeContains() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/ranges/noDupXForLiteralRangeContains.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/sam")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Sam extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class Sam extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInSam() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/sam"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("samWrapperForNullInitialization.kt")
public void testSamWrapperForNullInitialization() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/sam/samWrapperForNullInitialization.kt");
}
+ @Test
@TestMetadata("samWrapperForNullableInitialization.kt")
public void testSamWrapperForNullableInitialization() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/sam/samWrapperForNullableInitialization.kt");
}
+ @Test
@TestMetadata("samWrapperInInlineLambda.kt")
public void testSamWrapperInInlineLambda() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/sam/samWrapperInInlineLambda.kt");
}
+ @Test
@TestMetadata("samWrapperOfLambda.kt")
public void testSamWrapperOfLambda() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/sam/samWrapperOfLambda.kt");
}
+ @Test
@TestMetadata("samWrapperOfReference.kt")
public void testSamWrapperOfReference() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/sam/samWrapperOfReference.kt");
}
+ @Test
@TestMetadata("samWrapperRawTypes.kt")
public void testSamWrapperRawTypes() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/sam/samWrapperRawTypes.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/statements")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Statements extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class Statements extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInStatements() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/statements"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("ifSingleBranch.kt")
public void testIfSingleBranch() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/statements/ifSingleBranch.kt");
}
+ @Test
@TestMetadata("ifThenElse.kt")
public void testIfThenElse() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/statements/ifThenElse.kt");
}
+ @Test
@TestMetadata("ifThenElseEmpty.kt")
public void testIfThenElseEmpty() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/statements/ifThenElseEmpty.kt");
}
+ @Test
@TestMetadata("labeled.kt")
public void testLabeled() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/statements/labeled.kt");
}
+ @Test
@TestMetadata("statementsComposition.kt")
public void testStatementsComposition() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/statements/statementsComposition.kt");
}
+ @Test
@TestMetadata("tryCatchFinally.kt")
public void testTryCatchFinally() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/statements/tryCatchFinally.kt");
}
+ @Test
@TestMetadata("when.kt")
public void testWhen() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/statements/when.kt");
}
+ @Test
@TestMetadata("whenSubject.kt")
public void testWhenSubject() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/statements/whenSubject.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/staticFields")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class StaticFields extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class StaticFields extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInStaticFields() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/staticFields"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("classObject.kt")
public void testClassObject() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/staticFields/classObject.kt");
}
+ @Test
@TestMetadata("object.kt")
public void testObject() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/staticFields/object.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/storeStackBeforeInline")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class StoreStackBeforeInline extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class StoreStackBeforeInline extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInStoreStackBeforeInline() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/storeStackBeforeInline"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("differentTypes.kt")
public void testDifferentTypes() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/storeStackBeforeInline/differentTypes.kt");
}
+ @Test
@TestMetadata("primitiveMerge.kt")
public void testPrimitiveMerge() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/storeStackBeforeInline/primitiveMerge.kt");
}
+ @Test
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/storeStackBeforeInline/simple.kt");
}
+ @Test
@TestMetadata("unreachableMarker.kt")
public void testUnreachableMarker() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/storeStackBeforeInline/unreachableMarker.kt");
}
+ @Test
@TestMetadata("withLambda.kt")
public void testWithLambda() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/storeStackBeforeInline/withLambda.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/stringOperations")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class StringOperations extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class StringOperations extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInStringOperations() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/stringOperations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("concat.kt")
public void testConcat() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/stringOperations/concat.kt");
}
+ @Test
@TestMetadata("concatDynamic.kt")
public void testConcatDynamic() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamic.kt");
}
+ @Test
@TestMetadata("concatDynamic200.kt")
public void testConcatDynamic200() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamic200.kt");
}
+ @Test
@TestMetadata("concatDynamic201.kt")
public void testConcatDynamic201() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamic201.kt");
}
+ @Test
@TestMetadata("concatDynamicConstants.kt")
public void testConcatDynamicConstants() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamicConstants.kt");
}
+ @Test
@TestMetadata("concatDynamicDataClass.kt")
public void testConcatDynamicDataClass() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamicDataClass.kt");
}
+ @Test
@TestMetadata("concatDynamicIndy.kt")
public void testConcatDynamicIndy() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamicIndy.kt");
}
+ @Test
@TestMetadata("concatDynamicIndy201.kt")
public void testConcatDynamicIndy201() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamicIndy201.kt");
}
+ @Test
@TestMetadata("concatDynamicIndyDataClass.kt")
public void testConcatDynamicIndyDataClass() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatDynamicIndyDataClass.kt");
}
+ @Test
@TestMetadata("concatNotDynamic.kt")
public void testConcatNotDynamic() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/stringOperations/concatNotDynamic.kt");
}
+ @Test
@TestMetadata("constConcat.kt")
public void testConstConcat() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/stringOperations/constConcat.kt");
}
+ @Test
@TestMetadata("constValConcat.kt")
public void testConstValConcat() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/stringOperations/constValConcat.kt");
}
+ @Test
@TestMetadata("doNotAppendEmptyString.kt")
public void testDoNotAppendEmptyString() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/stringOperations/doNotAppendEmptyString.kt");
}
+ @Test
@TestMetadata("interpolation.kt")
public void testInterpolation() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/stringOperations/interpolation.kt");
}
+ @Test
@TestMetadata("kt15235.kt")
public void testKt15235() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/stringOperations/kt15235.kt");
}
+ @Test
@TestMetadata("kt19037.kt")
public void testKt19037() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/stringOperations/kt19037.kt");
}
+ @Test
@TestMetadata("kt42457_old.kt")
public void testKt42457_old() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/stringOperations/kt42457_old.kt");
}
+ @Test
@TestMetadata("multipleNestedConcat.kt")
public void testMultipleNestedConcat() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/stringOperations/multipleNestedConcat.kt");
}
+ @Test
@TestMetadata("nestedConcat.kt")
public void testNestedConcat() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/stringOperations/nestedConcat.kt");
}
+ @Test
@TestMetadata("nonNullableStringPlus.kt")
public void testNonNullableStringPlus() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/stringOperations/nonNullableStringPlus.kt");
}
+ @Test
@TestMetadata("nullableStringPlus.kt")
public void testNullableStringPlus() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/stringOperations/nullableStringPlus.kt");
}
+ @Test
@TestMetadata("partiallyConstConcat.kt")
public void testPartiallyConstConcat() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/stringOperations/partiallyConstConcat.kt");
}
+ @Test
@TestMetadata("plusAssign.kt")
public void testPlusAssign() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/stringOperations/plusAssign.kt");
}
+ @Test
@TestMetadata("primitiveToString.kt")
public void testPrimitiveToString() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/stringOperations/primitiveToString.kt");
}
+ @Test
@TestMetadata("primitiveToStringNotOptimizable.kt")
public void testPrimitiveToStringNotOptimizable() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/stringOperations/primitiveToStringNotOptimizable.kt");
}
+ @Test
@TestMetadata("primitivesAsStringTemplates.kt")
public void testPrimitivesAsStringTemplates() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/stringOperations/primitivesAsStringTemplates.kt");
}
+ @Test
@TestMetadata("singleConcat.kt")
public void testSingleConcat() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/stringOperations/singleConcat.kt");
}
+ @Test
@TestMetadata("stringBuilderToString.kt")
public void testStringBuilderToString() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/stringOperations/stringBuilderToString.kt");
}
+ @Test
@TestMetadata("stringPlus.kt")
public void testStringPlus() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/stringOperations/stringPlus.kt");
}
+ @Test
@TestMetadata("useAppendCharForOneCharStringInTemplate.kt")
public void testUseAppendCharForOneCharStringInTemplate() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/stringOperations/useAppendCharForOneCharStringInTemplate.kt");
}
+ @Test
@TestMetadata("useAppendCharForOneCharStringInTemplate_2.kt")
public void testUseAppendCharForOneCharStringInTemplate_2() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/stringOperations/useAppendCharForOneCharStringInTemplate_2.kt");
}
+ @Test
@TestMetadata("useAppendCharForOneCharStringUsingPlus.kt")
public void testUseAppendCharForOneCharStringUsingPlus() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/stringOperations/useAppendCharForOneCharStringUsingPlus.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/toArray")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class ToArray extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class ToArray extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInToArray() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/toArray"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("noAccessorForToArray.kt")
public void testNoAccessorForToArray() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/toArray/noAccessorForToArray.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/unsignedTypes")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class UnsignedTypes extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class UnsignedTypes extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInUnsignedTypes() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/unsignedTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("unsignedIntCompare_before.kt")
public void testUnsignedIntCompare_before() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedIntCompare_before.kt");
}
+ @Test
@TestMetadata("unsignedIntCompare_jvm18.kt")
public void testUnsignedIntCompare_jvm18() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedIntCompare_jvm18.kt");
}
+ @Test
@TestMetadata("unsignedIntDivide_jvm18.kt")
public void testUnsignedIntDivide_jvm18() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedIntDivide_jvm18.kt");
}
+ @Test
@TestMetadata("unsignedIntRemainder_jvm18.kt")
public void testUnsignedIntRemainder_jvm18() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedIntRemainder_jvm18.kt");
}
+ @Test
@TestMetadata("unsignedIntSmartCasts_jvm18.kt")
public void testUnsignedIntSmartCasts_jvm18() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedIntSmartCasts_jvm18.kt");
}
+ @Test
@TestMetadata("unsignedIntToString_jvm18.kt")
public void testUnsignedIntToString_jvm18() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedIntToString_jvm18.kt");
}
+ @Test
@TestMetadata("unsignedLongCompare_jvm18.kt")
public void testUnsignedLongCompare_jvm18() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedLongCompare_jvm18.kt");
}
+ @Test
@TestMetadata("unsignedLongDivide_jvm18.kt")
public void testUnsignedLongDivide_jvm18() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedLongDivide_jvm18.kt");
}
+ @Test
@TestMetadata("unsignedLongRemainder_jvm18.kt")
public void testUnsignedLongRemainder_jvm18() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedLongRemainder_jvm18.kt");
}
+ @Test
@TestMetadata("unsignedLongToString_jvm18.kt")
public void testUnsignedLongToString_jvm18() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/unsignedLongToString_jvm18.kt");
}
+ @Test
@TestMetadata("whenByUnsigned.kt")
public void testWhenByUnsigned() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/unsignedTypes/whenByUnsigned.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/varargs")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class Varargs extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class Varargs extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInVarargs() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/varargs"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("doNotCopyImmediatelyCreatedArrays.kt")
public void testDoNotCopyImmediatelyCreatedArrays() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/varargs/doNotCopyImmediatelyCreatedArrays.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/when")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class When extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class When extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInWhen() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/when"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("edgeCases.kt")
public void testEdgeCases() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/when/edgeCases.kt");
}
+ @Test
@TestMetadata("exhaustiveWhenInitialization.kt")
public void testExhaustiveWhenInitialization() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/when/exhaustiveWhenInitialization.kt");
}
+ @Test
@TestMetadata("exhaustiveWhenReturn.kt")
public void testExhaustiveWhenReturn() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/when/exhaustiveWhenReturn.kt");
}
+ @Test
@TestMetadata("exhaustiveWhenSpecialCases.kt")
public void testExhaustiveWhenSpecialCases() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/when/exhaustiveWhenSpecialCases.kt");
}
+ @Test
@TestMetadata("exhaustiveWhenUnit.kt")
public void testExhaustiveWhenUnit() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/when/exhaustiveWhenUnit.kt");
}
+ @Test
@TestMetadata("exhaustiveWhenUnitStatement.kt")
public void testExhaustiveWhenUnitStatement() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/when/exhaustiveWhenUnitStatement.kt");
}
+ @Test
@TestMetadata("inlineConstValsInsideWhen.kt")
public void testInlineConstValsInsideWhen() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/when/inlineConstValsInsideWhen.kt");
}
+ @Test
@TestMetadata("integralWhenWithNoInlinedConstants.kt")
public void testIntegralWhenWithNoInlinedConstants() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/when/integralWhenWithNoInlinedConstants.kt");
}
+ @Test
@TestMetadata("kt18818.kt")
public void testKt18818() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/when/kt18818.kt");
}
+ @Test
@TestMetadata("lookupSwitch.kt")
public void testLookupSwitch() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/when/lookupSwitch.kt");
}
+ @Test
@TestMetadata("lookupSwitchWithSubjectVal.kt")
public void testLookupSwitchWithSubjectVal() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/when/lookupSwitchWithSubjectVal.kt");
}
+ @Test
@TestMetadata("noBoxingInDefaultWhenWithSpecialCases.kt")
public void testNoBoxingInDefaultWhenWithSpecialCases() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/when/noBoxingInDefaultWhenWithSpecialCases.kt");
}
+ @Test
@TestMetadata("qualifiedConstValsInsideWhen.kt")
public void testQualifiedConstValsInsideWhen() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/when/qualifiedConstValsInsideWhen.kt");
}
+ @Test
@TestMetadata("sealedWhenInitialization.kt")
public void testSealedWhenInitialization() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/when/sealedWhenInitialization.kt");
}
+ @Test
@TestMetadata("simpleConstValsInsideWhen.kt")
public void testSimpleConstValsInsideWhen() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/when/simpleConstValsInsideWhen.kt");
}
+ @Test
@TestMetadata("stringSwitchWithSubjectVal.kt")
public void testStringSwitchWithSubjectVal() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/when/stringSwitchWithSubjectVal.kt");
}
+ @Test
@TestMetadata("subjectValHasLocalVariableSlot.kt")
public void testSubjectValHasLocalVariableSlot() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/when/subjectValHasLocalVariableSlot.kt");
}
+ @Test
@TestMetadata("subjectValInEnumWhenHasLocalVariableSlot.kt")
public void testSubjectValInEnumWhenHasLocalVariableSlot() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/when/subjectValInEnumWhenHasLocalVariableSlot.kt");
}
+ @Test
@TestMetadata("subjectValInIntWhenHasLocalVariableSlot.kt")
public void testSubjectValInIntWhenHasLocalVariableSlot() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/when/subjectValInIntWhenHasLocalVariableSlot.kt");
}
+ @Test
@TestMetadata("subjectValInStringWhenHasLocalVariableSlot.kt")
public void testSubjectValInStringWhenHasLocalVariableSlot() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/when/subjectValInStringWhenHasLocalVariableSlot.kt");
}
+ @Test
@TestMetadata("switchOptimizationDuplicates.kt")
public void testSwitchOptimizationDuplicates() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/when/switchOptimizationDuplicates.kt");
}
+ @Test
@TestMetadata("tableSwitch.kt")
public void testTableSwitch() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/when/tableSwitch.kt");
}
+ @Test
@TestMetadata("tableSwitchWithSubjectVal.kt")
public void testTableSwitchWithSubjectVal() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/when/tableSwitchWithSubjectVal.kt");
}
+ @Test
@TestMetadata("whenNull.kt")
public void testWhenNull() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/when/whenNull.kt");
}
+ @Test
@TestMetadata("whenZero.kt")
public void testWhenZero() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/when/whenZero.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/whenEnumOptimization")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class WhenEnumOptimization extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class WhenEnumOptimization extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInWhenEnumOptimization() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/whenEnumOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("bigEnum.kt")
public void testBigEnum() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/whenEnumOptimization/bigEnum.kt");
}
+ @Test
@TestMetadata("differentEnumClasses.kt")
public void testDifferentEnumClasses() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/whenEnumOptimization/differentEnumClasses.kt");
}
+ @Test
@TestMetadata("differentEnumClasses2.kt")
public void testDifferentEnumClasses2() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/whenEnumOptimization/differentEnumClasses2.kt");
}
+ @Test
@TestMetadata("duplicatingItems.kt")
public void testDuplicatingItems() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/whenEnumOptimization/duplicatingItems.kt");
}
+ @Test
@TestMetadata("expression.kt")
public void testExpression() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/whenEnumOptimization/expression.kt");
}
+ @Test
@TestMetadata("functionLiteralInTopLevel.kt")
public void testFunctionLiteralInTopLevel() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/whenEnumOptimization/functionLiteralInTopLevel.kt");
}
+ @Test
@TestMetadata("importedEnumEntry.kt")
public void testImportedEnumEntry() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/whenEnumOptimization/importedEnumEntry.kt");
}
+ @Test
@TestMetadata("kt14597_full.kt")
public void testKt14597_full() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/whenEnumOptimization/kt14597_full.kt");
}
+ @Test
@TestMetadata("kt14802.kt")
public void testKt14802() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/whenEnumOptimization/kt14802.kt");
}
+ @Test
@TestMetadata("manyWhensWithinClass.kt")
public void testManyWhensWithinClass() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/whenEnumOptimization/manyWhensWithinClass.kt");
}
+ @Test
@TestMetadata("nonConstantEnum.kt")
public void testNonConstantEnum() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/whenEnumOptimization/nonConstantEnum.kt");
}
+ @Test
@TestMetadata("nullability.kt")
public void testNullability() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/whenEnumOptimization/nullability.kt");
}
+ @Test
@TestMetadata("subjectAny.kt")
public void testSubjectAny() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/whenEnumOptimization/subjectAny.kt");
}
+ @Test
@TestMetadata("withoutElse.kt")
public void testWithoutElse() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/whenEnumOptimization/withoutElse.kt");
}
}
+ @Nested
@TestMetadata("compiler/testData/codegen/bytecodeText/whenStringOptimization")
@TestDataPath("$PROJECT_ROOT")
- @RunWith(JUnit3RunnerWithInners.class)
- public static class WhenStringOptimization extends AbstractFirBytecodeTextTest {
- private void runTest(String testDataFilePath) throws Exception {
- KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
- }
-
+ public class WhenStringOptimization extends AbstractFirBytecodeTextTest {
+ @Test
public void testAllFilesPresentInWhenStringOptimization() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/bytecodeText/whenStringOptimization"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
+ @Test
@TestMetadata("denseHashCode.kt")
public void testDenseHashCode() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/whenStringOptimization/denseHashCode.kt");
}
+ @Test
@TestMetadata("duplicatingItems.kt")
public void testDuplicatingItems() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/whenStringOptimization/duplicatingItems.kt");
}
+ @Test
@TestMetadata("duplicatingItemsSameHashCodeFewBranches.kt")
public void testDuplicatingItemsSameHashCodeFewBranches() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/whenStringOptimization/duplicatingItemsSameHashCodeFewBranches.kt");
}
+ @Test
@TestMetadata("duplicatingItemsSameHashCodeMoreBranches.kt")
public void testDuplicatingItemsSameHashCodeMoreBranches() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/whenStringOptimization/duplicatingItemsSameHashCodeMoreBranches.kt");
}
+ @Test
@TestMetadata("expression.kt")
public void testExpression() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/whenStringOptimization/expression.kt");
}
+ @Test
@TestMetadata("inlineStringConstInsideWhen.kt")
public void testInlineStringConstInsideWhen() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/whenStringOptimization/inlineStringConstInsideWhen.kt");
}
+ @Test
@TestMetadata("nonInlinedConst.kt")
public void testNonInlinedConst() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/whenStringOptimization/nonInlinedConst.kt");
}
+ @Test
@TestMetadata("nullability.kt")
public void testNullability() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/whenStringOptimization/nullability.kt");
}
+ @Test
@TestMetadata("sameHashCode.kt")
public void testSameHashCode() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/whenStringOptimization/sameHashCode.kt");
}
+ @Test
@TestMetadata("statement.kt")
public void testStatement() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/whenStringOptimization/statement.kt");
diff --git a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/ir/Fir2IrTextTestGenerated.java b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/ir/Fir2IrTextTestGenerated.java
index 7271c45b46c..dbaaff4546e 100644
--- a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/ir/Fir2IrTextTestGenerated.java
+++ b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/ir/Fir2IrTextTestGenerated.java
@@ -2140,12 +2140,24 @@ public class Fir2IrTextTestGenerated extends AbstractFir2IrTextTest {
runTest("compiler/testData/ir/irText/firProblems/InnerClassInAnonymous.kt");
}
+ @Test
+ @TestMetadata("JCTree.kt")
+ public void testJCTree() throws Exception {
+ runTest("compiler/testData/ir/irText/firProblems/JCTree.kt");
+ }
+
@Test
@TestMetadata("kt43342.kt")
public void testKt43342() throws Exception {
runTest("compiler/testData/ir/irText/firProblems/kt43342.kt");
}
+ @Test
+ @TestMetadata("Modality.kt")
+ public void testModality() throws Exception {
+ runTest("compiler/testData/ir/irText/firProblems/Modality.kt");
+ }
+
@Test
@TestMetadata("MultiList.kt")
public void testMultiList() throws Exception {
diff --git a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirDeclarationCheckerUtils.kt b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirDeclarationCheckerUtils.kt
index 13a4196d6e3..79ca69ecef9 100644
--- a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirDeclarationCheckerUtils.kt
+++ b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirDeclarationCheckerUtils.kt
@@ -5,10 +5,120 @@
package org.jetbrains.kotlin.fir.analysis.checkers.declaration
+import org.jetbrains.kotlin.descriptors.Visibilities
+import org.jetbrains.kotlin.fir.FirSourceElement
import org.jetbrains.kotlin.fir.analysis.checkers.context.CheckerContext
-import org.jetbrains.kotlin.fir.declarations.FirRegularClass
-import org.jetbrains.kotlin.fir.declarations.isExpect
+import org.jetbrains.kotlin.fir.analysis.checkers.extended.report
+import org.jetbrains.kotlin.fir.analysis.diagnostics.DiagnosticReporter
+import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors
+import org.jetbrains.kotlin.fir.declarations.*
+import org.jetbrains.kotlin.fir.declarations.impl.FirDefaultPropertyAccessor
+import org.jetbrains.kotlin.fir.types.FirImplicitTypeRef
+import org.jetbrains.kotlin.lexer.KtTokens
// Note that the class that contains the currently visiting declaration will *not* be in the context's containing declarations *yet*.
internal fun isInsideExpectClass(containingDeclaration: FirRegularClass, context: CheckerContext): Boolean =
containingDeclaration.isExpect || context.containingDeclarations.asReversed().any { it is FirRegularClass && it.isExpect }
+
+// TODO: check class too
+internal fun checkExpectDeclarationVisibilityAndBody(
+ declaration: FirMemberDeclaration,
+ source: FirSourceElement,
+ modifierList: FirModifierList?,
+ reporter: DiagnosticReporter
+) {
+ if (declaration.isExpect || modifierList?.modifiers?.any { it.token == KtTokens.EXPECT_KEYWORD } == true) {
+ if (Visibilities.isPrivate(declaration.visibility)) {
+ reporter.report(source, FirErrors.EXPECTED_PRIVATE_DECLARATION)
+ }
+ if (declaration is FirSimpleFunction && declaration.hasBody) {
+ reporter.report(source, FirErrors.EXPECTED_DECLARATION_WITH_BODY)
+ }
+ }
+}
+
+internal fun checkPropertyInitializer(
+ containingClass: FirRegularClass?,
+ property: FirProperty,
+ reporter: DiagnosticReporter
+) {
+ val inInterface = containingClass?.isInterface == true
+ // If multiple (potentially conflicting) modality modifiers are specified, not all modifiers are recorded at `status`.
+ // So, our source of truth should be the full modifier list retrieved from the source.
+ val modifierList = with(FirModifierList) { property.source.getModifierList() }
+ val hasAbstractModifier = modifierList?.modifiers?.any { it.token == KtTokens.ABSTRACT_KEYWORD } == true
+ val isAbstract = property.isAbstract || hasAbstractModifier
+ if (isAbstract) {
+ if (property.initializer == null && property.delegate == null && property.returnTypeRef is FirImplicitTypeRef) {
+ property.source?.let {
+ reporter.report(it, FirErrors.PROPERTY_WITH_NO_TYPE_NO_INITIALIZER)
+ }
+ }
+ return
+ }
+
+ // TODO: not exactly...
+ val backingFieldRequired = property.hasBackingField
+ if (inInterface && backingFieldRequired && property.hasAccessorImplementation) {
+ property.source?.let {
+ // reporter.report(it, FirErrors.BACKING_FIELD_IN_INTERFACE)
+ }
+ }
+
+ val isExpect = property.isExpect || modifierList?.modifiers?.any { it.token == KtTokens.EXPECT_KEYWORD } == true
+
+ when {
+ property.initializer != null -> {
+ property.initializer?.source?.let {
+ when {
+ inInterface -> {
+ reporter.report(it, FirErrors.PROPERTY_INITIALIZER_IN_INTERFACE)
+ }
+ isExpect -> {
+ reporter.report(it, FirErrors.EXPECTED_PROPERTY_INITIALIZER)
+ }
+ !backingFieldRequired -> {
+ // reporter.report(it, FirErrors.PROPERTY_INITIALIZER_NO_BACKING_FIELD)
+ }
+ property.receiverTypeRef != null -> {
+ // reporter.report(it, FirErrors.EXTENSION_PROPERTY_WITH_BACKING_FIELD)
+ }
+ }
+ }
+ }
+ property.delegate != null -> {
+ property.delegate?.source?.let {
+ when {
+ inInterface -> {
+ reporter.report(it, FirErrors.DELEGATED_PROPERTY_IN_INTERFACE)
+ }
+ isExpect -> {
+ reporter.report(it, FirErrors.EXPECTED_DELEGATED_PROPERTY)
+ }
+ }
+ }
+ }
+ else -> {
+ val isExternal = property.isExternal || modifierList?.modifiers?.any { it.token == KtTokens.EXTERNAL_KEYWORD } == true
+ // TODO: need to analyze class anonymous initializer to see if the property is initialized there.
+ val isUninitialized = false
+ if (backingFieldRequired && !inInterface && !property.isLateInit && !isExpect && isUninitialized && !isExternal) {
+ property.source?.let {
+ if (property.receiverTypeRef != null && !property.hasAccessorImplementation) {
+ // reporter.report(it, FirErrors.EXTENSION_PROPERTY_MUST_HAVE_ACCESSORS_OR_BE_ABSTRACT)
+ } else {
+ if (containingClass != null || property.hasAccessorImplementation) {
+ // reporter.report(it, FirErrors.MUST_BE_INITIALIZED)
+ } else {
+ // reporter.report(it, FirErrors.MUST_BE_INITIALIZED_OR_BE_ABSTRACT)
+ }
+ }
+ }
+ }
+ }
+ }
+}
+
+private val FirProperty.hasAccessorImplementation: Boolean
+ get() = (getter !is FirDefaultPropertyAccessor && getter?.hasBody == true) ||
+ (setter !is FirDefaultPropertyAccessor && setter?.hasBody == true)
diff --git a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirDestructuringDeclarationChecker.kt b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirDestructuringDeclarationChecker.kt
index a16123ea4cd..179cd7a2ff4 100644
--- a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirDestructuringDeclarationChecker.kt
+++ b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirDestructuringDeclarationChecker.kt
@@ -12,6 +12,7 @@ import org.jetbrains.kotlin.fir.analysis.checkers.extended.report
import org.jetbrains.kotlin.fir.analysis.diagnostics.DiagnosticReporter
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors
import org.jetbrains.kotlin.fir.declarations.FirProperty
+import org.jetbrains.kotlin.fir.declarations.FirSimpleFunction
import org.jetbrains.kotlin.fir.declarations.FirValueParameter
import org.jetbrains.kotlin.fir.declarations.FirVariable
import org.jetbrains.kotlin.fir.diagnostics.ConeSimpleDiagnostic
@@ -20,8 +21,12 @@ import org.jetbrains.kotlin.fir.expressions.*
import org.jetbrains.kotlin.fir.references.FirErrorNamedReference
import org.jetbrains.kotlin.fir.references.FirResolvedNamedReference
import org.jetbrains.kotlin.fir.resolve.diagnostics.ConeAmbiguityError
+import org.jetbrains.kotlin.fir.resolve.diagnostics.ConeInapplicableCandidateError
import org.jetbrains.kotlin.fir.resolve.diagnostics.ConeUnresolvedNameError
import org.jetbrains.kotlin.fir.symbols.impl.FirVariableSymbol
+import org.jetbrains.kotlin.fir.types.ConeKotlinType
+import org.jetbrains.kotlin.fir.types.coneTypeSafe
+import org.jetbrains.kotlin.fir.types.isNullable
object FirDestructuringDeclarationChecker : FirPropertyChecker() {
override fun check(declaration: FirProperty, context: CheckerContext, reporter: DiagnosticReporter) {
@@ -65,8 +70,8 @@ object FirDestructuringDeclarationChecker : FirPropertyChecker() {
val originalDestructuringDeclarationOrInitializerSource = originalDestructuringDeclarationOrInitializer.source ?: return
val originalDestructuringDeclarationType =
when (originalDestructuringDeclarationOrInitializer) {
- is FirVariable<*> -> originalDestructuringDeclarationOrInitializer.returnTypeRef
- is FirExpression -> originalDestructuringDeclarationOrInitializer.typeRef
+ is FirVariable<*> -> originalDestructuringDeclarationOrInitializer.returnTypeRef.coneTypeSafe()
+ is FirExpression -> originalDestructuringDeclarationOrInitializer.typeRef.coneTypeSafe()
else -> null
} ?: return
@@ -89,7 +94,16 @@ object FirDestructuringDeclarationChecker : FirPropertyChecker() {
)
)
}
- // TODO: COMPONENT_FUNCTION_ON_NULLABLE
+ is ConeInapplicableCandidateError -> {
+ if (originalDestructuringDeclarationType.isNullable) {
+ reporter.report(
+ FirErrors.COMPONENT_FUNCTION_ON_NULLABLE.on(
+ originalDestructuringDeclarationOrInitializerSource,
+ (diagnostic.candidateSymbol.fir as FirSimpleFunction).name
+ )
+ )
+ }
+ }
// TODO: COMPONENT_FUNCTION_RETURN_TYPE_MISMATCH
}
}
diff --git a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirMemberFunctionChecker.kt b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirMemberFunctionChecker.kt
index 7046416221f..abf01537ef5 100644
--- a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirMemberFunctionChecker.kt
+++ b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirMemberFunctionChecker.kt
@@ -60,6 +60,8 @@ object FirMemberFunctionChecker : FirRegularClassChecker() {
reporter.report(FirErrors.NON_ABSTRACT_FUNCTION_WITH_NO_BODY.on(source, function))
}
}
+
+ checkExpectDeclarationVisibilityAndBody(function, source, modifierList, reporter)
}
}
diff --git a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirMemberPropertyChecker.kt b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirMemberPropertyChecker.kt
index db2bc0b6df7..bf3db33af6c 100644
--- a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirMemberPropertyChecker.kt
+++ b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirMemberPropertyChecker.kt
@@ -6,6 +6,7 @@
package org.jetbrains.kotlin.fir.analysis.checkers.declaration
import org.jetbrains.kotlin.descriptors.Visibilities
+import org.jetbrains.kotlin.fir.FirFakeSourceElementKind
import org.jetbrains.kotlin.fir.FirSourceElement
import org.jetbrains.kotlin.fir.analysis.checkers.context.CheckerContext
import org.jetbrains.kotlin.fir.analysis.checkers.extended.report
@@ -15,7 +16,6 @@ import org.jetbrains.kotlin.fir.declarations.*
import org.jetbrains.kotlin.fir.declarations.impl.FirDefaultPropertyAccessor
import org.jetbrains.kotlin.fir.expressions.FirExpression
import org.jetbrains.kotlin.fir.symbols.impl.FirPropertyAccessorSymbol
-import org.jetbrains.kotlin.fir.types.FirImplicitTypeRef
import org.jetbrains.kotlin.lexer.KtTokens
// See old FE's [DeclarationsChecker]
@@ -34,6 +34,8 @@ object FirMemberPropertyChecker : FirRegularClassChecker() {
context: CheckerContext,
reporter: DiagnosticReporter
) {
+ val source = property.source ?: return
+ if (source.kind is FirFakeSourceElementKind) return
// If multiple (potentially conflicting) modality modifiers are specified, not all modifiers are recorded at `status`.
// So, our source of truth should be the full modifier list retrieved from the source.
val modifierList = with(FirModifierList) { property.source.getModifierList() }
@@ -56,18 +58,14 @@ object FirMemberPropertyChecker : FirRegularClassChecker() {
return
}
}
-
- if (property.delegate != null) {
- property.delegate!!.source?.let {
- if (containingDeclaration.isInterface) {
- reporter.report(it, FirErrors.DELEGATED_PROPERTY_IN_INTERFACE)
- } else {
- reporter.report(it, FirErrors.ABSTRACT_DELEGATED_PROPERTY)
- }
- }
+ property.initializer?.source?.let {
+ reporter.report(it, FirErrors.ABSTRACT_PROPERTY_WITH_INITIALIZER)
+ }
+ property.delegate?.source?.let {
+ reporter.report(it, FirErrors.ABSTRACT_DELEGATED_PROPERTY)
}
- checkAccessor(property.getter, property.delegate) { src, symbol ->
+ checkAccessor(property.getter, property.delegate) { src, _ ->
reporter.report(src, FirErrors.ABSTRACT_PROPERTY_WITH_GETTER)
}
checkAccessor(property.setter, property.delegate) { src, symbol ->
@@ -79,7 +77,7 @@ object FirMemberPropertyChecker : FirRegularClassChecker() {
}
}
- checkPropertyInitializer(containingDeclaration, property, isAbstract, reporter)
+ checkPropertyInitializer(containingDeclaration, property, reporter)
val hasOpenModifier = modifierList?.modifiers?.any { it.token == KtTokens.OPEN_KEYWORD } == true
if (hasOpenModifier &&
@@ -100,28 +98,8 @@ object FirMemberPropertyChecker : FirRegularClassChecker() {
}
}
}
- }
- private fun checkPropertyInitializer(
- containingDeclaration: FirRegularClass,
- property: FirProperty,
- propertyIsAbstract: Boolean,
- reporter: DiagnosticReporter
- ) {
- property.initializer?.source?.let {
- if (propertyIsAbstract) {
- reporter.report(it, FirErrors.ABSTRACT_PROPERTY_WITH_INITIALIZER)
- } else if (containingDeclaration.isInterface) {
- reporter.report(it, FirErrors.PROPERTY_INITIALIZER_IN_INTERFACE)
- }
- }
- if (propertyIsAbstract) {
- if (property.initializer == null && property.delegate == null && property.returnTypeRef is FirImplicitTypeRef) {
- property.source?.let {
- reporter.report(it, FirErrors.PROPERTY_WITH_NO_TYPE_NO_INITIALIZER)
- }
- }
- }
+ checkExpectDeclarationVisibilityAndBody(property, source, modifierList, reporter)
}
private fun checkAccessor(
@@ -135,5 +113,4 @@ object FirMemberPropertyChecker : FirRegularClassChecker() {
}
}
}
-
}
diff --git a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirTopLevelFunctionChecker.kt b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirTopLevelFunctionChecker.kt
new file mode 100644
index 00000000000..67be9cc6bed
--- /dev/null
+++ b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirTopLevelFunctionChecker.kt
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
+ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
+ */
+
+package org.jetbrains.kotlin.fir.analysis.checkers.declaration
+
+import org.jetbrains.kotlin.fir.FirFakeSourceElementKind
+import org.jetbrains.kotlin.fir.analysis.checkers.context.CheckerContext
+import org.jetbrains.kotlin.fir.analysis.diagnostics.DiagnosticReporter
+import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors
+import org.jetbrains.kotlin.fir.declarations.*
+import org.jetbrains.kotlin.lexer.KtTokens
+
+// See old FE's [DeclarationsChecker]
+object FirTopLevelFunctionChecker : FirFileChecker() {
+ override fun check(declaration: FirFile, context: CheckerContext, reporter: DiagnosticReporter) {
+ for (topLevelDeclaration in declaration.declarations) {
+ if (topLevelDeclaration is FirSimpleFunction) {
+ checkFunction(topLevelDeclaration, reporter)
+ }
+ }
+ }
+
+ private fun checkFunction(function: FirSimpleFunction, reporter: DiagnosticReporter) {
+ val source = function.source ?: return
+ if (source.kind is FirFakeSourceElementKind) return
+ // If multiple (potentially conflicting) modality modifiers are specified, not all modifiers are recorded at `status`.
+ // So, our source of truth should be the full modifier list retrieved from the source.
+ val modifierList = with(FirModifierList) { source.getModifierList() }
+ if (modifierList?.modifiers?.any { it.token == KtTokens.ABSTRACT_KEYWORD } == true) return
+ if (function.isExternal || modifierList?.modifiers?.any { it.token == KtTokens.EXTERNAL_KEYWORD } == true) return
+ val isExpect = function.isExpect || modifierList?.modifiers?.any { it.token == KtTokens.EXPECT_KEYWORD } == true
+ if (!function.hasBody && !isExpect) {
+ reporter.report(FirErrors.NON_MEMBER_FUNCTION_NO_BODY.on(source, function))
+ }
+
+ checkExpectDeclarationVisibilityAndBody(function, source, modifierList, reporter)
+ }
+}
diff --git a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirTopLevelPropertyChecker.kt b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirTopLevelPropertyChecker.kt
new file mode 100644
index 00000000000..1e3d5d99ee1
--- /dev/null
+++ b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirTopLevelPropertyChecker.kt
@@ -0,0 +1,32 @@
+/*
+ * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
+ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
+ */
+
+package org.jetbrains.kotlin.fir.analysis.checkers.declaration
+
+import org.jetbrains.kotlin.fir.FirFakeSourceElementKind
+import org.jetbrains.kotlin.fir.analysis.checkers.context.CheckerContext
+import org.jetbrains.kotlin.fir.analysis.diagnostics.DiagnosticReporter
+import org.jetbrains.kotlin.fir.declarations.FirFile
+import org.jetbrains.kotlin.fir.declarations.FirProperty
+
+// See old FE's [DeclarationsChecker]
+object FirTopLevelPropertyChecker : FirFileChecker() {
+ override fun check(declaration: FirFile, context: CheckerContext, reporter: DiagnosticReporter) {
+ for (topLevelDeclaration in declaration.declarations) {
+ if (topLevelDeclaration is FirProperty) {
+ checkProperty(topLevelDeclaration, reporter)
+ }
+ }
+ }
+
+ private fun checkProperty(property: FirProperty, reporter: DiagnosticReporter) {
+ val source = property.source ?: return
+ if (source.kind is FirFakeSourceElementKind) return
+ val modifierList = with(FirModifierList) { source.getModifierList() }
+
+ checkPropertyInitializer(null, property, reporter)
+ checkExpectDeclarationVisibilityAndBody(property, source, modifierList, reporter)
+ }
+}
diff --git a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/expression/FirAnonymousFunctionChecker.kt b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/expression/FirAnonymousFunctionChecker.kt
new file mode 100644
index 00000000000..6b78f913121
--- /dev/null
+++ b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/expression/FirAnonymousFunctionChecker.kt
@@ -0,0 +1,30 @@
+/*
+ * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
+ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
+ */
+
+package org.jetbrains.kotlin.fir.analysis.checkers.expression
+
+import org.jetbrains.kotlin.fir.analysis.checkers.context.CheckerContext
+import org.jetbrains.kotlin.fir.analysis.checkers.extended.report
+import org.jetbrains.kotlin.fir.analysis.diagnostics.DiagnosticReporter
+import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors
+import org.jetbrains.kotlin.fir.declarations.FirAnonymousFunction
+import org.jetbrains.kotlin.fir.expressions.FirStatement
+
+object FirAnonymousFunctionChecker : FirExpressionChecker() {
+ override fun check(expression: FirStatement, context: CheckerContext, reporter: DiagnosticReporter) {
+ if (expression !is FirAnonymousFunction) {
+ return
+ }
+ for (valueParameter in expression.valueParameters) {
+ val source = valueParameter.source ?: continue
+ if (valueParameter.defaultValue != null) {
+ reporter.report(source, FirErrors.ANONYMOUS_FUNCTION_PARAMETER_WITH_DEFAULT_VALUE)
+ }
+ if (valueParameter.isVararg) {
+ reporter.report(source, FirErrors.USELESS_VARARG_ON_PARAMETER)
+ }
+ }
+ }
+}
diff --git a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/collectors/components/ErrorNodeDiagnosticCollectorComponent.kt b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/collectors/components/ErrorNodeDiagnosticCollectorComponent.kt
index 33a800bf918..6a2e10ea473 100644
--- a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/collectors/components/ErrorNodeDiagnosticCollectorComponent.kt
+++ b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/collectors/components/ErrorNodeDiagnosticCollectorComponent.kt
@@ -10,9 +10,7 @@ import org.jetbrains.kotlin.fir.FirFakeSourceElementKind
import org.jetbrains.kotlin.fir.FirSourceElement
import org.jetbrains.kotlin.fir.analysis.checkers.context.CheckerContext
import org.jetbrains.kotlin.fir.analysis.collectors.AbstractDiagnosticCollector
-import org.jetbrains.kotlin.fir.analysis.diagnostics.DiagnosticReporter
-import org.jetbrains.kotlin.fir.analysis.diagnostics.FirDiagnosticFactory0
-import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors
+import org.jetbrains.kotlin.fir.analysis.diagnostics.*
import org.jetbrains.kotlin.fir.declarations.FirErrorFunction
import org.jetbrains.kotlin.fir.diagnostics.*
import org.jetbrains.kotlin.fir.diagnostics.DiagnosticKind.*
@@ -20,8 +18,9 @@ import org.jetbrains.kotlin.fir.expressions.FirErrorExpression
import org.jetbrains.kotlin.fir.expressions.FirErrorLoop
import org.jetbrains.kotlin.fir.expressions.FirErrorResolvedQualifier
import org.jetbrains.kotlin.fir.references.FirErrorNamedReference
+import org.jetbrains.kotlin.fir.resolve.calls.InapplicableWrongReceiver
import org.jetbrains.kotlin.fir.resolve.diagnostics.*
-import org.jetbrains.kotlin.fir.types.FirErrorTypeRef
+import org.jetbrains.kotlin.fir.types.*
import org.jetbrains.kotlin.resolve.calls.tower.isSuccess
import org.jetbrains.kotlin.utils.addToStdlib.safeAs
@@ -62,7 +61,10 @@ class ErrorNodeDiagnosticCollectorComponent(collector: AbstractDiagnosticCollect
// Will be handled by [FirDestructuringDeclarationChecker]
if (source.elementType == KtNodeTypes.DESTRUCTURING_DECLARATION_ENTRY) {
// TODO: if all diagnostics are supported, we don't need the following check, and will bail out based on element type.
- if (diagnostic is ConeUnresolvedNameError || diagnostic is ConeAmbiguityError) {
+ if (diagnostic is ConeUnresolvedNameError ||
+ diagnostic is ConeAmbiguityError ||
+ diagnostic is ConeInapplicableCandidateError
+ ) {
return
}
}
@@ -72,7 +74,7 @@ class ErrorNodeDiagnosticCollectorComponent(collector: AbstractDiagnosticCollect
is ConeUnresolvedSymbolError -> FirErrors.UNRESOLVED_REFERENCE.on(source, diagnostic.classId.asString())
is ConeUnresolvedNameError -> FirErrors.UNRESOLVED_REFERENCE.on(source, diagnostic.name.asString())
is ConeHiddenCandidateError -> FirErrors.HIDDEN.on(source, diagnostic.candidateSymbol)
- is ConeInapplicableCandidateError -> FirErrors.INAPPLICABLE_CANDIDATE.on(source, diagnostic.candidateSymbol)
+ is ConeInapplicableCandidateError -> mapInapplicableCandidateError(diagnostic, source)
is ConeAmbiguityError -> if (!diagnostic.applicability.isSuccess) {
FirErrors.NONE_APPLICABLE.on(source, diagnostic.candidates)
} else {
@@ -98,6 +100,37 @@ class ErrorNodeDiagnosticCollectorComponent(collector: AbstractDiagnosticCollect
reporter.report(coneDiagnostic)
}
+ private fun ConeKotlinType.isEffectivelyNotNull(): Boolean {
+ return when (this) {
+ is ConeClassLikeType -> !isMarkedNullable
+ is ConeTypeParameterType -> !isMarkedNullable && lookupTag.typeParameterSymbol.fir.bounds.any {
+ it.coneTypeSafe()?.isEffectivelyNotNull() == true
+ }
+ else -> false
+ }
+ }
+
+ private fun mapInapplicableCandidateError(
+ diagnostic: ConeInapplicableCandidateError,
+ source: FirSourceElement,
+ ): FirDiagnostic<*> {
+ // TODO: Need to distinguish SMARTCAST_IMPOSSIBLE
+ // TODO: handle other UNSAFE_* variants: invoke, infix, operator
+ val rootCause = diagnostic.diagnostics.find { it.applicability == diagnostic.applicability }
+ if (rootCause != null &&
+ rootCause is InapplicableWrongReceiver &&
+ rootCause.actualType?.isNullable == true &&
+ (rootCause.expectedType == null || !rootCause.expectedType!!.isMarkedNullable)
+ ) {
+ val expectedType = rootCause.expectedType
+
+ if (expectedType == null || expectedType.isEffectivelyNotNull()) {
+ return FirErrors.UNSAFE_CALL.on(source, rootCause.actualType!!)
+ }
+ }
+ return FirErrors.INAPPLICABLE_CANDIDATE.on(source, diagnostic.candidateSymbol)
+ }
+
private fun ConeSimpleDiagnostic.getFactory(): FirDiagnosticFactory0 {
@Suppress("UNCHECKED_CAST")
return when (kind) {
diff --git a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/collectors/components/ExpressionCheckersDiagnosticComponent.kt b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/collectors/components/ExpressionCheckersDiagnosticComponent.kt
index 4931bac1e11..8f737d23862 100644
--- a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/collectors/components/ExpressionCheckersDiagnosticComponent.kt
+++ b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/collectors/components/ExpressionCheckersDiagnosticComponent.kt
@@ -10,11 +10,16 @@ import org.jetbrains.kotlin.fir.analysis.checkers.expression.FirExpressionChecke
import org.jetbrains.kotlin.fir.analysis.checkersComponent
import org.jetbrains.kotlin.fir.analysis.collectors.AbstractDiagnosticCollector
import org.jetbrains.kotlin.fir.analysis.diagnostics.DiagnosticReporter
+import org.jetbrains.kotlin.fir.declarations.FirAnonymousFunction
import org.jetbrains.kotlin.fir.expressions.*
class ExpressionCheckersDiagnosticComponent(collector: AbstractDiagnosticCollector) : AbstractDiagnosticCollectorComponent(collector) {
private val checkers = session.checkersComponent.expressionCheckers
+ override fun visitAnonymousFunction(anonymousFunction: FirAnonymousFunction, data: CheckerContext) {
+ checkers.basicExpressionCheckers.check(anonymousFunction, data, reporter)
+ }
+
override fun visitTypeOperatorCall(typeOperatorCall: FirTypeOperatorCall, data: CheckerContext) {
checkers.basicExpressionCheckers.check(typeOperatorCall, data, reporter)
}
diff --git a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/diagnostics/FirDefaultErrorMessages.kt b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/diagnostics/FirDefaultErrorMessages.kt
index 3b40846d9ae..4da06ddfe13 100644
--- a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/diagnostics/FirDefaultErrorMessages.kt
+++ b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/diagnostics/FirDefaultErrorMessages.kt
@@ -26,6 +26,7 @@ import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.ABSTRACT_SUPER_CA
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.AMBIGUITY
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.ANNOTATION_CLASS_MEMBER
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.ANNOTATION_PARAMETER_DEFAULT_VALUE_MUST_BE_CONSTANT
+import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.ANONYMOUS_FUNCTION_PARAMETER_WITH_DEFAULT_VALUE
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.ANY_METHOD_IMPLEMENTED_IN_INTERFACE
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.ARRAY_EQUALITY_OPERATOR_CAN_BE_REPLACED_WITH_EQUALS
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.ASSIGNED_VALUE_IS_NEVER_READ
@@ -36,6 +37,7 @@ import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.CAN_BE_VAL
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.CLASS_IN_SUPERTYPE_FOR_ENUM
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.COMPONENT_FUNCTION_AMBIGUITY
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.COMPONENT_FUNCTION_MISSING
+import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.COMPONENT_FUNCTION_ON_NULLABLE
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.CONFLICTING_OVERLOADS
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.CONFLICTING_PROJECTION
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.CONSTRUCTOR_IN_INTERFACE
@@ -49,6 +51,10 @@ import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.DESERIALIZATION_E
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.EMPTY_RANGE
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.ENUM_AS_SUPERTYPE
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.ERROR_FROM_JAVA_RESOLUTION
+import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.EXPECTED_DECLARATION_WITH_BODY
+import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.EXPECTED_DELEGATED_PROPERTY
+import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.EXPECTED_PRIVATE_DECLARATION
+import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.EXPECTED_PROPERTY_INITIALIZER
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.EXPLICIT_DELEGATION_CALL_REQUIRED
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.EXPOSED_FUNCTION_RETURN_TYPE
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.EXPOSED_PARAMETER_TYPE
@@ -79,6 +85,7 @@ import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.MANY_COMPANION_OB
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.MISSING_VAL_ON_ANNOTATION_PARAMETER
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.NONE_APPLICABLE
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.NON_ABSTRACT_FUNCTION_WITH_NO_BODY
+import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.NON_MEMBER_FUNCTION_NO_BODY
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.NON_PRIVATE_CONSTRUCTOR_IN_ENUM
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.NON_PRIVATE_CONSTRUCTOR_IN_SEALED
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.NOT_AN_ANNOTATION_CLASS
@@ -131,8 +138,10 @@ import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.TYPE_PARAMETER_AS
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.UNINITIALIZED_VARIABLE
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.UNRESOLVED_LABEL
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.UNRESOLVED_REFERENCE
+import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.UNSAFE_CALL
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.UNUSED_VARIABLE
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.UPPER_BOUND_VIOLATED
+import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.USELESS_VARARG_ON_PARAMETER
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.VARIABLE_EXPECTED
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.VARIABLE_INITIALIZER_IS_REDUNDANT
import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors.VARIABLE_NEVER_READ
@@ -357,9 +366,16 @@ class FirDefaultErrorMessages : DefaultErrorMessages.Extension {
map.put(ABSTRACT_FUNCTION_WITH_BODY, "A function ''{0}'' with body cannot be abstract", DECLARATION_NAME)
map.put(NON_ABSTRACT_FUNCTION_WITH_NO_BODY, "Function ''{0}'' without a body must be abstract", DECLARATION_NAME)
map.put(PRIVATE_FUNCTION_WITH_NO_BODY, "Function ''{0}'' without body cannot be private", DECLARATION_NAME)
+ map.put(NON_MEMBER_FUNCTION_NO_BODY, "Function ''{0}'' must have a body", DECLARATION_NAME)
map.put(FUNCTION_DECLARATION_WITH_NO_NAME, "Function declaration must have a name")
+ map.put(
+ ANONYMOUS_FUNCTION_PARAMETER_WITH_DEFAULT_VALUE,
+ "An anonymous function is not allowed to specify default values for its parameters"
+ )
+ map.put(USELESS_VARARG_ON_PARAMETER, "Vararg on this parameter is useless")
+
// Properties & accessors
map.put(
ABSTRACT_PROPERTY_IN_NON_ABSTRACT_CLASS,
@@ -384,6 +400,12 @@ class FirDefaultErrorMessages : DefaultErrorMessages.Extension {
map.put(PRIVATE_SETTER_FOR_ABSTRACT_PROPERTY, "Private setters are not allowed for abstract properties")
map.put(PRIVATE_SETTER_FOR_OPEN_PROPERTY, "Private setters are not allowed for open properties")
+ // Multi-platform projects
+ map.put(EXPECTED_DECLARATION_WITH_BODY, "Expected declaration must not have a body")
+ map.put(EXPECTED_PROPERTY_INITIALIZER, "Expected property cannot have an initializer")
+ map.put(EXPECTED_DELEGATED_PROPERTY, "Expected property cannot be delegated")
+ map.put(EXPECTED_PRIVATE_DECLARATION, "Expected declaration cannot be private")
+
// Destructuring declaration
map.put(INITIALIZER_REQUIRED_FOR_DESTRUCTURING_DECLARATION, "Initializer required for destructuring declaration")
map.put(
@@ -398,6 +420,11 @@ class FirDefaultErrorMessages : DefaultErrorMessages.Extension {
TO_STRING,
AMBIGUOUS_CALLS
)
+ map.put(
+ COMPONENT_FUNCTION_ON_NULLABLE,
+ "Not nullable value required to call ''{0}()'' function of destructuring declaration initializer",
+ TO_STRING
+ )
// Control flow diagnostics
map.put(UNINITIALIZED_VARIABLE, "{0} must be initialized before access", PROPERTY_NAME)
@@ -411,6 +438,18 @@ class FirDefaultErrorMessages : DefaultErrorMessages.Extension {
map.put(LEAKED_IN_PLACE_LAMBDA, "Leaked in-place lambda: {2}", SYMBOL)
map.put(FirErrors.WRONG_IMPLIES_CONDITION, "Wrong implies condition")
+ // Nullability
+ map.put(
+ UNSAFE_CALL,
+ "Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type {0}",
+ RENDER_TYPE
+ )
+ //map.put(
+ // UNSAFE_IMPLICIT_INVOKE_CALL,
+ // "Reference has a nullable type ''{0}'', use explicit \"?.invoke\" to make a function-like call instead.",
+ // RENDER_TYPE
+ //)
+
// Extended checkers group
map.put(REDUNDANT_VISIBILITY_MODIFIER, "Redundant visibility modifier")
map.put(REDUNDANT_MODALITY_MODIFIER, "Redundant modality modifier")
diff --git a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/diagnostics/FirDiagnosticRenderers.kt b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/diagnostics/FirDiagnosticRenderers.kt
index a06c569f83b..483a5c42c7e 100644
--- a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/diagnostics/FirDiagnosticRenderers.kt
+++ b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/diagnostics/FirDiagnosticRenderers.kt
@@ -13,7 +13,8 @@ import org.jetbrains.kotlin.fir.symbols.AbstractFirBasedSymbol
import org.jetbrains.kotlin.fir.symbols.impl.FirCallableSymbol
import org.jetbrains.kotlin.fir.symbols.impl.FirClassLikeSymbol
import org.jetbrains.kotlin.fir.symbols.impl.FirPropertySymbol
-import org.jetbrains.kotlin.fir.types.FirTypeRef
+import org.jetbrains.kotlin.fir.types.ConeKotlinType
+import org.jetbrains.kotlin.fir.types.render
object FirDiagnosticRenderers {
val NULLABLE_STRING = Renderer { it ?: "null" }
@@ -58,9 +59,9 @@ object FirDiagnosticRenderers {
name.asString()
}
- val RENDER_TYPE = Renderer { typeRef: FirTypeRef ->
+ val RENDER_TYPE = Renderer { t: ConeKotlinType ->
// TODO: need a way to tune granuality, e.g., without parameter names in functional types.
- typeRef.render()
+ t.render()
}
val AMBIGUOUS_CALLS = Renderer { candidates: Collection> ->
diff --git a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/diagnostics/FirErrors.kt b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/diagnostics/FirErrors.kt
index 6f9c6108c03..83ee92ce381 100644
--- a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/diagnostics/FirErrors.kt
+++ b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/diagnostics/FirErrors.kt
@@ -155,31 +155,51 @@ object FirErrors {
val ABSTRACT_FUNCTION_WITH_BODY by error1(SourceElementPositioningStrategies.MODALITY_MODIFIER)
val NON_ABSTRACT_FUNCTION_WITH_NO_BODY by error1(SourceElementPositioningStrategies.DECLARATION_SIGNATURE)
val PRIVATE_FUNCTION_WITH_NO_BODY by error1(SourceElementPositioningStrategies.VISIBILITY_MODIFIER)
+ val NON_MEMBER_FUNCTION_NO_BODY by error1(SourceElementPositioningStrategies.DECLARATION_SIGNATURE)
val FUNCTION_DECLARATION_WITH_NO_NAME by error0(SourceElementPositioningStrategies.DECLARATION_SIGNATURE)
+ // TODO: val ANONYMOUS_FUNCTION_WITH_NAME by error1(SourceElementPositioningStrategies.DECLARATION_NAME)
+ val ANONYMOUS_FUNCTION_PARAMETER_WITH_DEFAULT_VALUE by error0(SourceElementPositioningStrategies.PARAMETER_DEFAULT_VALUE)
+ val USELESS_VARARG_ON_PARAMETER by warning0()
+
// Properties & accessors
val ABSTRACT_PROPERTY_IN_NON_ABSTRACT_CLASS by error2(SourceElementPositioningStrategies.MODALITY_MODIFIER)
val PRIVATE_PROPERTY_IN_INTERFACE by error0(SourceElementPositioningStrategies.VISIBILITY_MODIFIER)
val ABSTRACT_PROPERTY_WITH_INITIALIZER by error0()
+ // TODO: val MUST_BE_INITIALIZED by error0(SourceElementPositioningStrategies.DECLARATION_SIGNATURE)
+ // TODO: val MUST_BE_INITIALIZED_OR_BE_ABSTRACT by error0(SourceElementPositioningStrategies.DECLARATION_SIGNATURE)
+ // TODO: val EXTENSION_PROPERTY_MUST_HAVE_ACCESSORS_OR_BE_ABSTRACT by error0(SourceElementPositioningStrategies.DECLARATION_SIGNATURE)
+
+ // TODO: val EXTENSION_PROPERTY_WITH_BACKING_FIELD by error0()
+ // TODO: val PROPERTY_INITIALIZER_NO_BACKING_FIELD by error0()
+
val PROPERTY_INITIALIZER_IN_INTERFACE by error0()
val PROPERTY_WITH_NO_TYPE_NO_INITIALIZER by error0(SourceElementPositioningStrategies.DECLARATION_SIGNATURE)
+ // TODO: val BACKING_FIELD_IN_INTERFACE by error0(SourceElementPositioningStrategies.DECLARATION_SIGNATURE)
val ABSTRACT_DELEGATED_PROPERTY by error0()
val DELEGATED_PROPERTY_IN_INTERFACE by error0()
- // TODO: val ACCESSOR_FOR_DELEGATED_PROPERTY by error1()
+ // TODO: val ACCESSOR_FOR_DELEGATED_PROPERTY by error1()
val ABSTRACT_PROPERTY_WITH_GETTER by error0()
val ABSTRACT_PROPERTY_WITH_SETTER by error0()
val PRIVATE_SETTER_FOR_ABSTRACT_PROPERTY by error0()
val PRIVATE_SETTER_FOR_OPEN_PROPERTY by error0()
+ // Multi-platform projects
+ val EXPECTED_DECLARATION_WITH_BODY by error0(SourceElementPositioningStrategies.DECLARATION_SIGNATURE)
+ val EXPECTED_PROPERTY_INITIALIZER by error0()
+ // TODO: need to cover `by` as well as delegate expression
+ val EXPECTED_DELEGATED_PROPERTY by error0()
+ val EXPECTED_PRIVATE_DECLARATION by error0(SourceElementPositioningStrategies.VISIBILITY_MODIFIER)
+
// Destructuring declaration
val INITIALIZER_REQUIRED_FOR_DESTRUCTURING_DECLARATION by error0()
- val COMPONENT_FUNCTION_MISSING by error2()
- val COMPONENT_FUNCTION_AMBIGUITY by error2>>()
- // TODO: val COMPONENT_FUNCTION_ON_NULLABLE by ...
+ val COMPONENT_FUNCTION_MISSING by error2()
+ val COMPONENT_FUNCTION_AMBIGUITY by error2>>()
+ val COMPONENT_FUNCTION_ON_NULLABLE by error1()
// TODO: val COMPONENT_FUNCTION_RETURN_TYPE_MISMATCH by ...
// Control flow diagnostics
@@ -188,6 +208,13 @@ object FirErrors {
val LEAKED_IN_PLACE_LAMBDA by error1>()
val WRONG_IMPLIES_CONDITION by warning0()
+ // Nullability
+ val UNSAFE_CALL by error1(SourceElementPositioningStrategies.DOT_BY_SELECTOR)
+ // TODO: val UNSAFE_IMPLICIT_INVOKE_CALL by error1()
+ // TODO: val UNSAFE_INFIX_CALL by ...
+ // TODO: val UNSAFE_OPERATOR_CALL by ...
+ // TODO: val UNEXPECTED_SAFE_CALL by ...
+
// Extended checkers group
val REDUNDANT_VISIBILITY_MODIFIER by warning0(SourceElementPositioningStrategies.VISIBILITY_MODIFIER)
val REDUNDANT_MODALITY_MODIFIER by warning0(SourceElementPositioningStrategies.MODALITY_MODIFIER)
diff --git a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/diagnostics/LightTreePositioningStrategies.kt b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/diagnostics/LightTreePositioningStrategies.kt
index f288784a41e..676434586c3 100644
--- a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/diagnostics/LightTreePositioningStrategies.kt
+++ b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/diagnostics/LightTreePositioningStrategies.kt
@@ -247,6 +247,50 @@ object LightTreePositioningStrategies {
return markElement(tree.operationReference(node) ?: node, startOffset, endOffset, tree, node)
}
}
+
+ val PARAMETER_DEFAULT_VALUE: LightTreePositioningStrategy = object : LightTreePositioningStrategy() {
+ override fun mark(
+ node: LighterASTNode,
+ startOffset: Int,
+ endOffset: Int,
+ tree: FlyweightCapableTreeStructure
+ ): List {
+ val defaultValueElement = tree.defaultValue(node) ?: node
+ return markElement(defaultValueElement, startOffset, endOffset, tree, node)
+ }
+ }
+
+ val PARAMETER_VARARG_MODIFIER: LightTreePositioningStrategy = object : LightTreePositioningStrategy() {
+ override fun mark(
+ node: LighterASTNode,
+ startOffset: Int,
+ endOffset: Int,
+ tree: FlyweightCapableTreeStructure
+ ): List {
+ val modifier = tree.modifierList(node)?.let { modifierList -> tree.findChildByType(modifierList, KtTokens.VARARG_KEYWORD) }
+ return markElement(modifier ?: node, startOffset, endOffset, tree, node)
+ }
+ }
+
+ val DOT_BY_SELECTOR: LightTreePositioningStrategy = object : LightTreePositioningStrategy() {
+ override fun mark(
+ node: LighterASTNode,
+ startOffset: Int,
+ endOffset: Int,
+ tree: FlyweightCapableTreeStructure
+ ): List {
+ if (node.tokenType != KtNodeTypes.REFERENCE_EXPRESSION && node.tokenType != KtNodeTypes.CALL_EXPRESSION) {
+ // TODO: normally CALL_EXPRESSION should not be here. In PSI we have REFERENCE_EXPRESSION even for x.bar() case
+ // Remove CALL_EXPRESSION from here and repeat code below twice (see PSI counterpart) when fixed
+ return super.mark(node, startOffset, endOffset, tree)
+ }
+ val parentNode = tree.getParent(node) ?: return super.mark(node, startOffset, endOffset, tree)
+ if (parentNode.tokenType == KtNodeTypes.DOT_QUALIFIED_EXPRESSION) {
+ return markElement(tree.dotOperator(parentNode) ?: node, startOffset, endOffset, tree, node)
+ }
+ return super.mark(node, startOffset, endOffset, tree)
+ }
+ }
}
fun FirSourceElement.hasValOrVar(): Boolean =
@@ -261,6 +305,9 @@ fun FirSourceElement.hasPrimaryConstructor(): Boolean =
private fun FlyweightCapableTreeStructure.constructorKeyword(node: LighterASTNode): LighterASTNode? =
findChildByType(node, KtTokens.CONSTRUCTOR_KEYWORD)
+private fun FlyweightCapableTreeStructure.dotOperator(node: LighterASTNode): LighterASTNode? =
+ findChildByType(node, KtTokens.DOT)
+
private fun FlyweightCapableTreeStructure.initKeyword(node: LighterASTNode): LighterASTNode? =
findChildByType(node, KtTokens.INIT_KEYWORD)
@@ -317,6 +364,19 @@ private fun FlyweightCapableTreeStructure.receiverTypeReference(
}
}
+private fun FlyweightCapableTreeStructure.defaultValue(node: LighterASTNode): LighterASTNode? {
+ val childrenRef = Ref>()
+ getChildren(node, childrenRef)
+ // p : T = v
+ val children = childrenRef.get()?.reversed() ?: return null
+ for (child in children) {
+ if (child == null || child.tokenType == KtTokens.WHITE_SPACE) continue
+ if (child.tokenType == KtNodeTypes.TYPE_REFERENCE || child.tokenType == KtTokens.COLON) return null
+ return child
+ }
+ return null
+}
+
fun FlyweightCapableTreeStructure.findChildByType(node: LighterASTNode, type: IElementType): LighterASTNode? {
val childrenRef = Ref>()
getChildren(node, childrenRef)
diff --git a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/diagnostics/SourceElementPositioningStrategies.kt b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/diagnostics/SourceElementPositioningStrategies.kt
index 97d1c6e463e..3ba463eeb9b 100644
--- a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/diagnostics/SourceElementPositioningStrategies.kt
+++ b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/diagnostics/SourceElementPositioningStrategies.kt
@@ -52,4 +52,19 @@ object SourceElementPositioningStrategies {
LightTreePositioningStrategies.OPERATOR,
PositioningStrategies.OPERATOR
)
+
+ val PARAMETER_DEFAULT_VALUE = SourceElementPositioningStrategy(
+ LightTreePositioningStrategies.PARAMETER_DEFAULT_VALUE,
+ PositioningStrategies.PARAMETER_DEFAULT_VALUE
+ )
+
+ val PARAMETER_VARARG_MODIFIER = SourceElementPositioningStrategy(
+ LightTreePositioningStrategies.PARAMETER_VARARG_MODIFIER,
+ PositioningStrategies.PARAMETER_VARARG_MODIFIER
+ )
+
+ val DOT_BY_SELECTOR = SourceElementPositioningStrategy(
+ LightTreePositioningStrategies.DOT_BY_SELECTOR,
+ PositioningStrategies.DOT_BY_SELECTOR
+ )
}
\ No newline at end of file
diff --git a/compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/checkers/CommonDeclarationCheckers.kt b/compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/checkers/CommonDeclarationCheckers.kt
index 099f3ffbf0c..e02afe01990 100644
--- a/compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/checkers/CommonDeclarationCheckers.kt
+++ b/compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/checkers/CommonDeclarationCheckers.kt
@@ -59,6 +59,11 @@ object CommonDeclarationCheckers : DeclarationCheckers() {
FirConstructorAllowedChecker,
)
+ override val fileCheckers: Set = setOf(
+ FirTopLevelFunctionChecker,
+ FirTopLevelPropertyChecker,
+ )
+
override val controlFlowAnalyserCheckers: Set = setOf(
FirCallsEffectAnalyzer,
FirReturnsImpliesAnalyzer,
diff --git a/compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/checkers/CommonExpressionCheckers.kt b/compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/checkers/CommonExpressionCheckers.kt
index bde2a98848a..f93b89239f3 100644
--- a/compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/checkers/CommonExpressionCheckers.kt
+++ b/compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/checkers/CommonExpressionCheckers.kt
@@ -8,6 +8,10 @@ package org.jetbrains.kotlin.fir.checkers
import org.jetbrains.kotlin.fir.analysis.checkers.expression.*
object CommonExpressionCheckers : ExpressionCheckers() {
+ override val basicExpressionCheckers: Set = setOf(
+ FirAnonymousFunctionChecker,
+ )
+
override val qualifiedAccessCheckers: Set = setOf(
FirSuperNotAvailableChecker,
FirNotASupertypeChecker,
diff --git a/compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/session/ComponentsContainers.kt b/compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/session/ComponentsContainers.kt
index b4ab7cfed61..104321cbf0f 100644
--- a/compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/session/ComponentsContainers.kt
+++ b/compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/session/ComponentsContainers.kt
@@ -8,6 +8,8 @@ package org.jetbrains.kotlin.fir.session
import org.jetbrains.kotlin.config.LanguageVersionSettings
import org.jetbrains.kotlin.fir.*
import org.jetbrains.kotlin.fir.analysis.CheckersComponent
+import org.jetbrains.kotlin.fir.caches.FirCachesFactory
+import org.jetbrains.kotlin.fir.caches.FirThreadUnsafeCachesFactory
import org.jetbrains.kotlin.fir.extensions.FirExtensionService
import org.jetbrains.kotlin.fir.extensions.FirPredicateBasedProvider
import org.jetbrains.kotlin.fir.extensions.FirRegisteredPluginAnnotations
@@ -40,6 +42,12 @@ fun FirSession.registerCommonComponents(languageVersionSettings: LanguageVersion
register(InferenceComponents::class, InferenceComponents(this))
}
+@OptIn(SessionConfiguration::class)
+fun FirSession.registerThreadUnsafeCaches() {
+ register(FirCachesFactory::class, FirThreadUnsafeCachesFactory)
+}
+
+
// -------------------------- Resolve components --------------------------
/*
diff --git a/compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/session/FirSessionFactory.kt b/compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/session/FirSessionFactory.kt
index 14e399385b7..be690cedefd 100644
--- a/compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/session/FirSessionFactory.kt
+++ b/compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/session/FirSessionFactory.kt
@@ -19,6 +19,8 @@ import org.jetbrains.kotlin.fir.analysis.checkers.declaration.DeclarationChecker
import org.jetbrains.kotlin.fir.analysis.checkers.expression.ExpressionCheckers
import org.jetbrains.kotlin.fir.analysis.checkersComponent
import org.jetbrains.kotlin.fir.analysis.extensions.additionalCheckers
+import org.jetbrains.kotlin.fir.caches.FirCachesFactory
+import org.jetbrains.kotlin.fir.caches.FirThreadUnsafeCachesFactory
import org.jetbrains.kotlin.fir.checkers.registerCommonCheckers
import org.jetbrains.kotlin.fir.extensions.BunchOfRegisteredExtensions
import org.jetbrains.kotlin.fir.extensions.extensionService
@@ -68,6 +70,7 @@ object FirSessionFactory {
init: FirSessionConfigurator.() -> Unit = {}
): FirJavaModuleBasedSession {
return FirJavaModuleBasedSession(moduleInfo, sessionProvider).apply {
+ registerThreadUnsafeCaches()
registerCommonComponents(languageVersionSettings)
registerResolveComponents()
registerJavaSpecificResolveComponents()
@@ -113,6 +116,7 @@ object FirSessionFactory {
val kotlinClassFinder = VirtualFileFinderFactory.getInstance(project).create(scope)
return FirLibrarySession(moduleInfo, sessionProvider).apply {
+ registerThreadUnsafeCaches()
registerCommonComponents(languageVersionSettings)
val javaSymbolProvider = JavaSymbolProvider(this, project, scope)
diff --git a/compiler/fir/fir-serialization/src/org/jetbrains/kotlin/fir/serialization/FirElementSerializer.kt b/compiler/fir/fir-serialization/src/org/jetbrains/kotlin/fir/serialization/FirElementSerializer.kt
index 2787ce4a395..a9e641b8747 100644
--- a/compiler/fir/fir-serialization/src/org/jetbrains/kotlin/fir/serialization/FirElementSerializer.kt
+++ b/compiler/fir/fir-serialization/src/org/jetbrains/kotlin/fir/serialization/FirElementSerializer.kt
@@ -714,11 +714,12 @@ class FirElementSerializer private constructor(
private fun getAccessorFlags(accessor: FirPropertyAccessor, property: FirProperty): Int {
// [FirDefaultPropertyAccessor]---a property accessor without body---can still hold other information, such as annotations,
// user-contributed visibility, and modifiers, such as `external` or `inline`.
+ val nonSourceAnnotations = accessor.nonSourceAnnotations(session)
val isDefault = accessor is FirDefaultPropertyAccessor &&
- accessor.annotations.isEmpty() && accessor.visibility == property.visibility &&
+ nonSourceAnnotations.isEmpty() && accessor.visibility == property.visibility &&
!accessor.isExternal && !accessor.isInline
return Flags.getAccessorFlags(
- accessor.nonSourceAnnotations(session).isNotEmpty(),
+ nonSourceAnnotations.isNotEmpty(),
ProtoEnumFlags.visibility(normalizeVisibility(accessor)),
ProtoEnumFlags.modality(accessor.modality!!),
!isDefault,
diff --git a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/ConversionUtils.kt b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/ConversionUtils.kt
index ed271c778d4..e7ee5d59922 100644
--- a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/ConversionUtils.kt
+++ b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/ConversionUtils.kt
@@ -232,7 +232,19 @@ internal tailrec fun FirCallableSymbol<*>.unwrapCallRepresentative(root: FirCall
val originalForTypeAlias = fir.originalConstructorIfTypeAlias
if (originalForTypeAlias != null) return originalForTypeAlias.symbol.unwrapCallRepresentative(this)
}
- if (fir.isIntersectionOverride) return this
+
+ if (fir.isIntersectionOverride) {
+ // We've got IR declarations (fake overrides) for intersection overrides in classes, but not for intersection types
+ // interface A { fun foo() }
+ // interface B { fun foo() }
+ // interface C : A, B // for C.foo we've got an IR fake override
+ // for {A & B} we don't have such an IR declaration, so we're unwrapping it
+ if (fir is FirCallableMemberDeclaration && fir.dispatchReceiverType is ConeIntersectionType) {
+ return fir.baseForIntersectionOverride!!.symbol.unwrapCallRepresentative(this)
+ }
+
+ return this
+ }
val overriddenSymbol = fir.originalForSubstitutionOverride?.takeIf {
it.containingClass() == root.containingClass()
diff --git a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrDeclarationStorage.kt b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrDeclarationStorage.kt
index ddbe46d2c9b..d1c4e41dcb1 100644
--- a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrDeclarationStorage.kt
+++ b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrDeclarationStorage.kt
@@ -1026,7 +1026,7 @@ class Fir2IrDeclarationStorage(
val irFunction = fir.convertWithOffsets { startOffset, endOffset ->
symbolTable.declareSimpleFunction(signature, { symbol }) {
val isFakeOverride =
- firFunctionSymbol is FirNamedFunctionSymbol && fir.isSubstitutionOverride &&
+ firFunctionSymbol is FirNamedFunctionSymbol && fir.isSubstitutionOrIntersectionOverride &&
firFunctionSymbol.dispatchReceiverClassOrNull() !=
firFunctionSymbol.originalForSubstitutionOverride?.dispatchReceiverClassOrNull()
Fir2IrLazySimpleFunction(
@@ -1065,7 +1065,7 @@ class Fir2IrDeclarationStorage(
val irProperty = fir.convertWithOffsets { startOffset, endOffset ->
symbolTable.declareProperty(signature, { symbol }) {
val isFakeOverride =
- fir.isSubstitutionOverride &&
+ fir.isSubstitutionOrIntersectionOverride &&
firPropertySymbol.dispatchReceiverClassOrNull() !=
firPropertySymbol.originalForSubstitutionOverride?.dispatchReceiverClassOrNull()
Fir2IrLazyProperty(
diff --git a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrImplicitCastInserter.kt b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrImplicitCastInserter.kt
index 860d2ae6d02..f72e42869ea 100644
--- a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrImplicitCastInserter.kt
+++ b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrImplicitCastInserter.kt
@@ -6,9 +6,9 @@
package org.jetbrains.kotlin.fir.backend
import org.jetbrains.kotlin.fir.FirElement
-import org.jetbrains.kotlin.fir.baseForIntersectionOverride
import org.jetbrains.kotlin.fir.declarations.FirAnonymousFunction
import org.jetbrains.kotlin.fir.declarations.FirAnonymousObject
+import org.jetbrains.kotlin.fir.declarations.FirCallableMemberDeclaration
import org.jetbrains.kotlin.fir.declarations.FirTypeAlias
import org.jetbrains.kotlin.fir.expressions.*
import org.jetbrains.kotlin.fir.expressions.impl.FirStubStatement
@@ -16,25 +16,21 @@ import org.jetbrains.kotlin.fir.expressions.impl.FirUnitExpression
import org.jetbrains.kotlin.fir.references.FirReference
import org.jetbrains.kotlin.fir.references.FirResolvedNamedReference
import org.jetbrains.kotlin.fir.render
-import org.jetbrains.kotlin.fir.resolve.scope
-import org.jetbrains.kotlin.fir.scopes.FakeOverrideTypeCalculator
-import org.jetbrains.kotlin.fir.symbols.AbstractFirBasedSymbol
-import org.jetbrains.kotlin.fir.symbols.impl.FirAnonymousFunctionSymbol
import org.jetbrains.kotlin.fir.symbols.impl.FirCallableSymbol
-import org.jetbrains.kotlin.fir.symbols.impl.FirFunctionSymbol
-import org.jetbrains.kotlin.fir.symbols.impl.FirPropertySymbol
+import org.jetbrains.kotlin.fir.typeContext
import org.jetbrains.kotlin.fir.types.*
import org.jetbrains.kotlin.fir.visitors.FirDefaultVisitor
import org.jetbrains.kotlin.ir.IrElement
import org.jetbrains.kotlin.ir.expressions.*
import org.jetbrains.kotlin.ir.expressions.impl.IrTypeOperatorCallImpl
import org.jetbrains.kotlin.ir.types.IrType
+import org.jetbrains.kotlin.ir.types.makeNotNull
import org.jetbrains.kotlin.ir.types.removeAnnotations
import org.jetbrains.kotlin.ir.types.withHasQuestionMark
import org.jetbrains.kotlin.ir.util.classId
import org.jetbrains.kotlin.ir.util.coerceToUnitIfNeeded
import org.jetbrains.kotlin.ir.util.parentAsClass
-import org.jetbrains.kotlin.name.Name
+import org.jetbrains.kotlin.types.AbstractTypeChecker
class Fir2IrImplicitCastInserter(
private val components: Fir2IrComponents,
@@ -285,58 +281,29 @@ class Fir2IrImplicitCastInserter(
return implicitCastOrExpression(data as IrExpression, expressionWithSmartcast.typeRef)
}
- internal fun convertToImplicitCastExpression(
- expressionWithSmartcast: FirExpressionWithSmartcast, calleeReference: FirReference
+ internal fun implicitCastFromDispatchReceiver(
+ original: IrExpression,
+ originalTypeRef: FirTypeRef,
+ calleeReference: FirReference,
): IrExpression {
- val originalExpression = expressionWithSmartcast.originalExpression
- val value = visitor.convertToIrExpression(originalExpression)
- val castTypeRef = expressionWithSmartcast.typeRef
- if (calleeReference !is FirResolvedNamedReference) {
- return implicitCastOrExpression(value, castTypeRef)
- }
- val referencedSymbol = calleeReference.resolvedSymbol
- if (referencedSymbol !is FirPropertySymbol && referencedSymbol !is FirFunctionSymbol) {
- return implicitCastOrExpression(value, castTypeRef)
- }
+ val referencedDeclaration =
+ ((calleeReference as? FirResolvedNamedReference)?.resolvedSymbol as? FirCallableSymbol<*>)?.unwrapCallRepresentative()
+ ?.fir as? FirCallableMemberDeclaration<*>
- val originalTypeRef = expressionWithSmartcast.originalType
- if (castTypeRef is FirResolvedTypeRef && originalTypeRef is FirResolvedTypeRef) {
- val castType = castTypeRef.type
- if (castType is ConeIntersectionType) {
- val unwrappedSymbol = (referencedSymbol as? FirCallableSymbol)?.baseForIntersectionOverride ?: referencedSymbol
- castType.intersectedTypes.forEach {
- if (it.doesContainReferencedSymbolInScope(unwrappedSymbol, calleeReference.name)) {
- return implicitCastOrExpression(value, it)
- }
- }
+ val dispatchReceiverType =
+ referencedDeclaration?.dispatchReceiverType as? ConeClassLikeType
+ ?: return implicitCastOrExpression(original, originalTypeRef)
+
+ val starProjectedDispatchReceiver = dispatchReceiverType.replaceArgumentsWithStarProjections()
+
+ val castType = originalTypeRef.coneTypeSafe()
+ castType?.intersectedTypes?.forEach { componentType ->
+ if (AbstractTypeChecker.isSubtypeOf(session.typeContext, componentType, starProjectedDispatchReceiver)) {
+ return implicitCastOrExpression(original, componentType)
}
}
- return if (originalExpression is FirThisReceiverExpression &&
- originalExpression.calleeReference.boundSymbol is FirAnonymousFunctionSymbol
- ) {
- // If the original is a "this" in a local function and original.type is the same as castType,
- // we still want to keep the cast. See kt-42517
- implicitCast(value, castTypeRef.toIrType())
- } else {
- implicitCastOrExpression(value, castTypeRef.toIrType())
- }
- }
- private fun ConeKotlinType.doesContainReferencedSymbolInScope(
- referencedSymbol: AbstractFirBasedSymbol<*>, name: Name
- ): Boolean {
- val scope = scope(session, components.scopeSession, FakeOverrideTypeCalculator.Forced) ?: return false
- var result = false
- val processor = { it: FirCallableSymbol<*> ->
- if (!result && it == referencedSymbol) {
- result = true
- }
- }
- when (referencedSymbol) {
- is FirPropertySymbol -> scope.processPropertiesByName(name, processor)
- is FirFunctionSymbol -> scope.processFunctionsByName(name, processor)
- }
- return result
+ return implicitCastOrExpression(original, originalTypeRef)
}
private fun implicitCastOrExpression(original: IrExpression, castType: ConeKotlinType): IrExpression {
@@ -348,7 +315,8 @@ class Fir2IrImplicitCastInserter(
}
internal fun implicitCastOrExpression(original: IrExpression, castType: IrType): IrExpression {
- return original.takeIf { it.type == castType } ?: implicitCast(original, castType)
+ if (original.type.makeNotNull() == castType.makeNotNull()) return original
+ return implicitCast(original, castType)
}
private fun implicitCast(original: IrExpression, castType: IrType): IrExpression {
diff --git a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrVisitor.kt b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrVisitor.kt
index 8427a0e5a48..8b418059d09 100644
--- a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrVisitor.kt
+++ b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrVisitor.kt
@@ -21,6 +21,7 @@ import org.jetbrains.kotlin.fir.expressions.impl.FirStubStatement
import org.jetbrains.kotlin.fir.expressions.impl.FirUnitExpression
import org.jetbrains.kotlin.fir.references.FirReference
import org.jetbrains.kotlin.fir.references.FirResolvedNamedReference
+import org.jetbrains.kotlin.fir.references.FirSuperReference
import org.jetbrains.kotlin.fir.resolve.isIteratorNext
import org.jetbrains.kotlin.fir.resolve.toSymbol
import org.jetbrains.kotlin.fir.symbols.impl.*
@@ -470,16 +471,16 @@ class Fir2IrVisitor(
}
}
- private fun convertToIrReceiverExpression(
+ internal fun convertToIrReceiverExpression(
expression: FirExpression?,
calleeReference: FirReference,
callableReferenceAccess: FirCallableReferenceAccess? = null
): IrExpression? {
return when (expression) {
- null -> null
+ null -> return null
is FirResolvedQualifier -> callGenerator.convertToGetObject(expression, callableReferenceAccess)
- is FirExpressionWithSmartcast -> implicitCastInserter.convertToImplicitCastExpression(expression, calleeReference)
- is FirFunctionCall, is FirThisReceiverExpression, is FirCallableReferenceAccess -> convertToIrExpression(expression)
+ is FirFunctionCall, is FirThisReceiverExpression, is FirCallableReferenceAccess, is FirExpressionWithSmartcast ->
+ convertToIrExpression(expression)
else -> if (expression is FirQualifiedAccessExpression && expression.explicitReceiver == null) {
val variableAsFunctionMode = calleeReference is FirResolvedNamedReference &&
calleeReference.name != OperatorNameConventions.INVOKE &&
@@ -491,6 +492,10 @@ class Fir2IrVisitor(
} else {
convertToIrExpression(expression)
}
+ }?.run {
+ if (expression is FirQualifiedAccessExpression && expression.calleeReference is FirSuperReference) return@run this
+
+ implicitCastInserter.implicitCastFromDispatchReceiver(this, expression.typeRef, calleeReference)
}
}
diff --git a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/generators/CallAndReferenceGenerator.kt b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/generators/CallAndReferenceGenerator.kt
index fa4f3b87b31..4657a143edf 100644
--- a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/generators/CallAndReferenceGenerator.kt
+++ b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/generators/CallAndReferenceGenerator.kt
@@ -713,10 +713,9 @@ class CallAndReferenceGenerator(
if (firReceiver == explicitReceiver) {
return explicitReceiverExpression
}
- if (firReceiver is FirResolvedQualifier) {
- return convertToGetObject(firReceiver, this as? FirCallableReferenceAccess)
- }
- return firReceiver.takeIf { it !is FirNoReceiverExpression }?.let { visitor.convertToIrExpression(it) }
+
+ return firReceiver.takeIf { it !is FirNoReceiverExpression }
+ ?.let { visitor.convertToIrReceiverExpression(it, calleeReference, this as? FirCallableReferenceAccess) }
?: explicitReceiverExpression
?: run {
if (this is FirCallableReferenceAccess) return null
diff --git a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/generators/FakeOverrideGenerator.kt b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/generators/FakeOverrideGenerator.kt
index ee506407f4a..f3c2639dfce 100644
--- a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/generators/FakeOverrideGenerator.kt
+++ b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/generators/FakeOverrideGenerator.kt
@@ -192,8 +192,10 @@ class FakeOverrideGenerator(
): List {
if (symbol.fir.origin != FirDeclarationOrigin.IntersectionOverride) return listOf(basedSymbol)
return scope.directOverridden(symbol).map {
+ // Unwrapping should happen only for fake overrides members from the same class, not from supertypes
+ if (it.dispatchReceiverClassOrNull() != containingClass) return@map it
when {
- it.fir.isSubstitutionOverride && it.dispatchReceiverClassOrNull() == containingClass ->
+ it.fir.isSubstitutionOverride ->
it.originalForSubstitutionOverride!!
it.fir.origin == FirDeclarationOrigin.Delegated ->
it.fir.delegatedWrapperData?.wrapped?.symbol!! as S
diff --git a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/lazy/Fir2IrLazyProperty.kt b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/lazy/Fir2IrLazyProperty.kt
index e63dc047653..8dc975fe056 100644
--- a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/lazy/Fir2IrLazyProperty.kt
+++ b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/lazy/Fir2IrLazyProperty.kt
@@ -127,6 +127,7 @@ class Fir2IrLazyProperty(
}
override var getter: IrSimpleFunction? by lazyVar {
+ if (fir.isConst) return@lazyVar null
Fir2IrLazyPropertyAccessor(
components, startOffset, endOffset,
when {
diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/codegen/FirCompileKotlinAgainstKotlinTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/codegen/FirCompileKotlinAgainstKotlinTestGenerated.java
index 0de6b68c39a..78cb73d344c 100644
--- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/codegen/FirCompileKotlinAgainstKotlinTestGenerated.java
+++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/codegen/FirCompileKotlinAgainstKotlinTestGenerated.java
@@ -50,6 +50,11 @@ public class FirCompileKotlinAgainstKotlinTestGenerated extends AbstractFirCompi
runTest("compiler/testData/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassType.kt");
}
+ @TestMetadata("callDeserializedPropertyOnInlineClassTypeOldMangling.kt")
+ public void testCallDeserializedPropertyOnInlineClassTypeOldMangling() throws Exception {
+ runTest("compiler/testData/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassTypeOldMangling.kt");
+ }
+
@TestMetadata("callsToMultifileClassFromOtherPackage.kt")
public void testCallsToMultifileClassFromOtherPackage() throws Exception {
runTest("compiler/testData/compileKotlinAgainstKotlin/callsToMultifileClassFromOtherPackage.kt");
@@ -90,6 +95,11 @@ public class FirCompileKotlinAgainstKotlinTestGenerated extends AbstractFirCompi
runTest("compiler/testData/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependencies.kt");
}
+ @TestMetadata("constructorWithInlineClassParametersInBinaryDependenciesOldMangling.kt")
+ public void testConstructorWithInlineClassParametersInBinaryDependenciesOldMangling() throws Exception {
+ runTest("compiler/testData/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependenciesOldMangling.kt");
+ }
+
@TestMetadata("copySamOnInline.kt")
public void testCopySamOnInline() throws Exception {
runTest("compiler/testData/compileKotlinAgainstKotlin/copySamOnInline.kt");
@@ -125,6 +135,11 @@ public class FirCompileKotlinAgainstKotlinTestGenerated extends AbstractFirCompi
runTest("compiler/testData/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceivers.kt");
}
+ @TestMetadata("defaultWithInlineClassAndReceiversOldMangling.kt")
+ public void testDefaultWithInlineClassAndReceiversOldMangling() throws Exception {
+ runTest("compiler/testData/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceiversOldMangling.kt");
+ }
+
@TestMetadata("delegatedDefault.kt")
public void testDelegatedDefault() throws Exception {
runTest("compiler/testData/compileKotlinAgainstKotlin/delegatedDefault.kt");
@@ -150,6 +165,11 @@ public class FirCompileKotlinAgainstKotlinTestGenerated extends AbstractFirCompi
runTest("compiler/testData/compileKotlinAgainstKotlin/expectClassActualTypeAlias.kt");
}
+ @TestMetadata("fakeOverridesForIntersectionTypes.kt")
+ public void testFakeOverridesForIntersectionTypes() throws Exception {
+ runTest("compiler/testData/compileKotlinAgainstKotlin/fakeOverridesForIntersectionTypes.kt");
+ }
+
@TestMetadata("importCompanion.kt")
public void testImportCompanion() throws Exception {
runTest("compiler/testData/compileKotlinAgainstKotlin/importCompanion.kt");
@@ -160,21 +180,41 @@ public class FirCompileKotlinAgainstKotlinTestGenerated extends AbstractFirCompi
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassFakeOverrideMangling.kt");
}
+ @TestMetadata("inlineClassFakeOverrideManglingOldMangling.kt")
+ public void testInlineClassFakeOverrideManglingOldMangling() throws Exception {
+ runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassFakeOverrideManglingOldMangling.kt");
+ }
+
@TestMetadata("inlineClassFromBinaryDependencies.kt")
public void testInlineClassFromBinaryDependencies() throws Exception {
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassFromBinaryDependencies.kt");
}
+ @TestMetadata("inlineClassFromBinaryDependenciesOldMangling.kt")
+ public void testInlineClassFromBinaryDependenciesOldMangling() throws Exception {
+ runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassFromBinaryDependenciesOldMangling.kt");
+ }
+
@TestMetadata("inlineClassInlineFunctionCall.kt")
public void testInlineClassInlineFunctionCall() throws Exception {
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineFunctionCall.kt");
}
+ @TestMetadata("inlineClassInlineFunctionCallOldMangling.kt")
+ public void testInlineClassInlineFunctionCallOldMangling() throws Exception {
+ runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineFunctionCallOldMangling.kt");
+ }
+
@TestMetadata("inlineClassInlineProperty.kt")
public void testInlineClassInlineProperty() throws Exception {
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineProperty.kt");
}
+ @TestMetadata("inlineClassInlinePropertyOldMangling.kt")
+ public void testInlineClassInlinePropertyOldMangling() throws Exception {
+ runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlinePropertyOldMangling.kt");
+ }
+
@TestMetadata("inlineClassesOldMangling.kt")
public void testInlineClassesOldMangling() throws Exception {
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt");
@@ -205,11 +245,21 @@ public class FirCompileKotlinAgainstKotlinTestGenerated extends AbstractFirCompi
runTest("compiler/testData/compileKotlinAgainstKotlin/internalWithDefaultArgs.kt");
}
+ @TestMetadata("internalWithInlineClass.kt")
+ public void testInternalWithInlineClass() throws Exception {
+ runTest("compiler/testData/compileKotlinAgainstKotlin/internalWithInlineClass.kt");
+ }
+
@TestMetadata("internalWithOtherModuleName.kt")
public void testInternalWithOtherModuleName() throws Exception {
runTest("compiler/testData/compileKotlinAgainstKotlin/internalWithOtherModuleName.kt");
}
+ @TestMetadata("intersectionOverrideProperies.kt")
+ public void testIntersectionOverrideProperies() throws Exception {
+ runTest("compiler/testData/compileKotlinAgainstKotlin/intersectionOverrideProperies.kt");
+ }
+
@TestMetadata("jvmField.kt")
public void testJvmField() throws Exception {
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmField.kt");
@@ -330,6 +380,11 @@ public class FirCompileKotlinAgainstKotlinTestGenerated extends AbstractFirCompi
runTest("compiler/testData/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.kt");
}
+ @TestMetadata("noExplicitOverrideForDelegatedFromSupertype.kt")
+ public void testNoExplicitOverrideForDelegatedFromSupertype() throws Exception {
+ runTest("compiler/testData/compileKotlinAgainstKotlin/noExplicitOverrideForDelegatedFromSupertype.kt");
+ }
+
@TestMetadata("optionalAnnotation.kt")
public void testOptionalAnnotation() throws Exception {
runTest("compiler/testData/compileKotlinAgainstKotlin/optionalAnnotation.kt");
@@ -345,11 +400,21 @@ public class FirCompileKotlinAgainstKotlinTestGenerated extends AbstractFirCompi
runTest("compiler/testData/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModule.kt");
}
+ @TestMetadata("privateCompanionObjectValInDifferentModuleOldMangling.kt")
+ public void testPrivateCompanionObjectValInDifferentModuleOldMangling() throws Exception {
+ runTest("compiler/testData/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModuleOldMangling.kt");
+ }
+
@TestMetadata("privateTopLevelValInDifferentModule.kt")
public void testPrivateTopLevelValInDifferentModule() throws Exception {
runTest("compiler/testData/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModule.kt");
}
+ @TestMetadata("privateTopLevelValInDifferentModuleOldMangling.kt")
+ public void testPrivateTopLevelValInDifferentModuleOldMangling() throws Exception {
+ runTest("compiler/testData/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModuleOldMangling.kt");
+ }
+
@TestMetadata("propertyReference.kt")
public void testPropertyReference() throws Exception {
runTest("compiler/testData/compileKotlinAgainstKotlin/propertyReference.kt");
@@ -400,6 +465,11 @@ public class FirCompileKotlinAgainstKotlinTestGenerated extends AbstractFirCompi
runTest("compiler/testData/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt");
}
+ @TestMetadata("suspendFunWithDefaultOldMangling.kt")
+ public void testSuspendFunWithDefaultOldMangling() throws Exception {
+ runTest("compiler/testData/compileKotlinAgainstKotlin/suspendFunWithDefaultOldMangling.kt");
+ }
+
@TestMetadata("targetedJvmName.kt")
public void testTargetedJvmName() throws Exception {
runTest("compiler/testData/compileKotlinAgainstKotlin/targetedJvmName.kt");
diff --git a/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/JavaSymbolProvider.kt b/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/JavaSymbolProvider.kt
index 62b4626d765..cbeb0969e5a 100644
--- a/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/JavaSymbolProvider.kt
+++ b/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/JavaSymbolProvider.kt
@@ -12,6 +12,7 @@ import org.jetbrains.kotlin.descriptors.ClassKind
import org.jetbrains.kotlin.descriptors.Modality
import org.jetbrains.kotlin.descriptors.Visibilities
import org.jetbrains.kotlin.fir.*
+import org.jetbrains.kotlin.fir.caches.*
import org.jetbrains.kotlin.fir.declarations.*
import org.jetbrains.kotlin.fir.declarations.builder.*
import org.jetbrains.kotlin.fir.declarations.impl.FirResolvedDeclarationStatusImpl
@@ -22,7 +23,6 @@ import org.jetbrains.kotlin.fir.resolve.constructType
import org.jetbrains.kotlin.fir.resolve.defaultType
import org.jetbrains.kotlin.fir.resolve.providers.FirSymbolProvider
import org.jetbrains.kotlin.fir.resolve.providers.FirSymbolProviderInternals
-import org.jetbrains.kotlin.fir.resolve.providers.SymbolProviderCache
import org.jetbrains.kotlin.fir.resolve.scopes.wrapScopeWithJvmMapped
import org.jetbrains.kotlin.fir.symbols.CallableId
import org.jetbrains.kotlin.fir.symbols.impl.*
@@ -53,14 +53,22 @@ class JavaSymbolProvider(
internal val VALUE_METHOD_NAME = Name.identifier("value")
}
- private val classCache = SymbolProviderCache()
- private val packageCache = SymbolProviderCache()
+ private val classCache =
+ session.firCachesFactory.createCacheWithPostCompute(
+ createValue = ::findAndConvertJavaClass,
+ postCompute = { _, classSymbol, javaClass, ->
+ if (classSymbol != null && javaClass != null) {
+ convertJavaClassToFir(classSymbol, javaClass)
+ }
+ }
+ )
+ private val packageCache = session.firCachesFactory.createCache(::findPackage)
+ private val knownClassNamesInPackage = session.firCachesFactory.createCache?>(::getKnownClassNames)
private val scopeProvider = JavaScopeProvider(::wrapScopeWithJvmMapped, this)
private val facade: KotlinJavaPsiFacade get() = KotlinJavaPsiFacade.getInstance(project)
- private val parentClassTypeParameterStackCache: SymbolProviderCache =
- SymbolProviderCache()
+ private val parentClassTypeParameterStackCache = mutableMapOf()
private fun findClass(
classId: ClassId,
@@ -138,24 +146,23 @@ class JavaSymbolProvider(
fun getFirJavaClass(classId: ClassId, content: KotlinClassFinder.Result.ClassFileContent? = null): FirRegularClassSymbol? {
if (!hasTopLevelClassOf(classId)) return null
- return classCache.lookupCacheOrCalculateWithPostCompute(
- classId,
- {
- val foundClass = findClass(classId, content)
- if (foundClass == null ||
- foundClass.hasDifferentRelativeClassName(classId) ||
- foundClass.hasMetadataAnnotation()
- ) {
- null to null
- } else {
- FirRegularClassSymbol(classId) to foundClass
- }
- },
- ) { firSymbol, foundClass ->
- convertJavaClassToFir(firSymbol, foundClass)
+ return classCache.getValue(classId, content)
+ }
+
+ private fun findAndConvertJavaClass(classId: ClassId, content: KotlinClassFinder.Result.ClassFileContent?): Pair {
+ val foundClass = findClass(classId, content)
+ return if (foundClass == null ||
+ foundClass.hasDifferentRelativeClassName(classId) ||
+ foundClass.hasMetadataAnnotation()
+ ) {
+ null to null
+ } else {
+ val symbol = FirRegularClassSymbol(classId)
+ symbol to foundClass
}
}
+
/**
* We do not check the package because we can look for the class in the same package by class name without package specified.
* In this case, found [JavaClass] may have different `packageFqName`, but not `relativeClassName`.
@@ -171,14 +178,15 @@ class JavaSymbolProvider(
var valueParameterForValue: FirJavaValueParameter? = null
}
- private fun convertJavaClassToFir(classSymbol: FirRegularClassSymbol, javaClass: JavaClass?): FirJavaClass? {
- if (javaClass == null) return null
+ private fun convertJavaClassToFir(classSymbol: FirRegularClassSymbol, javaClass: JavaClass): FirJavaClass {
val classId = classSymbol.classId
val javaTypeParameterStack = JavaTypeParameterStack()
val outerClassId = classId.outerClassId
val parentClassSymbol = if (outerClassId != null) {
getClassLikeSymbolByFqName(outerClassId)
} else null
+
+
if (parentClassSymbol != null) {
val parentStack = parentClassTypeParameterStackCache[parentClassSymbol]
?: (parentClassSymbol.fir as? FirJavaClass)?.javaTypeParameterStack
@@ -186,111 +194,125 @@ class JavaSymbolProvider(
javaTypeParameterStack.addStack(parentStack)
}
}
- val firJavaClass = buildJavaClass {
- source = (javaClass as? JavaElementImpl<*>)?.psi?.toFirPsiSourceElement()
- session = this@JavaSymbolProvider.session
- symbol = classSymbol
- name = javaClass.name
- visibility = javaClass.visibility
- modality = javaClass.modality
- classKind = javaClass.classKind
- this.isTopLevel = outerClassId == null
- isStatic = javaClass.isStatic
- this.javaTypeParameterStack = javaTypeParameterStack
- parentClassTypeParameterStackCache[classSymbol] = javaTypeParameterStack
- existingNestedClassifierNames += javaClass.innerClassNames
- scopeProvider = this@JavaSymbolProvider.scopeProvider
- val classTypeParameters = javaClass.typeParameters.convertTypeParameters(javaTypeParameterStack)
- typeParameters += classTypeParameters
- if (!isStatic && parentClassSymbol != null) {
- typeParameters += parentClassSymbol.fir.typeParameters.map {
- buildOuterClassTypeParameterRef { symbol = it.symbol }
- }
- }
-
- val dispatchReceiver = classId.defaultType(typeParameters.map { it.symbol })
-
- status = FirResolvedDeclarationStatusImpl(
- javaClass.visibility,
- javaClass.modality
- ).apply {
- this.isInner = !isTopLevel && !this@buildJavaClass.isStatic
- isCompanion = false
- isData = false
- isInline = false
- isFun = classKind == ClassKind.INTERFACE
- }
- // TODO: may be we can process fields & methods later.
- // However, they should be built up to override resolve stage
- for (javaField in javaClass.fields) {
- declarations += convertJavaFieldToFir(javaField, classId, javaTypeParameterStack, dispatchReceiver)
- }
- val valueParametersForAnnotationConstructor = ValueParametersForAnnotationConstructor()
- val classIsAnnotation = classKind == ClassKind.ANNOTATION_CLASS
-
- for (javaMethod in javaClass.methods) {
- if (javaMethod.isObjectMethodInInterface()) continue
- declarations += convertJavaMethodToFir(
- javaMethod,
- classId,
- javaTypeParameterStack,
- classIsAnnotation,
- valueParametersForAnnotationConstructor,
- dispatchReceiver
- )
- }
- val javaClassDeclaredConstructors = javaClass.constructors
- val constructorId = CallableId(classId.packageFqName, classId.relativeClassName, classId.shortClassName)
-
- if (javaClassDeclaredConstructors.isEmpty()
- && javaClass.classKind == ClassKind.CLASS
- && javaClass.hasDefaultConstructor()
- ) {
- declarations += convertJavaConstructorToFir(
- javaConstructor = null,
- constructorId,
- javaClass,
- ownerClassBuilder = this,
- classTypeParameters,
- javaTypeParameterStack
- )
- }
- for (javaConstructor in javaClassDeclaredConstructors) {
- declarations += convertJavaConstructorToFir(
- javaConstructor,
- constructorId,
- javaClass,
- ownerClassBuilder = this,
- classTypeParameters,
- javaTypeParameterStack,
- )
- }
-
- if (classKind == ClassKind.ENUM_CLASS) {
- generateValuesFunction(
- session,
- classId.packageFqName,
- classId.relativeClassName
- )
- generateValueOfFunction(session, classId.packageFqName, classId.relativeClassName)
- }
- if (classIsAnnotation) {
- declarations +=
- buildConstructorForAnnotationClass(constructorId, this, valueParametersForAnnotationConstructor)
- }
- parentClassTypeParameterStackCache.remove(classSymbol)
- }
- firJavaClass.replaceSuperTypeRefs(
- javaClass.supertypes.map { supertype ->
- supertype.toFirResolvedTypeRef(
- this@JavaSymbolProvider.session, javaTypeParameterStack, isForSupertypes = true, forTypeParameterBounds = false
- )
- }
- )
+ parentClassTypeParameterStackCache[classSymbol] = javaTypeParameterStack
+ val firJavaClass = createFirJavaClass(javaClass, classSymbol, outerClassId, parentClassSymbol, classId, javaTypeParameterStack)
+ parentClassTypeParameterStackCache.remove(classSymbol)
+ firJavaClass.convertSuperTypes(javaClass, javaTypeParameterStack)
firJavaClass.addAnnotationsFrom(this@JavaSymbolProvider.session, javaClass, javaTypeParameterStack)
return firJavaClass
}
+ private fun FirJavaClass.convertSuperTypes(
+ javaClass: JavaClass,
+ javaTypeParameterStack: JavaTypeParameterStack
+ ) {
+ replaceSuperTypeRefs(
+ javaClass.supertypes.map { supertype ->
+ supertype.toFirResolvedTypeRef(session, javaTypeParameterStack, isForSupertypes = true, forTypeParameterBounds = false)
+ }
+ )
+ }
+
+ private fun createFirJavaClass(
+ javaClass: JavaClass,
+ classSymbol: FirRegularClassSymbol,
+ outerClassId: ClassId?,
+ parentClassSymbol: FirRegularClassSymbol?,
+ classId: ClassId,
+ javaTypeParameterStack: JavaTypeParameterStack,
+ ): FirJavaClass = buildJavaClass {
+ source = (javaClass as? JavaElementImpl<*>)?.psi?.toFirPsiSourceElement()
+ session = this@JavaSymbolProvider.session
+ symbol = classSymbol
+ name = javaClass.name
+ visibility = javaClass.visibility
+ modality = javaClass.modality
+ classKind = javaClass.classKind
+ this.isTopLevel = outerClassId == null
+ isStatic = javaClass.isStatic
+ this.javaTypeParameterStack = javaTypeParameterStack
+ existingNestedClassifierNames += javaClass.innerClassNames
+ scopeProvider = this@JavaSymbolProvider.scopeProvider
+ val classTypeParameters = javaClass.typeParameters.convertTypeParameters(javaTypeParameterStack)
+ typeParameters += classTypeParameters
+ if (!isStatic && parentClassSymbol != null) {
+ typeParameters += parentClassSymbol.fir.typeParameters.map {
+ buildOuterClassTypeParameterRef { symbol = it.symbol }
+ }
+ }
+
+ val dispatchReceiver = classId.defaultType(typeParameters.map { it.symbol })
+
+ status = FirResolvedDeclarationStatusImpl(
+ javaClass.visibility,
+ javaClass.modality
+ ).apply {
+ this.isInner = !isTopLevel && !this@buildJavaClass.isStatic
+ isCompanion = false
+ isData = false
+ isInline = false
+ isFun = classKind == ClassKind.INTERFACE
+ }
+ // TODO: may be we can process fields & methods later.
+ // However, they should be built up to override resolve stage
+ for (javaField in javaClass.fields) {
+ declarations += convertJavaFieldToFir(javaField, classId, javaTypeParameterStack, dispatchReceiver)
+ }
+ val valueParametersForAnnotationConstructor = ValueParametersForAnnotationConstructor()
+ val classIsAnnotation = classKind == ClassKind.ANNOTATION_CLASS
+
+ for (javaMethod in javaClass.methods) {
+ if (javaMethod.isObjectMethodInInterface()) continue
+ declarations += convertJavaMethodToFir(
+ javaMethod,
+ classId,
+ javaTypeParameterStack,
+ classIsAnnotation,
+ valueParametersForAnnotationConstructor,
+ dispatchReceiver
+ )
+ }
+ val javaClassDeclaredConstructors = javaClass.constructors
+ val constructorId = CallableId(classId.packageFqName, classId.relativeClassName, classId.shortClassName)
+
+ if (javaClassDeclaredConstructors.isEmpty()
+ && javaClass.classKind == ClassKind.CLASS
+ && javaClass.hasDefaultConstructor()
+ ) {
+ declarations += convertJavaConstructorToFir(
+ javaConstructor = null,
+ constructorId,
+ javaClass,
+ ownerClassBuilder = this,
+ classTypeParameters,
+ javaTypeParameterStack
+ )
+ }
+ for (javaConstructor in javaClassDeclaredConstructors) {
+ declarations += convertJavaConstructorToFir(
+ javaConstructor,
+ constructorId,
+ javaClass,
+ ownerClassBuilder = this,
+ classTypeParameters,
+ javaTypeParameterStack,
+ )
+ }
+
+ if (classKind == ClassKind.ENUM_CLASS) {
+ generateValuesFunction(
+ session,
+ classId.packageFqName,
+ classId.relativeClassName
+ )
+ generateValueOfFunction(session, classId.packageFqName, classId.relativeClassName)
+ }
+ if (classIsAnnotation) {
+ declarations +=
+ buildConstructorForAnnotationClass(constructorId, this, valueParametersForAnnotationConstructor)
+ }
+ }
+
private fun convertJavaFieldToFir(
javaField: JavaField,
classId: ClassId,
@@ -513,25 +535,26 @@ class JavaSymbolProvider(
)
override fun getPackage(fqName: FqName): FqName? {
- return packageCache.lookupCacheOrCalculate(fqName) {
- try {
- val facade = KotlinJavaPsiFacade.getInstance(project)
- val javaPackage = facade.findPackage(fqName.asString(), searchScope) ?: return@lookupCacheOrCalculate null
- FqName(javaPackage.qualifiedName)
- } catch (e: ProcessCanceledException) {
- return@lookupCacheOrCalculate null
- }
+ return packageCache.getValue(fqName)
+ }
+
+ private fun findPackage(fqName: FqName): FqName? {
+ return try {
+ val facade = KotlinJavaPsiFacade.getInstance(project)
+ val javaPackage = facade.findPackage(fqName.asString(), searchScope) ?: return null
+ FqName(javaPackage.qualifiedName)
+ } catch (e: ProcessCanceledException) {
+ return null
}
}
- private val knownClassNamesInPackage = mutableMapOf?>()
-
private fun hasTopLevelClassOf(classId: ClassId): Boolean {
- val knownNames = knownClassNamesInPackage.getOrPut(classId.packageFqName) {
- facade.knownClassNamesInPackage(classId.packageFqName, searchScope)
- } ?: return true
+ val knownNames = knownClassNamesInPackage.getValue(classId.packageFqName) ?: return true
return classId.relativeClassName.topLevelName() in knownNames
}
+
+ private fun getKnownClassNames(packageFqName: FqName): MutableSet? =
+ facade.knownClassNamesInPackage(packageFqName, searchScope)
}
fun FqName.topLevelName() =
diff --git a/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/deserialization/AnnotationsLoader.kt b/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/deserialization/AnnotationsLoader.kt
new file mode 100644
index 00000000000..8df4b2e9244
--- /dev/null
+++ b/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/deserialization/AnnotationsLoader.kt
@@ -0,0 +1,165 @@
+/*
+ * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
+ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
+ */
+
+package org.jetbrains.kotlin.fir.java.deserialization
+
+import org.jetbrains.kotlin.SpecialJvmAnnotations
+import org.jetbrains.kotlin.fir.FirSession
+import org.jetbrains.kotlin.fir.diagnostics.ConeSimpleDiagnostic
+import org.jetbrains.kotlin.fir.diagnostics.DiagnosticKind
+import org.jetbrains.kotlin.fir.expressions.FirAnnotationCall
+import org.jetbrains.kotlin.fir.expressions.FirClassReferenceExpression
+import org.jetbrains.kotlin.fir.expressions.FirExpression
+import org.jetbrains.kotlin.fir.expressions.buildUnaryArgumentList
+import org.jetbrains.kotlin.fir.expressions.builder.*
+import org.jetbrains.kotlin.fir.java.createConstantOrError
+import org.jetbrains.kotlin.fir.references.builder.buildErrorNamedReference
+import org.jetbrains.kotlin.fir.references.builder.buildResolvedNamedReference
+import org.jetbrains.kotlin.fir.references.impl.FirReferencePlaceholderForResolvedAnnotations
+import org.jetbrains.kotlin.fir.resolve.firSymbolProvider
+import org.jetbrains.kotlin.fir.resolve.providers.getClassDeclaredPropertySymbols
+import org.jetbrains.kotlin.fir.symbols.ConeClassLikeLookupTag
+import org.jetbrains.kotlin.fir.symbols.impl.ConeClassLikeLookupTagImpl
+import org.jetbrains.kotlin.fir.types.FirResolvedTypeRef
+import org.jetbrains.kotlin.fir.types.builder.buildResolvedTypeRef
+import org.jetbrains.kotlin.fir.types.constructClassType
+import org.jetbrains.kotlin.load.kotlin.KotlinJvmBinaryClass
+import org.jetbrains.kotlin.name.ClassId
+import org.jetbrains.kotlin.name.Name
+import org.jetbrains.kotlin.resolve.constants.ClassLiteralValue
+
+internal class AnnotationsLoader(private val session: FirSession) {
+ private fun loadAnnotation(
+ annotationClassId: ClassId, result: MutableList,
+ ): KotlinJvmBinaryClass.AnnotationArgumentVisitor {
+ val lookupTag = ConeClassLikeLookupTagImpl(annotationClassId)
+
+ return object : KotlinJvmBinaryClass.AnnotationArgumentVisitor {
+ private val argumentMap = mutableMapOf()
+
+ override fun visit(name: Name?, value: Any?) {
+ if (name != null) {
+ argumentMap[name] = createConstant(value)
+ }
+ }
+
+ private fun ClassLiteralValue.toFirClassReferenceExpression(): FirClassReferenceExpression {
+ val literalLookupTag = ConeClassLikeLookupTagImpl(classId)
+ return buildClassReferenceExpression {
+ classTypeRef = literalLookupTag.toDefaultResolvedTypeRef()
+ }
+ }
+
+ private fun ClassId.toEnumEntryReferenceExpression(name: Name): FirExpression {
+ return buildFunctionCall {
+ val entryPropertySymbol =
+ session.firSymbolProvider.getClassDeclaredPropertySymbols(
+ this@toEnumEntryReferenceExpression, name,
+ ).firstOrNull()
+
+ calleeReference = when {
+ entryPropertySymbol != null -> {
+ buildResolvedNamedReference {
+ this.name = name
+ resolvedSymbol = entryPropertySymbol
+ }
+ }
+ else -> {
+ buildErrorNamedReference {
+ diagnostic = ConeSimpleDiagnostic(
+ "Strange deserialized enum value: ${this@toEnumEntryReferenceExpression}.$name",
+ DiagnosticKind.Java,
+ )
+ }
+ }
+ }
+ }
+ }
+
+ override fun visitClassLiteral(name: Name, value: ClassLiteralValue) {
+ argumentMap[name] = buildGetClassCall {
+ argumentList = buildUnaryArgumentList(value.toFirClassReferenceExpression())
+ }
+ }
+
+ override fun visitEnum(name: Name, enumClassId: ClassId, enumEntryName: Name) {
+ argumentMap[name] = enumClassId.toEnumEntryReferenceExpression(enumEntryName)
+ }
+
+ override fun visitArray(name: Name): KotlinJvmBinaryClass.AnnotationArrayArgumentVisitor {
+ return object : KotlinJvmBinaryClass.AnnotationArrayArgumentVisitor {
+ private val elements = mutableListOf()
+
+ override fun visit(value: Any?) {
+ elements.add(createConstant(value))
+ }
+
+ override fun visitEnum(enumClassId: ClassId, enumEntryName: Name) {
+ elements.add(enumClassId.toEnumEntryReferenceExpression(enumEntryName))
+ }
+
+ override fun visitClassLiteral(value: ClassLiteralValue) {
+ elements.add(
+ buildGetClassCall {
+ argumentList = buildUnaryArgumentList(value.toFirClassReferenceExpression())
+ }
+ )
+ }
+
+ override fun visitEnd() {
+ argumentMap[name] = buildArrayOfCall {
+ argumentList = buildArgumentList {
+ arguments += elements
+ }
+ }
+ }
+ }
+ }
+
+ override fun visitAnnotation(name: Name, classId: ClassId): KotlinJvmBinaryClass.AnnotationArgumentVisitor {
+ val list = mutableListOf()
+ val visitor = loadAnnotation(classId, list)
+ return object : KotlinJvmBinaryClass.AnnotationArgumentVisitor by visitor {
+ override fun visitEnd() {
+ visitor.visitEnd()
+ argumentMap[name] = list.single()
+ }
+ }
+ }
+
+ override fun visitEnd() {
+ result += buildAnnotationCall {
+ annotationTypeRef = lookupTag.toDefaultResolvedTypeRef()
+ argumentList = buildArgumentList {
+ for ((name, expression) in argumentMap) {
+ arguments += buildNamedArgumentExpression {
+ this.expression = expression
+ this.name = name
+ isSpread = false
+ }
+ }
+ }
+ calleeReference = FirReferencePlaceholderForResolvedAnnotations
+ }
+ }
+
+ private fun createConstant(value: Any?): FirExpression {
+ return value.createConstantOrError(session)
+ }
+ }
+ }
+
+ internal fun loadAnnotationIfNotSpecial(
+ annotationClassId: ClassId, result: MutableList,
+ ): KotlinJvmBinaryClass.AnnotationArgumentVisitor? {
+ if (annotationClassId in SpecialJvmAnnotations.SPECIAL_ANNOTATIONS) return null
+ return loadAnnotation(annotationClassId, result)
+ }
+
+ private fun ConeClassLikeLookupTag.toDefaultResolvedTypeRef(): FirResolvedTypeRef =
+ buildResolvedTypeRef {
+ type = constructClassType(emptyArray(), isNullable = false)
+ }
+}
\ No newline at end of file
diff --git a/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/deserialization/JvmBinaryAnnotationDeserializer.kt b/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/deserialization/JvmBinaryAnnotationDeserializer.kt
index 5ad766e1620..1f420bc49cd 100644
--- a/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/deserialization/JvmBinaryAnnotationDeserializer.kt
+++ b/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/deserialization/JvmBinaryAnnotationDeserializer.kt
@@ -268,6 +268,7 @@ private data class MemberAnnotations(val memberAnnotations: MutableMap>()
+ val annotationsLoader = AnnotationsLoader(this)
kotlinBinaryClass.visitMembers(object : KotlinJvmBinaryClass.MemberVisitor {
override fun visitMethod(name: Name, desc: String): KotlinJvmBinaryClass.MethodAnnotationVisitor? {
@@ -296,7 +297,7 @@ private fun FirSession.loadMemberAnnotations(kotlinBinaryClass: KotlinJvmBinaryC
result = arrayListOf()
memberAnnotations[paramSignature] = result
}
- return loadAnnotationIfNotSpecial(classId, result)
+ return annotationsLoader.loadAnnotationIfNotSpecial(classId, result)
}
}
@@ -304,7 +305,7 @@ private fun FirSession.loadMemberAnnotations(kotlinBinaryClass: KotlinJvmBinaryC
private val result = arrayListOf()
override fun visitAnnotation(classId: ClassId, source: SourceElement): KotlinJvmBinaryClass.AnnotationArgumentVisitor? {
- return loadAnnotationIfNotSpecial(classId, result)
+ return annotationsLoader.loadAnnotationIfNotSpecial(classId, result)
}
override fun visitEnd() {
@@ -316,15 +317,4 @@ private fun FirSession.loadMemberAnnotations(kotlinBinaryClass: KotlinJvmBinaryC
}, byteContent)
return MemberAnnotations(memberAnnotations)
-}
-
-// TODO: Or, better to migrate annotation deserialization in KotlinDeserializedJvmSymbolsProvider to here?
-private fun FirSession.loadAnnotationIfNotSpecial(
- annotationClassId: ClassId,
- result: MutableList
-): KotlinJvmBinaryClass.AnnotationArgumentVisitor? =
- (firSymbolProvider as? FirCompositeSymbolProvider)
- ?.providers
- ?.filterIsInstance()
- ?.singleOrNull()
- ?.loadAnnotationIfNotSpecial(annotationClassId, result)
+}
\ No newline at end of file
diff --git a/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/deserialization/KotlinDeserializedJvmSymbolsProvider.kt b/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/deserialization/KotlinDeserializedJvmSymbolsProvider.kt
index 49222281729..ab7f0ab23d0 100644
--- a/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/deserialization/KotlinDeserializedJvmSymbolsProvider.kt
+++ b/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/deserialization/KotlinDeserializedJvmSymbolsProvider.kt
@@ -7,35 +7,23 @@ package org.jetbrains.kotlin.fir.java.deserialization
import com.intellij.openapi.progress.ProcessCanceledException
import com.intellij.openapi.project.Project
-import org.jetbrains.kotlin.SpecialJvmAnnotations
import org.jetbrains.kotlin.descriptors.SourceElement
import org.jetbrains.kotlin.fir.FirSession
import org.jetbrains.kotlin.fir.ThreadSafeMutableState
+import org.jetbrains.kotlin.fir.caches.*
import org.jetbrains.kotlin.fir.declarations.*
import org.jetbrains.kotlin.fir.deserialization.FirConstDeserializer
import org.jetbrains.kotlin.fir.deserialization.FirDeserializationContext
import org.jetbrains.kotlin.fir.deserialization.deserializeClassToSymbol
-import org.jetbrains.kotlin.fir.diagnostics.ConeSimpleDiagnostic
-import org.jetbrains.kotlin.fir.diagnostics.DiagnosticKind
import org.jetbrains.kotlin.fir.expressions.*
import org.jetbrains.kotlin.fir.expressions.builder.*
import org.jetbrains.kotlin.fir.java.JavaSymbolProvider
-import org.jetbrains.kotlin.fir.java.createConstantOrError
import org.jetbrains.kotlin.fir.java.topLevelName
-import org.jetbrains.kotlin.fir.references.builder.buildErrorNamedReference
-import org.jetbrains.kotlin.fir.references.builder.buildResolvedNamedReference
-import org.jetbrains.kotlin.fir.references.impl.FirReferencePlaceholderForResolvedAnnotations
-import org.jetbrains.kotlin.fir.resolve.firSymbolProvider
import org.jetbrains.kotlin.fir.resolve.providers.*
import org.jetbrains.kotlin.fir.scopes.KotlinScopeProvider
-import org.jetbrains.kotlin.fir.symbols.ConeClassLikeLookupTag
import org.jetbrains.kotlin.fir.symbols.impl.*
-import org.jetbrains.kotlin.fir.types.FirResolvedTypeRef
-import org.jetbrains.kotlin.fir.types.builder.buildResolvedTypeRef
-import org.jetbrains.kotlin.fir.types.constructClassType
import org.jetbrains.kotlin.load.java.JavaClassFinder
import org.jetbrains.kotlin.load.kotlin.*
-import org.jetbrains.kotlin.load.kotlin.KotlinJvmBinaryClass.AnnotationArrayArgumentVisitor
import org.jetbrains.kotlin.load.kotlin.header.KotlinClassHeader
import org.jetbrains.kotlin.metadata.ProtoBuf
import org.jetbrains.kotlin.metadata.deserialization.Flags
@@ -46,7 +34,6 @@ import org.jetbrains.kotlin.name.ClassId
import org.jetbrains.kotlin.name.FqName
import org.jetbrains.kotlin.name.Name
import org.jetbrains.kotlin.name.isOneSegmentFQN
-import org.jetbrains.kotlin.resolve.constants.ClassLiteralValue
import org.jetbrains.kotlin.resolve.jvm.JvmClassName
import org.jetbrains.kotlin.serialization.deserialization.IncompatibleVersionErrorData
import org.jetbrains.kotlin.serialization.deserialization.getName
@@ -62,12 +49,23 @@ class KotlinDeserializedJvmSymbolsProvider(
private val javaClassFinder: JavaClassFinder,
private val kotlinScopeProvider: KotlinScopeProvider,
) : FirSymbolProvider(session) {
- private val classCache = SymbolProviderCache()
- private val typeAliasCache = SymbolProviderCache()
- private val packagePartsCache = SymbolProviderCache>()
+ private val annotationsLoader = AnnotationsLoader(session)
+ private val typeAliasCache = session.firCachesFactory.createCache(::findAndDeserializeTypeAlias)
+ private val packagePartsCache = session.firCachesFactory.createCache(::tryComputePackagePartInfos)
+
+ private val classCache =
+ session.firCachesFactory.createCacheWithPostCompute(
+ createValue = { classId, context -> findAndDeserializeClass(classId, context) },
+ postCompute = { _, symbol, result ->
+ if (result != null && symbol != null) {
+ postCompute(result.kotlinJvmBinaryClass, result.byteContent, symbol)
+ }
+ }
+ )
+
+
+ private val knownNameInPackageCache = KnownNameInPackageCache(session, javaClassFinder)
- // TODO: implement thread safety for this property
- private val handledByJava = HashSet()
private class PackagePartsCacheData(
val proto: ProtoBuf.Package,
@@ -87,22 +85,12 @@ class KotlinDeserializedJvmSymbolsProvider(
}
}
- private val knownClassNamesInPackage = mutableMapOf?>()
-
- // This function returns true if we are sure that no top-level class with this id is available
- // If it returns false, it means we can say nothing about this id
- private fun hasNoTopLevelClassOf(classId: ClassId): Boolean {
- val knownNames = knownClassNamesInPackage.getOrPut(classId.packageFqName) {
- javaClassFinder.knownClassNamesInPackage(classId.packageFqName)
- } ?: return false
- return classId.relativeClassName.topLevelName() !in knownNames
- }
private fun computePackagePartsInfos(packageFqName: FqName): List {
return packagePartProvider.findPackageParts(packageFqName.asString()).mapNotNull { partName ->
val classId = ClassId.topLevel(JvmClassName.byInternalName(partName).fqNameForTopLevelClassMaybeWithDollars)
- if (hasNoTopLevelClassOf(classId)) return@mapNotNull null
+ if (knownNameInPackageCache.hasNoTopLevelClassOf(classId)) return@mapNotNull null
val (kotlinJvmBinaryClass, byteContent) =
kotlinClassFinder.findKotlinClassOrContent(classId) as? KotlinClassFinder.Result.KotlinClass ?: return@mapNotNull null
@@ -143,20 +131,22 @@ class KotlinDeserializedJvmSymbolsProvider(
get() = classHeader.isPreRelease
override fun getClassLikeSymbolByFqName(classId: ClassId): FirClassLikeSymbol<*>? {
- return findAndDeserializeClass(classId) ?: findAndDeserializeTypeAlias(classId)
+ return getClass(classId) ?: getTypeAlias(classId)
}
- private fun findAndDeserializeTypeAlias(
+ private fun getTypeAlias(
classId: ClassId,
): FirTypeAliasSymbol? {
if (!classId.relativeClassName.isOneSegmentFQN()) return null
- return typeAliasCache.lookupCacheOrCalculate(classId) {
- getPackageParts(classId.packageFqName).firstNotNullResult { part ->
- val ids = part.typeAliasNameIndex[classId.shortClassName]
- if (ids == null || ids.isEmpty()) return@firstNotNullResult null
- val aliasProto = ids.map { part.proto.getTypeAlias(it) }.single()
- part.context.memberDeserializer.loadTypeAlias(aliasProto).symbol
- }
+ return typeAliasCache.getValue(classId)
+ }
+
+ private fun findAndDeserializeTypeAlias(classId: ClassId): FirTypeAliasSymbol? {
+ return getPackageParts(classId.packageFqName).firstNotNullResult { part ->
+ val ids = part.typeAliasNameIndex[classId.shortClassName]
+ if (ids == null || ids.isEmpty()) return@firstNotNullResult null
+ val aliasProto = ids.map { part.proto.getTypeAlias(it) }.single()
+ part.context.memberDeserializer.loadTypeAlias(aliasProto).symbol
}
}
@@ -166,192 +156,66 @@ class KotlinDeserializedJvmSymbolsProvider(
return JvmProtoBufUtil.readClassDataFrom(data, strings)
}
- private fun ConeClassLikeLookupTag.toDefaultResolvedTypeRef(): FirResolvedTypeRef =
- buildResolvedTypeRef {
- type = constructClassType(emptyArray(), isNullable = false)
- }
-
- private fun loadAnnotation(
- annotationClassId: ClassId, result: MutableList,
- ): KotlinJvmBinaryClass.AnnotationArgumentVisitor {
- val lookupTag = ConeClassLikeLookupTagImpl(annotationClassId)
-
- return object : KotlinJvmBinaryClass.AnnotationArgumentVisitor {
- private val argumentMap = mutableMapOf()
-
- override fun visit(name: Name?, value: Any?) {
- if (name != null) {
- argumentMap[name] = createConstant(value)
- }
- }
-
- private fun ClassLiteralValue.toFirClassReferenceExpression(): FirClassReferenceExpression {
- val literalLookupTag = ConeClassLikeLookupTagImpl(classId)
- return buildClassReferenceExpression {
- classTypeRef = literalLookupTag.toDefaultResolvedTypeRef()
- }
- }
-
- private fun ClassId.toEnumEntryReferenceExpression(name: Name): FirExpression {
- return buildFunctionCall {
- val entryPropertySymbol =
- this@KotlinDeserializedJvmSymbolsProvider.session.firSymbolProvider.getClassDeclaredPropertySymbols(
- this@toEnumEntryReferenceExpression, name,
- ).firstOrNull()
-
- calleeReference = when {
- entryPropertySymbol != null -> {
- buildResolvedNamedReference {
- this.name = name
- resolvedSymbol = entryPropertySymbol
- }
- }
- else -> {
- buildErrorNamedReference {
- diagnostic = ConeSimpleDiagnostic(
- "Strange deserialized enum value: ${this@toEnumEntryReferenceExpression}.$name",
- DiagnosticKind.Java,
- )
- }
- }
- }
- }
- }
-
- override fun visitClassLiteral(name: Name, value: ClassLiteralValue) {
- argumentMap[name] = buildGetClassCall {
- argumentList = buildUnaryArgumentList(value.toFirClassReferenceExpression())
- }
- }
-
- override fun visitEnum(name: Name, enumClassId: ClassId, enumEntryName: Name) {
- argumentMap[name] = enumClassId.toEnumEntryReferenceExpression(enumEntryName)
- }
-
- override fun visitArray(name: Name): AnnotationArrayArgumentVisitor {
- return object : AnnotationArrayArgumentVisitor {
- private val elements = mutableListOf()
-
- override fun visit(value: Any?) {
- elements.add(createConstant(value))
- }
-
- override fun visitEnum(enumClassId: ClassId, enumEntryName: Name) {
- elements.add(enumClassId.toEnumEntryReferenceExpression(enumEntryName))
- }
-
- override fun visitClassLiteral(value: ClassLiteralValue) {
- elements.add(
- buildGetClassCall {
- argumentList = buildUnaryArgumentList(value.toFirClassReferenceExpression())
- }
- )
- }
-
- override fun visitEnd() {
- argumentMap[name] = buildArrayOfCall {
- argumentList = buildArgumentList {
- arguments += elements
- }
- }
- }
- }
- }
-
- override fun visitAnnotation(name: Name, classId: ClassId): KotlinJvmBinaryClass.AnnotationArgumentVisitor {
- val list = mutableListOf()
- val visitor = loadAnnotation(classId, list)
- return object : KotlinJvmBinaryClass.AnnotationArgumentVisitor by visitor {
- override fun visitEnd() {
- visitor.visitEnd()
- argumentMap[name] = list.single()
- }
- }
- }
-
- override fun visitEnd() {
- result += buildAnnotationCall {
- annotationTypeRef = lookupTag.toDefaultResolvedTypeRef()
- argumentList = buildArgumentList {
- for ((name, expression) in argumentMap) {
- arguments += buildNamedArgumentExpression {
- this.expression = expression
- this.name = name
- isSpread = false
- }
- }
- }
- calleeReference = FirReferencePlaceholderForResolvedAnnotations
- }
- }
-
- private fun createConstant(value: Any?): FirExpression {
- return value.createConstantOrError(session)
- }
- }
- }
-
- internal fun loadAnnotationIfNotSpecial(
- annotationClassId: ClassId, result: MutableList,
- ): KotlinJvmBinaryClass.AnnotationArgumentVisitor? {
- if (annotationClassId in SpecialJvmAnnotations.SPECIAL_ANNOTATIONS) return null
- return loadAnnotation(annotationClassId, result)
- }
private fun findAndDeserializeClassViaParent(classId: ClassId): FirRegularClassSymbol? {
val outerClassId = classId.outerClassId ?: return null
- findAndDeserializeClass(outerClassId) ?: return null
- return classCache[classId]
+ getClass(outerClassId) ?: return null
+ return classCache.getValueIfComputed(classId)
+ }
+
+ private fun getClass(
+ classId: ClassId,
+ parentContext: FirDeserializationContext? = null
+ ): FirRegularClassSymbol? {
+ return classCache.getValue(classId, parentContext)
}
private fun findAndDeserializeClass(
classId: ClassId,
parentContext: FirDeserializationContext? = null
- ): FirRegularClassSymbol? {
- if (hasNoTopLevelClassOf(classId)) return null
- if (classId in classCache) return classCache[classId]
-
- if (classId in handledByJava) return null
-
+ ): Pair {
+ if (knownNameInPackageCache.hasNoTopLevelClassOf(classId)) return null to null
val result = try {
kotlinClassFinder.findKotlinClassOrContent(classId)
} catch (e: ProcessCanceledException) {
- return null
+ return null to null
}
- val (kotlinJvmBinaryClass, byteContent) = when (result) {
+ val kotlinClass = when (result) {
is KotlinClassFinder.Result.KotlinClass -> result
is KotlinClassFinder.Result.ClassFileContent -> {
- handledByJava.add(classId)
- return try {
- javaSymbolProvider.getFirJavaClass(classId, result)
- } catch (e: ProcessCanceledException) {
- null
- }
+ return javaSymbolProvider.getFirJavaClass(classId, result) to null
}
- null -> return findAndDeserializeClassViaParent(classId)
+ null -> return findAndDeserializeClassViaParent(classId) to null
}
- if (kotlinJvmBinaryClass.classHeader.kind != KotlinClassHeader.Kind.CLASS) return null
- val (nameResolver, classProto) = kotlinJvmBinaryClass.readClassDataFrom() ?: return null
+ if (kotlinClass.kotlinJvmBinaryClass.classHeader.kind != KotlinClassHeader.Kind.CLASS) return null to null
+ val (nameResolver, classProto) = kotlinClass.kotlinJvmBinaryClass.readClassDataFrom() ?: return null to null
if (parentContext == null && Flags.CLASS_KIND.get(classProto.flags) == ProtoBuf.Class.Kind.COMPANION_OBJECT) {
- return findAndDeserializeClassViaParent(classId)
+ return findAndDeserializeClassViaParent(classId) to null
}
val symbol = FirRegularClassSymbol(classId)
deserializeClassToSymbol(
classId, classProto, symbol, nameResolver, session,
- JvmBinaryAnnotationDeserializer(session, kotlinJvmBinaryClass, byteContent),
+ JvmBinaryAnnotationDeserializer(session, kotlinClass.kotlinJvmBinaryClass, kotlinClass.byteContent),
kotlinScopeProvider,
- parentContext, KotlinJvmBinarySourceElement(kotlinJvmBinaryClass),
- this::findAndDeserializeClass
+ parentContext, KotlinJvmBinarySourceElement(kotlinClass.kotlinJvmBinaryClass),
+ this::getClass
)
- classCache[classId] = symbol
+ return symbol to kotlinClass
+ }
+
+ fun postCompute(
+ kotlinJvmBinaryClass: KotlinJvmBinaryClass,
+ byteContent: ByteArray?,
+ symbol: FirRegularClassSymbol
+ ) {
val annotations = mutableListOf()
kotlinJvmBinaryClass.loadClassAnnotations(
object : KotlinJvmBinaryClass.AnnotationVisitor {
override fun visitAnnotation(classId: ClassId, source: SourceElement): KotlinJvmBinaryClass.AnnotationArgumentVisitor? {
- return loadAnnotationIfNotSpecial(classId, annotations)
+ return annotationsLoader.loadAnnotationIfNotSpecial(classId, annotations)
}
override fun visitEnd() {
@@ -360,7 +224,6 @@ class KotlinDeserializedJvmSymbolsProvider(
byteContent,
)
(symbol.fir.annotations as MutableList) += annotations
- return symbol
}
private fun loadFunctionsByName(part: PackagePartsCacheData, name: Name): List {
@@ -399,14 +262,29 @@ class KotlinDeserializedJvmSymbolsProvider(
}
private fun getPackageParts(packageFqName: FqName): Collection {
- return packagePartsCache.lookupCacheOrCalculate(packageFqName) {
- try {
- computePackagePartsInfos(packageFqName)
- } catch (e: ProcessCanceledException) {
- emptyList()
- }
- }!!
+ return packagePartsCache.getValue(packageFqName)
+ }
+
+ private fun tryComputePackagePartInfos(packageFqName: FqName): List {
+ return try {
+ computePackagePartsInfos(packageFqName)
+ } catch (e: ProcessCanceledException) {
+ emptyList()
+ }
}
override fun getPackage(fqName: FqName): FqName? = null
}
+
+private class KnownNameInPackageCache(session: FirSession, private val javaClassFinder: JavaClassFinder) {
+ private val knownClassNamesInPackage = session.firCachesFactory.createCache(javaClassFinder::knownClassNamesInPackage)
+
+ /**
+ * This function returns true if we are sure that no top-level class with this id is available
+ * If it returns false, it means we can say nothing about this id
+ */
+ fun hasNoTopLevelClassOf(classId: ClassId): Boolean {
+ val knownNames = knownClassNamesInPackage.getValue(classId.packageFqName) ?: return false
+ return classId.relativeClassName.topLevelName() !in knownNames
+ }
+}
\ No newline at end of file
diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/Arguments.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/Arguments.kt
index 511470096ca..172cbb4cae8 100644
--- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/Arguments.kt
+++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/Arguments.kt
@@ -310,7 +310,7 @@ private fun checkApplicabilityForArgumentType(
if (expectedType == null) return
if (isReceiver && isDispatch) {
if (!expectedType.isNullable && argumentType.isMarkedNullable) {
- sink.reportDiagnostic(InapplicableWrongReceiver)
+ sink.reportDiagnostic(InapplicableWrongReceiver(expectedType, argumentType))
}
return
}
@@ -323,10 +323,10 @@ private fun checkApplicabilityForArgumentType(
val nullableExpectedType = expectedType.withNullability(ConeNullability.NULLABLE, context.session.typeContext)
if (csBuilder.addSubtypeConstraintIfCompatible(argumentType, nullableExpectedType, position)) {
- sink.reportDiagnostic(InapplicableWrongReceiver) // TODO
+ sink.reportDiagnostic(InapplicableWrongReceiver(expectedType, argumentType)) // TODO
} else {
csBuilder.addSubtypeConstraint(argumentType, expectedType, position)
- sink.reportDiagnostic(InapplicableWrongReceiver)
+ sink.reportDiagnostic(InapplicableWrongReceiver(expectedType, argumentType))
}
}
}
diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/ResolutionDiagnostic.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/ResolutionDiagnostic.kt
index b3ee019a4c8..fa1ac80d2fd 100644
--- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/ResolutionDiagnostic.kt
+++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/ResolutionDiagnostic.kt
@@ -8,6 +8,7 @@ package org.jetbrains.kotlin.fir.resolve.calls
import org.jetbrains.kotlin.fir.declarations.FirFunction
import org.jetbrains.kotlin.fir.declarations.FirValueParameter
import org.jetbrains.kotlin.fir.expressions.FirExpression
+import org.jetbrains.kotlin.fir.types.ConeKotlinType
import org.jetbrains.kotlin.resolve.calls.tower.CandidateApplicability
abstract class ResolutionDiagnostic(val applicability: CandidateApplicability)
@@ -57,7 +58,10 @@ object HiddenCandidate : ResolutionDiagnostic(CandidateApplicability.HIDDEN)
object ResolvedWithLowPriority : ResolutionDiagnostic(CandidateApplicability.RESOLVED_LOW_PRIORITY)
-object InapplicableWrongReceiver : ResolutionDiagnostic(CandidateApplicability.INAPPLICABLE_WRONG_RECEIVER)
+class InapplicableWrongReceiver(
+ val expectedType: ConeKotlinType? = null,
+ val actualType: ConeKotlinType? = null,
+) : ResolutionDiagnostic(CandidateApplicability.INAPPLICABLE_WRONG_RECEIVER)
object LowerPriorityToPreserveCompatibilityDiagnostic : ResolutionDiagnostic(CandidateApplicability.RESOLVED_NEED_PRESERVE_COMPATIBILITY)
diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/ResolutionStages.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/ResolutionStages.kt
index 50bfa79c876..bb3b6eb744b 100644
--- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/ResolutionStages.kt
+++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/ResolutionStages.kt
@@ -39,17 +39,17 @@ internal object CheckExplicitReceiverConsistency : ResolutionStage() {
when (receiverKind) {
NO_EXPLICIT_RECEIVER -> {
if (explicitReceiver != null && explicitReceiver !is FirResolvedQualifier && !explicitReceiver.isSuperReferenceExpression()) {
- return sink.yieldDiagnostic(InapplicableWrongReceiver)
+ return sink.yieldDiagnostic(InapplicableWrongReceiver(actualType = explicitReceiver.typeRef.coneTypeSafe()))
}
}
EXTENSION_RECEIVER, DISPATCH_RECEIVER -> {
if (explicitReceiver == null) {
- return sink.yieldDiagnostic(InapplicableWrongReceiver)
+ return sink.yieldDiagnostic(InapplicableWrongReceiver())
}
}
BOTH_RECEIVERS -> {
if (explicitReceiver == null) {
- return sink.yieldDiagnostic(InapplicableWrongReceiver)
+ return sink.yieldDiagnostic(InapplicableWrongReceiver())
}
// Here we should also check additional invoke receiver
}
@@ -105,7 +105,7 @@ object CheckDispatchReceiver : ResolutionStage() {
val dispatchReceiverValueType = candidate.dispatchReceiverValue?.type ?: return
if (!AbstractNullabilityChecker.isSubtypeOfAny(context.session.typeContext, dispatchReceiverValueType)) {
- sink.yieldDiagnostic(InapplicableWrongReceiver)
+ sink.yieldDiagnostic(InapplicableWrongReceiver(actualType = dispatchReceiverValueType))
}
}
}
diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/tower/FirTowerResolveTask.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/tower/FirTowerResolveTask.kt
index f3f765ab45a..24b9e468dae 100644
--- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/tower/FirTowerResolveTask.kt
+++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/tower/FirTowerResolveTask.kt
@@ -47,6 +47,9 @@ internal class TowerDataElementsForName(
towerDataElement.implicitReceiver?.let { receiver -> IndexedValue(index, receiver) }
}
}
+
+ val emptyScopes = mutableSetOf()
+ val implicitReceiverValuesWithEmptyScopes = mutableSetOf>()
}
internal abstract class FirBaseTowerResolveTask(
@@ -137,8 +140,7 @@ internal abstract class FirBaseTowerResolveTask(
towerLevel
)
if (collector.isSuccess()) onSuccessfulLevel(finalGroup)
- return result == ProcessorAction.NONE
-
+ return result == ProcessResult.SCOPE_EMPTY
}
}
diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/tower/TowerGroup.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/tower/TowerGroup.kt
index bf091f7276f..25c59b9207f 100644
--- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/tower/TowerGroup.kt
+++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/tower/TowerGroup.kt
@@ -5,30 +5,48 @@
package org.jetbrains.kotlin.fir.resolve.calls.tower
-sealed class TowerGroupKind(private val index: Int) : Comparable {
- abstract class WithDepth(index: Int, val depth: Int) : TowerGroupKind(index)
+import java.lang.Long.toBinaryString
- object Start : TowerGroupKind(Integer.MIN_VALUE)
+sealed class TowerGroupKind(val index: Byte) : Comparable {
+ abstract class WithDepth(index: Byte, val depth: Int) : TowerGroupKind(index) {
+ override fun equals(other: Any?): Boolean {
+ if (this === other) return true
+ if (javaClass != other?.javaClass) return false
- object ClassifierPrioritized : TowerGroupKind(-10)
+ other as WithDepth
- object Qualifier : TowerGroupKind(0)
+ if (index != other.index) return false
+ if (depth != other.depth) return false
- object Classifier : TowerGroupKind(10)
+ return true
+ }
- class TopPrioritized(depth: Int) : WithDepth(20, depth)
+ override fun hashCode(): Int {
+ return 31 * depth + index
+ }
+ }
- object Member : TowerGroupKind(30)
+ object Start : TowerGroupKind(0b0)
- class Local(depth: Int) : WithDepth(40, depth)
+ object ClassifierPrioritized : TowerGroupKind(1)
- class ImplicitOrNonLocal(depth: Int, val kindForDebugSake: String) : WithDepth(50, depth)
+ object Qualifier : TowerGroupKind(2)
- object InvokeExtension : TowerGroupKind(60)
+ object Classifier : TowerGroupKind(3)
- object QualifierValue : TowerGroupKind(70)
+ class TopPrioritized(depth: Int) : WithDepth(4, depth)
- object Last : TowerGroupKind(Integer.MAX_VALUE)
+ object Member : TowerGroupKind(5)
+
+ class Local(depth: Int) : WithDepth(6, depth)
+
+ class ImplicitOrNonLocal(depth: Int, val kindForDebugSake: String) : WithDepth(7, depth)
+
+ object InvokeExtension : TowerGroupKind(8)
+
+ object QualifierValue : TowerGroupKind(9)
+
+ object Last : TowerGroupKind(0b1111)
override fun compareTo(other: TowerGroupKind): Int {
val indexResult = index.compareTo(other.index)
@@ -50,13 +68,85 @@ sealed class TowerGroupKind(private val index: Int) : Comparable
@Suppress("FunctionName", "unused", "PropertyName")
class TowerGroup
private constructor(
- private val kinds: Array,
+ private val code: Long,
+ private val debugKinds: Array,
private val invokeResolvePriority: InvokeResolvePriority = InvokeResolvePriority.NONE
) : Comparable {
companion object {
- private fun kindOf(kind: TowerGroupKind): TowerGroup = TowerGroup(arrayOf(kind))
- val EmptyRoot = TowerGroup(emptyArray())
+ private const val KIND_MASK = 0b1111
+ private val KIND_SIZE_BITS: Int = Integer.bitCount(KIND_MASK)
+ private const val DEPTH_MASK = 0xFFFF // 16bit
+ private val DEPTH_SIZE_BITS: Int = Integer.bitCount(DEPTH_MASK)
+ private const val USED_BITS_MASK: Long = 0b111111 // max size 64 bits
+ private const val TOTAL_BITS = 64
+ private val USABLE_BITS = java.lang.Long.numberOfLeadingZeros(USED_BITS_MASK)
+
+ private val EMPTY_KIND_ARRAY = emptyArray()
+
+ private const val DEBUG = false // enables tower group debugging
+
+ private fun appendDebugKind(kinds: Array, kind: TowerGroupKind): Array {
+ return if (DEBUG) {
+ kinds + kind
+ } else {
+ EMPTY_KIND_ARRAY
+ }
+ }
+
+ private fun debugKindArrayOf(kind: TowerGroupKind): Array {
+ return if (DEBUG) {
+ arrayOf(kind)
+ } else {
+ EMPTY_KIND_ARRAY
+ }
+ }
+
+ /*
+ K - bits of index
+ D - bits of depth
+ U - bits of used bits count
+ TowerGroupKind(K): KKKK.....UUUUUU
+ WithDepth(K, D): KKKKDDDDDDDDDD.....UUUUUU
+
+ Subscript operation:
+ KKKK....000100
+ KKKKKKKK....001000
+
+ Start.Start > Start
+ 00000000...001000 > 0000...000100
+ */
+ private fun subscript(code: Long, kind: TowerGroupKind): Long {
+ val usedBits = (code and USED_BITS_MASK).toInt()
+ return when (kind) {
+ is TowerGroupKind.WithDepth -> {
+ val kindUsedBits = usedBits + KIND_SIZE_BITS
+ val depthUsedBits = kindUsedBits + DEPTH_SIZE_BITS
+ require(kind.depth <= DEPTH_MASK) {
+ "Depth overflow: requested: ${kind.depth}, allowed: $DEPTH_MASK"
+ }
+ require(depthUsedBits <= USABLE_BITS) {
+ "BitGroup overflow: newUsedBits: $depthUsedBits, original: ${toBinaryString(code)}, usedBits: $usedBits"
+ }
+
+ (code or kind.index.toLong().shl(TOTAL_BITS - kindUsedBits)
+ or kind.depth.toLong().shl(TOTAL_BITS - depthUsedBits)
+ or depthUsedBits.toLong())
+ }
+ else -> {
+ val newUsedBits = usedBits + KIND_SIZE_BITS
+
+ require(newUsedBits <= USABLE_BITS)
+ code or kind.index.toLong().shl(TOTAL_BITS - newUsedBits) or newUsedBits.toLong()
+ }
+ }
+ }
+
+ private fun kindOf(kind: TowerGroupKind): TowerGroup {
+ return TowerGroup(subscript(0, kind), debugKindArrayOf(kind))
+ }
+
+ val EmptyRoot = TowerGroup(0, EMPTY_KIND_ARRAY)
val Start = kindOf(TowerGroupKind.Start)
@@ -80,7 +170,7 @@ private constructor(
val Last = kindOf(TowerGroupKind.Last)
}
- private fun kindOf(kind: TowerGroupKind): TowerGroup = TowerGroup(kinds + kind)
+ private fun kindOf(kind: TowerGroupKind): TowerGroup = TowerGroup(subscript(code, kind), appendDebugKind(debugKinds, kind))
val Member get() = kindOf(TowerGroupKind.Member)
@@ -98,44 +188,56 @@ private constructor(
// It could be implemented via another TowerGroupKind, but it's not clear what priority should be assigned to the new TowerGroupKind
fun InvokeResolvePriority(invokeResolvePriority: InvokeResolvePriority): TowerGroup {
if (invokeResolvePriority == InvokeResolvePriority.NONE) return this
- return TowerGroup(kinds, invokeResolvePriority)
+ return TowerGroup(code, debugKinds, invokeResolvePriority)
}
- override fun compareTo(other: TowerGroup): Int {
+ private fun debugCompareTo(other: TowerGroup): Int {
var index = 0
- while (index < kinds.size) {
- if (index >= other.kinds.size) return 1
+ while (index < debugKinds.size) {
+ if (index >= other.debugKinds.size) return 1
when {
- kinds[index] < other.kinds[index] -> return -1
- kinds[index] > other.kinds[index] -> return 1
+ debugKinds[index] < other.debugKinds[index] -> return -1
+ debugKinds[index] > other.debugKinds[index] -> return 1
}
index++
}
- if (index < other.kinds.size) return -1
+ if (index < other.debugKinds.size) return -1
return invokeResolvePriority.compareTo(other.invokeResolvePriority)
}
+ override fun compareTo(other: TowerGroup): Int = run {
+ val result = java.lang.Long.compareUnsigned(code, other.code)
+ if (result != 0) return@run result
+ return@run invokeResolvePriority.compareTo(other.invokeResolvePriority)
+ }.also {
+ if (DEBUG) {
+ val debugResult = debugCompareTo(other)
+ require(debugResult == it) { "Kind comparison incorrect: $this vs $other, expected: $it, $debugResult" }
+ }
+ }
+
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (javaClass != other?.javaClass) return false
other as TowerGroup
- if (!kinds.contentEquals(other.kinds)) return false
+ if (code != other.code) return false
+ if (DEBUG) require(this.debugKinds.contentEquals(other.debugKinds)) { "Equals inconsistent: $this vs $other" }
if (invokeResolvePriority != other.invokeResolvePriority) return false
return true
}
- override fun hashCode(): Int {
- var result = kinds.contentHashCode()
- result = 31 * result + invokeResolvePriority.hashCode()
- return result
+ override fun toString(): String {
+ return "TowerGroup(code=${toBinaryString(code)}, debugKinds=${debugKinds.contentToString()}, invokeResolvePriority=$invokeResolvePriority)"
}
- override fun toString(): String {
- return "TowerGroup(kinds=${kinds.contentToString()}, invokeResolvePriority=$invokeResolvePriority)"
+ override fun hashCode(): Int {
+ var result = code.hashCode()
+ result = 31 * result + invokeResolvePriority.hashCode()
+ return result
}
diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/tower/TowerLevelHandler.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/tower/TowerLevelHandler.kt
index 6c17c315da7..5e8ecf8814e 100644
--- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/tower/TowerLevelHandler.kt
+++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/tower/TowerLevelHandler.kt
@@ -22,7 +22,7 @@ internal class CandidateFactoriesAndCollectors(
internal class TowerLevelHandler {
// Try to avoid adding additional state here
- private var processResult = ProcessorAction.NONE
+ private var processResult = ProcessResult.SCOPE_EMPTY
fun handleLevel(
collector: CandidateCollector,
@@ -31,8 +31,8 @@ internal class TowerLevelHandler {
explicitReceiverKind: ExplicitReceiverKind,
group: TowerGroup,
towerLevel: SessionBasedTowerLevel
- ): ProcessorAction {
- processResult = ProcessorAction.NONE
+ ): ProcessResult {
+ processResult = ProcessResult.SCOPE_EMPTY
val processor =
TowerScopeLevelProcessor(
info,
diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/tower/TowerLevels.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/tower/TowerLevels.kt
index 37fbc428bad..73e60d9c20b 100644
--- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/tower/TowerLevels.kt
+++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/tower/TowerLevels.kt
@@ -29,6 +29,15 @@ import org.jetbrains.kotlin.name.Name
import org.jetbrains.kotlin.types.AbstractTypeChecker
import org.jetbrains.kotlin.util.OperatorNameConventions
+enum class ProcessResult {
+ FOUND, SCOPE_EMPTY;
+
+ operator fun plus(other: ProcessResult): ProcessResult {
+ if (this == FOUND || other == FOUND) return FOUND
+ return this
+ }
+}
+
abstract class TowerScopeLevel {
sealed class Token> {
@@ -37,11 +46,11 @@ abstract class TowerScopeLevel {
object Objects : Token>()
}
- abstract fun processFunctionsByName(name: Name, processor: TowerScopeLevelProcessor>): ProcessorAction
+ abstract fun processFunctionsByName(name: Name, processor: TowerScopeLevelProcessor>): ProcessResult
- abstract fun processPropertiesByName(name: Name, processor: TowerScopeLevelProcessor>): ProcessorAction
+ abstract fun processPropertiesByName(name: Name, processor: TowerScopeLevelProcessor>): ProcessResult
- abstract fun processObjectsByName(name: Name, processor: TowerScopeLevelProcessor>): ProcessorAction
+ abstract fun processObjectsByName(name: Name, processor: TowerScopeLevelProcessor>): ProcessResult
interface TowerScopeLevelProcessor> {
fun consumeCandidate(
@@ -79,9 +88,9 @@ class MemberScopeTowerLevel(
private fun > processMembers(
output: TowerScopeLevelProcessor,
processScopeMembers: FirScope.(processor: (T) -> Unit) -> Unit
- ): ProcessorAction {
+ ): ProcessResult {
var empty = true
- val scope = dispatchReceiverValue.scope(session, scopeSession) ?: return ProcessorAction.NONE
+ val scope = dispatchReceiverValue.scope(session, scopeSession) ?: return ProcessResult.SCOPE_EMPTY
scope.processScopeMembers { candidate ->
empty = false
if (candidate is FirCallableSymbol<*> &&
@@ -118,16 +127,16 @@ class MemberScopeTowerLevel(
output.consumeCandidate(symbol, dispatchReceiverValue, null, scope)
}
}
- return if (empty) ProcessorAction.NONE else ProcessorAction.NEXT
+ return if (empty) ProcessResult.SCOPE_EMPTY else ProcessResult.FOUND
}
override fun processFunctionsByName(
name: Name,
processor: TowerScopeLevelProcessor>
- ): ProcessorAction {
+ ): ProcessResult {
val isInvoke = name == OperatorNameConventions.INVOKE
if (implicitExtensionInvokeMode && !isInvoke) {
- return ProcessorAction.NEXT
+ return ProcessResult.FOUND
}
return processMembers(processor) { consumer ->
this.processFunctionsAndConstructorsByName(
@@ -145,7 +154,7 @@ class MemberScopeTowerLevel(
override fun processPropertiesByName(
name: Name,
processor: TowerScopeLevelProcessor>
- ): ProcessorAction {
+ ): ProcessResult {
return processMembers(processor) { consumer ->
this.processPropertiesByName(name) {
// WARNING, DO NOT CAST FUNCTIONAL TYPE ITSELF
@@ -158,8 +167,8 @@ class MemberScopeTowerLevel(
override fun processObjectsByName(
name: Name,
processor: TowerScopeLevelProcessor>
- ): ProcessorAction {
- return ProcessorAction.NEXT
+ ): ProcessResult {
+ return ProcessResult.FOUND
}
override fun replaceReceiverValue(receiverValue: ReceiverValue): SessionBasedTowerLevel {
@@ -262,7 +271,7 @@ class ScopeTowerLevel(
override fun processFunctionsByName(
name: Name,
processor: TowerScopeLevelProcessor>
- ): ProcessorAction {
+ ): ProcessResult {
var empty = true
scope.processFunctionsAndConstructorsByName(
name,
@@ -273,25 +282,25 @@ class ScopeTowerLevel(
empty = false
consumeCallableCandidate(candidate, processor)
}
- return if (empty) ProcessorAction.NONE else ProcessorAction.NEXT
+ return if (empty) ProcessResult.SCOPE_EMPTY else ProcessResult.FOUND
}
override fun processPropertiesByName(
name: Name,
processor: TowerScopeLevelProcessor>
- ): ProcessorAction {
+ ): ProcessResult {
var empty = true
scope.processPropertiesByName(name) { candidate ->
empty = false
consumeCallableCandidate(candidate, processor)
}
- return if (empty) ProcessorAction.NONE else ProcessorAction.NEXT
+ return if (empty) ProcessResult.SCOPE_EMPTY else ProcessResult.FOUND
}
override fun processObjectsByName(
name: Name,
processor: TowerScopeLevelProcessor>
- ): ProcessorAction {
+ ): ProcessResult {
var empty = true
scope.processClassifiersByName(name) {
empty = false
@@ -301,7 +310,7 @@ class ScopeTowerLevel(
scope = scope
)
}
- return if (empty) ProcessorAction.NONE else ProcessorAction.NEXT
+ return if (empty) ProcessResult.SCOPE_EMPTY else ProcessResult.FOUND
}
}
diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/diagnostics/FirDiagnostics.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/diagnostics/FirDiagnostics.kt
index e50a0be8f76..8555107a894 100644
--- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/diagnostics/FirDiagnostics.kt
+++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/diagnostics/FirDiagnostics.kt
@@ -9,6 +9,7 @@ import org.jetbrains.kotlin.fir.declarations.FirCallableDeclaration
import org.jetbrains.kotlin.fir.diagnostics.ConeDiagnostic
import org.jetbrains.kotlin.fir.render
import org.jetbrains.kotlin.fir.resolve.calls.Candidate
+import org.jetbrains.kotlin.fir.resolve.calls.ResolutionDiagnostic
import org.jetbrains.kotlin.fir.symbols.AbstractFirBasedSymbol
import org.jetbrains.kotlin.fir.symbols.impl.FirCallableSymbol
import org.jetbrains.kotlin.fir.symbols.impl.FirClassLikeSymbol
@@ -37,14 +38,16 @@ class ConeHiddenCandidateError(
override val reason: String get() = "HIDDEN: ${describeSymbol(candidateSymbol)} is invisible"
}
-class ConeInapplicableCandidateError(
+class ConeInapplicableCandidateError private constructor(
val applicability: CandidateApplicability,
val candidateSymbol: AbstractFirBasedSymbol<*>,
+ val diagnostics: List,
val errors: List
) : ConeDiagnostic() {
constructor(applicability: CandidateApplicability, candidate: Candidate) : this(
applicability,
candidate.symbol,
+ candidate.diagnostics,
candidate.system.errors
)
diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/providers/SymbolProviderCache.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/providers/SymbolProviderCache.kt
deleted file mode 100644
index 0a489a928de..00000000000
--- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/providers/SymbolProviderCache.kt
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
- * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
- */
-
-package org.jetbrains.kotlin.fir.resolve.providers
-
-import org.jetbrains.kotlin.fir.PrivateForInline
-
-@Suppress("EXPERIMENTAL_FEATURE_WARNING")
-inline class SymbolProviderCache @PrivateForInline constructor(@PrivateForInline val cache: HashMap) {
- @OptIn(PrivateForInline::class)
- constructor() : this(HashMap())
-
- @PrivateForInline
- object NullValue
-
- @OptIn(PrivateForInline::class)
- inline fun lookupCacheOrCalculate(key: K, crossinline l: (K) -> V?): V? {
- @Suppress("UNCHECKED_CAST")
- return when (val value = cache[key]) {
- null -> {
- val calculated = l(key)
- cache[key] = calculated ?: NullValue
- calculated
- }
- NullValue -> null
- else -> value as V
- }
- }
-
- @OptIn(PrivateForInline::class)
- inline fun lookupCacheOrCalculateWithPostCompute(
- key: K, crossinline l: (K) -> Pair, postCompute: (V, T) -> Unit
- ): V? {
- @Suppress("UNCHECKED_CAST")
- return when (val value = cache[key]) {
- null -> {
- val calculated = l(key)
- cache[key] = calculated.first ?: NullValue
- calculated.first?.let { postCompute(it, calculated.second) }
- calculated.first
- }
- NullValue -> null
- else -> value as V
- }
- }
-
- @OptIn(PrivateForInline::class)
- operator fun contains(key: K): Boolean = key in cache
-
- @Suppress("UNCHECKED_CAST")
- @OptIn(PrivateForInline::class)
- operator fun get(key: K): V? = cache[key].takeIf { it !== NullValue } as V?
-
- @OptIn(PrivateForInline::class)
- operator fun set(key: K, value: V) {
- cache[key] = value
- }
-
- @OptIn(PrivateForInline::class)
- fun remove(key: K) {
- cache.remove(key)
- }
-}
diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/providers/impl/FirDependenciesSymbolProviderImpl.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/providers/impl/FirDependenciesSymbolProviderImpl.kt
index 98ffefa6c29..833837538fb 100644
--- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/providers/impl/FirDependenciesSymbolProviderImpl.kt
+++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/providers/impl/FirDependenciesSymbolProviderImpl.kt
@@ -7,11 +7,11 @@ package org.jetbrains.kotlin.fir.resolve.providers.impl
import org.jetbrains.kotlin.fir.FirSession
import org.jetbrains.kotlin.fir.ThreadSafeMutableState
+import org.jetbrains.kotlin.fir.caches.*
import org.jetbrains.kotlin.fir.dependenciesWithoutSelf
import org.jetbrains.kotlin.fir.resolve.firSymbolProvider
import org.jetbrains.kotlin.fir.resolve.providers.FirSymbolProvider
import org.jetbrains.kotlin.fir.resolve.providers.FirSymbolProviderInternals
-import org.jetbrains.kotlin.fir.resolve.providers.SymbolProviderCache
import org.jetbrains.kotlin.fir.symbols.CallableId
import org.jetbrains.kotlin.fir.symbols.impl.FirCallableSymbol
import org.jetbrains.kotlin.fir.symbols.impl.FirClassLikeSymbol
@@ -20,14 +20,16 @@ import org.jetbrains.kotlin.fir.symbols.impl.FirPropertySymbol
import org.jetbrains.kotlin.name.ClassId
import org.jetbrains.kotlin.name.FqName
import org.jetbrains.kotlin.name.Name
+import org.jetbrains.kotlin.utils.addToStdlib.firstNotNullResult
@ThreadSafeMutableState
open class FirDependenciesSymbolProviderImpl(session: FirSession) : FirSymbolProvider(session) {
- private val classCache = SymbolProviderCache>()
- private val topLevelCallableCache = SymbolProviderCache>>()
- private val topLevelFunctionCache = SymbolProviderCache>()
- private val topLevelPropertyCache = SymbolProviderCache>()
- private val packageCache = SymbolProviderCache()
+ private val classCache = session.firCachesFactory.createCache(::computeClass)
+ private val topLevelCallableCache = session.firCachesFactory.createCache(::computeTopLevelCallables)
+ private val topLevelFunctionCache = session.firCachesFactory.createCache(::computeTopLevelFunctions)
+ private val topLevelPropertyCache = session.firCachesFactory.createCache(::computeTopLevelProperties)
+ private val packageCache = session.firCachesFactory.createCache(::computePackage)
+
protected open val dependencyProviders by lazy {
val moduleInfo = session.moduleInfo ?: return@lazy emptyList()
@@ -36,26 +38,36 @@ open class FirDependenciesSymbolProviderImpl(session: FirSession) : FirSymbolPro
}.toList()
}
+ @OptIn(FirSymbolProviderInternals::class, ExperimentalStdlibApi::class)
+ private fun computeTopLevelCallables(callableId: CallableId): List> = buildList {
+ dependencyProviders.forEach { it.getTopLevelCallableSymbolsTo(this, callableId.packageName, callableId.callableName) }
+ }
+
+ @OptIn(FirSymbolProviderInternals::class, ExperimentalStdlibApi::class)
+ private fun computeTopLevelFunctions(callableId: CallableId): List = buildList {
+ dependencyProviders.forEach { it.getTopLevelFunctionSymbolsTo(this, callableId.packageName, callableId.callableName) }
+ }
+
+ @OptIn(FirSymbolProviderInternals::class, ExperimentalStdlibApi::class)
+ private fun computeTopLevelProperties(callableId: CallableId): List = buildList {
+ dependencyProviders.forEach { it.getTopLevelPropertySymbolsTo(this, callableId.packageName, callableId.callableName) }
+ }
+
+ private fun computePackage(it: FqName): FqName? =
+ dependencyProviders.firstNotNullResult { provider -> provider.getPackage(it) }
+
+ private fun computeClass(classId: ClassId): FirClassLikeSymbol<*>? =
+ dependencyProviders.firstNotNullResult { provider -> provider.getClassLikeSymbolByFqName(classId) }
+
+
@FirSymbolProviderInternals
override fun getTopLevelFunctionSymbolsTo(destination: MutableList, packageFqName: FqName, name: Name) {
- destination += topLevelFunctionCache.lookupCacheOrCalculate(CallableId(packageFqName, null, name)) {
- val result = mutableListOf()
- dependencyProviders.forEach {
- it.getTopLevelFunctionSymbolsTo(result, packageFqName, name)
- }
- result
- } ?: emptyList()
+ destination += topLevelFunctionCache.getValue(CallableId(packageFqName, name))
}
@FirSymbolProviderInternals
override fun getTopLevelPropertySymbolsTo(destination: MutableList, packageFqName: FqName, name: Name) {
- destination += topLevelPropertyCache.lookupCacheOrCalculate(CallableId(packageFqName, null, name)) {
- val result = mutableListOf()
- dependencyProviders.forEach {
- it.getTopLevelPropertySymbolsTo(result, packageFqName, name)
- }
- result
- } ?: emptyList()
+ destination += topLevelPropertyCache.getValue(CallableId(packageFqName, name))
}
@FirSymbolProviderInternals
@@ -64,30 +76,14 @@ open class FirDependenciesSymbolProviderImpl(session: FirSession) : FirSymbolPro
}
override fun getTopLevelCallableSymbols(packageFqName: FqName, name: Name): List> {
- return topLevelCallableCache.lookupCacheOrCalculate(CallableId(packageFqName, null, name)) {
- dependencyProviders.flatMap { provider -> provider.getTopLevelCallableSymbols(packageFqName, name) }
- } ?: emptyList()
+ return topLevelCallableCache.getValue(CallableId(packageFqName, name))
}
override fun getClassLikeSymbolByFqName(classId: ClassId): FirClassLikeSymbol<*>? {
- return classCache.lookupCacheOrCalculate(classId) {
- for (provider in dependencyProviders) {
- provider.getClassLikeSymbolByFqName(classId)?.let {
- return@lookupCacheOrCalculate it
- }
- }
- null
- }
+ return classCache.getValue(classId)
}
override fun getPackage(fqName: FqName): FqName? {
- return packageCache.lookupCacheOrCalculate(fqName) {
- for (provider in dependencyProviders) {
- provider.getPackage(fqName)?.let {
- return@lookupCacheOrCalculate it
- }
- }
- null
- }
+ return packageCache.getValue(fqName)
}
}
diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/types/ConeInferenceContext.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/types/ConeInferenceContext.kt
index 8b24fb9e583..eafd1ba2afb 100644
--- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/types/ConeInferenceContext.kt
+++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/types/ConeInferenceContext.kt
@@ -58,7 +58,8 @@ interface ConeInferenceContext : TypeSystemInferenceExtensionContext, ConeTypeCo
constructor: TypeConstructorMarker,
arguments: List,
nullable: Boolean,
- isExtensionFunction: Boolean
+ isExtensionFunction: Boolean,
+ annotations: List? // TODO: process annotations
): SimpleTypeMarker {
val attributes = if (isExtensionFunction) // TODO: assert correct type constructor
ConeAttributes.WithExtensionFunctionType
@@ -360,6 +361,10 @@ interface ConeInferenceContext : TypeSystemInferenceExtensionContext, ConeTypeCo
return this is ConeCapturedTypeConstructor
}
+ override fun TypeConstructorMarker.isTypeParameterTypeConstructor(): Boolean {
+ return this.getTypeParameterClassifier() != null
+ }
+
override fun KotlinTypeMarker.removeExactAnnotation(): KotlinTypeMarker {
// TODO
return this
diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/types/ConeTypeContext.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/types/ConeTypeContext.kt
index 169e38722e2..91df2893bea 100644
--- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/types/ConeTypeContext.kt
+++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/types/ConeTypeContext.kt
@@ -402,6 +402,11 @@ interface ConeTypeContext : TypeSystemContext, TypeSystemOptimizationContext, Ty
return false
}
+ override fun KotlinTypeMarker.getAnnotations(): List {
+ require(this is ConeKotlinType)
+ return emptyList() // TODO
+ }
+
override fun SimpleTypeMarker.isStubType(): Boolean {
return this is StubTypeMarker
}
diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/types/FirCorrespondingSupertypesCache.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/types/FirCorrespondingSupertypesCache.kt
index eb31055161d..8422957eeeb 100644
--- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/types/FirCorrespondingSupertypesCache.kt
+++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/types/FirCorrespondingSupertypesCache.kt
@@ -20,7 +20,6 @@ import org.jetbrains.kotlin.types.model.TypeConstructorMarker
@ThreadSafeMutableState
class FirCorrespondingSupertypesCache(private val session: FirSession) : FirSessionComponent {
- private val context = ConeTypeCheckerContext(isErrorTypeEqualsToAnything = false, isStubTypeEqualsToAnything = true, session = session)
private val cache = HashMap>?>(1000, 0.5f)
fun getCorrespondingSupertypes(
@@ -29,27 +28,30 @@ class FirCorrespondingSupertypesCache(private val session: FirSession) : FirSess
): List? {
if (type !is ConeClassLikeType || supertypeConstructor !is ConeClassLikeLookupTag) return null
+ val context = ConeTypeCheckerContext(isErrorTypeEqualsToAnything = false, isStubTypeEqualsToAnything = true, session = session)
val lookupTag = type.lookupTag
- if (lookupTag == supertypeConstructor) return listOf(captureType(type))
-
+ if (lookupTag == supertypeConstructor) return listOf(captureType(type, context))
if (lookupTag !in cache) {
- cache[lookupTag] = computeSupertypesMap(lookupTag)
+ cache[lookupTag] = computeSupertypesMap(lookupTag, context)
}
val resultTypes = cache[lookupTag]?.getOrDefault(supertypeConstructor, emptyList()) ?: return null
if (type.typeArguments.isEmpty()) return resultTypes
- val capturedType = captureType(type)
+ val capturedType = captureType(type, context)
val substitutionSupertypePolicy = context.substitutionSupertypePolicy(capturedType)
return resultTypes.map {
substitutionSupertypePolicy.transformType(context, it) as ConeClassLikeType
}
}
- private fun captureType(type: ConeClassLikeType): ConeClassLikeType =
+ private fun captureType(type: ConeClassLikeType, context: ConeTypeCheckerContext): ConeClassLikeType =
(context.captureFromArguments(type, CaptureStatus.FOR_SUBTYPING) ?: type) as ConeClassLikeType
- private fun computeSupertypesMap(subtypeLookupTag: ConeClassLikeLookupTag): Map>? {
+ private fun computeSupertypesMap(
+ subtypeLookupTag: ConeClassLikeLookupTag,
+ context: ConeTypeCheckerContext
+ ): Map>? {
val resultingMap = HashMap>()
val subtypeFirClass: FirClassLikeDeclaration<*> = subtypeLookupTag.toSymbol(session)?.fir ?: return null
@@ -64,7 +66,7 @@ class FirCorrespondingSupertypesCache(private val session: FirSession) : FirSess
if (context.anySupertype(
defaultType,
{ it !is ConeClassLikeType || it.lookupTag.toSymbol(session) !is FirClassLikeSymbol<*> }
- ) { supertype -> computeSupertypePolicyAndPutInMap(supertype, resultingMap) }
+ ) { supertype -> computeSupertypePolicyAndPutInMap(supertype, resultingMap, context) }
) {
return null
}
@@ -76,7 +78,8 @@ class FirCorrespondingSupertypesCache(private val session: FirSession) : FirSess
private fun computeSupertypePolicyAndPutInMap(
supertype: SimpleTypeMarker,
- resultingMap: MutableMap>
+ resultingMap: MutableMap>,
+ context: ConeTypeCheckerContext
): AbstractTypeCheckerContext.SupertypesPolicy {
val supertypeLookupTag = (supertype as ConeClassLikeType).lookupTag
val captured = context.captureFromArguments(supertype, CaptureStatus.FOR_SUBTYPING) as ConeClassLikeType? ?: supertype
diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/types/TypeUtils.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/types/TypeUtils.kt
index 5faf26003be..7b2e341b402 100644
--- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/types/TypeUtils.kt
+++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/types/TypeUtils.kt
@@ -11,7 +11,6 @@ import org.jetbrains.kotlin.fir.FirFakeSourceElementKind
import org.jetbrains.kotlin.fir.FirSession
import org.jetbrains.kotlin.fir.declarations.classId
import org.jetbrains.kotlin.fir.diagnostics.ConeSimpleDiagnostic
-import org.jetbrains.kotlin.fir.expressions.classId
import org.jetbrains.kotlin.fir.fakeElement
import org.jetbrains.kotlin.fir.render
import org.jetbrains.kotlin.fir.resolve.fullyExpandedType
@@ -270,17 +269,8 @@ fun FirTypeRef.approximatedForPublicPosition(approximator: AbstractTypeApproxima
else
this
-private fun ConeKotlinType.requiresApproximationInPublicPosition(): Boolean {
- return when (this) {
- is ConeIntegerLiteralType,
- is ConeCapturedType,
- is ConeDefinitelyNotNullType,
- is ConeIntersectionType -> true
- is ConeClassLikeType -> typeArguments.any {
- it is ConeKotlinTypeProjection && it.type.requiresApproximationInPublicPosition()
- }
- else -> false
- }
+private fun ConeKotlinType.requiresApproximationInPublicPosition(): Boolean = contains {
+ it is ConeIntegerLiteralType || it is ConeCapturedType || it is ConeDefinitelyNotNullType || it is ConeIntersectionType
}
/*
diff --git a/compiler/fir/tree/build.gradle.kts b/compiler/fir/tree/build.gradle.kts
index 8a6b4d3d1e1..f2a608fb727 100644
--- a/compiler/fir/tree/build.gradle.kts
+++ b/compiler/fir/tree/build.gradle.kts
@@ -56,3 +56,9 @@ if (kotlinBuildProperties.isInJpsBuildIdeaSync) {
this.module.generatedSourceDirs.add(generationRoot)
}
}
+
+kotlin {
+ sourceSets.all {
+ languageSettings.enableLanguageFeature("InlineClasses")
+ }
+}
\ No newline at end of file
diff --git a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/ClassMembers.kt b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/ClassMembers.kt
index 8fe3915a9e2..70886469e9b 100644
--- a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/ClassMembers.kt
+++ b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/ClassMembers.kt
@@ -32,6 +32,7 @@ var FirCallableDeclaration<*>.containingClassAttr: ConeClassLikeLookupTag? by Fi
val FirCallableDeclaration<*>.isIntersectionOverride get() = origin == FirDeclarationOrigin.IntersectionOverride
val FirCallableDeclaration<*>.isSubstitutionOverride get() = origin == FirDeclarationOrigin.SubstitutionOverride
+val FirCallableDeclaration<*>.isSubstitutionOrIntersectionOverride get() = isSubstitutionOverride || isIntersectionOverride
inline val > D.originalForSubstitutionOverride: D?
get() = if (isSubstitutionOverride) originalForSubstitutionOverrideAttr else null
diff --git a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/caches/FirCacheWithPostCompute.kt b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/caches/FirCacheWithPostCompute.kt
new file mode 100644
index 00000000000..2921e4f95bf
--- /dev/null
+++ b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/caches/FirCacheWithPostCompute.kt
@@ -0,0 +1,15 @@
+/*
+ * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
+ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
+ */
+
+package org.jetbrains.kotlin.fir.caches
+
+abstract class FirCache {
+ abstract fun getValue(key: KEY, context: CONTEXT): VALUE
+ abstract fun getValueIfComputed(key: KEY): VALUE?
+}
+
+@Suppress("NOTHING_TO_INLINE")
+inline fun FirCache.getValue(key: KEY): VALUE =
+ getValue(key, null)
diff --git a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/caches/FirCachesFactory.kt b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/caches/FirCachesFactory.kt
new file mode 100644
index 00000000000..4cc8d948c0f
--- /dev/null
+++ b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/caches/FirCachesFactory.kt
@@ -0,0 +1,74 @@
+/*
+ * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
+ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
+ */
+
+package org.jetbrains.kotlin.fir.caches
+
+import org.jetbrains.kotlin.fir.FirSession
+import org.jetbrains.kotlin.fir.FirSessionComponent
+
+abstract class FirCachesFactory : FirSessionComponent {
+ /**
+ * Creates a cache with returns a value by key on demand if it is computed
+ * Otherwise computes the value in [createValue] and caches it for future invocations
+ *
+ * [FirCache.getValue] should not be called inside [createValue]
+ *
+ * Where:
+ * [CONTEXT] -- type of value which be used to create value by [createValue]
+ */
+ abstract fun createCache(createValue: (KEY, CONTEXT) -> VALUE): FirCache
+
+ /**
+ * Creates a cache with returns a caches value on demand if it is computed
+ * Otherwise computes the value in two phases:
+ * - [createValue] -- creates values and stores [VALUE] to cache and passes [VALUE] & [DATA] to [postCompute]
+ * - [postCompute] -- performs some operations on computed value after it placed into map
+ *
+ * [FirCache.getValue] can be safely called in postCompute from the same thread and correct value computed by [createValue] will be returned
+ * [FirCache.getValue] should not be called inside [createValue]
+ *
+ * Where:
+ * [CONTEXT] -- type of value which be used to create value by [createValue]
+ * [DATA] -- type of additional data which will be passed from [createValue] to [postCompute]
+ */
+ abstract fun createCacheWithPostCompute(
+ createValue: (KEY, CONTEXT) -> Pair,
+ postCompute: (KEY, VALUE, DATA) -> Unit
+ ): FirCache
+}
+
+val FirSession.firCachesFactory: FirCachesFactory by FirSession.sessionComponentAccessor()
+
+inline fun FirCachesFactory.createCache(
+ crossinline createValue: (KEY) -> VALUE,
+): FirCache = createCache(
+ createValue = { key, _ -> createValue(key) },
+)
+
+inline fun FirCachesFactory.createCacheWithPostCompute(
+ crossinline createValue: (KEY, CONTEXT) -> VALUE,
+ crossinline postCompute: (KEY, VALUE) -> Unit
+): FirCache = createCacheWithPostCompute(
+ createValue = { key, context -> createValue(key, context) to null },
+ postCompute = { key, value, _ -> postCompute(key, value) }
+)
+
+inline fun FirCachesFactory.createCacheWithPostCompute(
+ crossinline createValue: (KEY) -> VALUE,
+ crossinline postCompute: (KEY, VALUE) -> Unit
+): FirCache = createCacheWithPostCompute(
+ createValue = { key, _ -> createValue(key) to null },
+ postCompute = { key, value, _ -> postCompute(key, value) }
+)
+
+inline fun FirCachesFactory.createCacheWithPostCompute(
+ crossinline createValue: (KEY) -> Pair,
+ crossinline postCompute: (KEY, VALUE, DATA) -> Unit
+): FirCache = createCacheWithPostCompute(
+ createValue = { key, _ -> createValue(key) },
+ postCompute = { key, value, data -> postCompute(key, value, data) }
+)
+
+
diff --git a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/caches/FirThreadUnsafeCachesFactory.kt b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/caches/FirThreadUnsafeCachesFactory.kt
new file mode 100644
index 00000000000..5532f99dfbc
--- /dev/null
+++ b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/caches/FirThreadUnsafeCachesFactory.kt
@@ -0,0 +1,55 @@
+/*
+ * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
+ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
+ */
+
+package org.jetbrains.kotlin.fir.caches
+
+object FirThreadUnsafeCachesFactory : FirCachesFactory() {
+ override fun createCache(createValue: (KEY, CONTEXT) -> VALUE): FirCache =
+ FirThreadUnsafeCache(createValue)
+
+ override fun createCacheWithPostCompute(
+ createValue: (KEY, CONTEXT) -> Pair,
+ postCompute: (KEY, VALUE, DATA) -> Unit
+ ): FirCache =
+ FirThreadUnsafeCacheWithPostCompute(createValue, postCompute)
+}
+
+@Suppress("UNCHECKED_CAST")
+private class FirThreadUnsafeCache(
+ private val createValue: (KEY, CONTEXT) -> VALUE
+) : FirCache() {
+ private val map = NullableMap()
+
+ override fun getValue(key: KEY, context: CONTEXT): VALUE =
+ map.getOrElse(key) {
+ createValue(key, context).also { createdValue ->
+ map[key] = createdValue
+ }
+ }
+
+ override fun getValueIfComputed(key: KEY): VALUE? =
+ map.getOrElse(key) { null as VALUE }
+}
+
+
+private class FirThreadUnsafeCacheWithPostCompute(
+ private val createValue: (KEY, CONTEXT) -> Pair,
+ private val postCompute: (KEY, VALUE, DATA) -> Unit
+) : FirCache() {
+ private val map = NullableMap()
+
+ override fun getValue(key: KEY, context: CONTEXT): VALUE =
+ map.getOrElse(key) {
+ val (createdValue, data) = createValue(key, context)
+ map[key] = createdValue
+ postCompute(key, createdValue, data)
+ createdValue
+ }
+
+
+ @Suppress("UNCHECKED_CAST")
+ override fun getValueIfComputed(key: KEY): VALUE? =
+ map.getOrElse(key) { null as VALUE }
+}
\ No newline at end of file
diff --git a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/caches/NullableMap.kt b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/caches/NullableMap.kt
new file mode 100644
index 00000000000..a94ccf03b4c
--- /dev/null
+++ b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/caches/NullableMap.kt
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
+ * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
+ */
+
+package org.jetbrains.kotlin.fir.caches
+
+import org.jetbrains.kotlin.fir.PrivateForInline
+
+/**
+ * [Map] which allows store null values
+ */
+@OptIn(PrivateForInline::class)
+internal inline class NullableMap(private val map: MutableMap = HashMap()) {
+
+ /**
+ * Get value if it is present in map
+ * Execute [orElse] otherwise and return it result,
+ * [orElse] can modify the map inside
+ */
+ @Suppress("UNCHECKED_CAST")
+ inline fun getOrElse(key: KEY, orElse: () -> VALUE): VALUE =
+ when (val value = map[key]) {
+ null -> orElse()
+ NullValue -> null
+ else -> value
+ } as VALUE
+
+ @Suppress("NOTHING_TO_INLINE")
+ inline operator fun set(key: KEY, value: VALUE) {
+ map[key] = value ?: NullValue
+ }
+}
+
+@PrivateForInline
+internal object NullValue
\ No newline at end of file
diff --git a/compiler/frontend.java/src/org/jetbrains/kotlin/load/java/sam/JavaSingleAbstractMethodUtils.java b/compiler/frontend.java/src/org/jetbrains/kotlin/load/java/sam/JavaSingleAbstractMethodUtils.java
index e1104e87ae5..a5c1fe7bb9b 100644
--- a/compiler/frontend.java/src/org/jetbrains/kotlin/load/java/sam/JavaSingleAbstractMethodUtils.java
+++ b/compiler/frontend.java/src/org/jetbrains/kotlin/load/java/sam/JavaSingleAbstractMethodUtils.java
@@ -63,7 +63,8 @@ public class JavaSingleAbstractMethodUtils {
public static SamAdapterDescriptor createSamAdapterFunction(
@NotNull JavaMethodDescriptor original,
@NotNull SamConversionResolver samResolver,
- @NotNull SamConversionOracle samConversionOracle
+ @NotNull SamConversionOracle samConversionOracle,
+ boolean allowNonSpreadArraysForVarargAfterSam
) {
SamAdapterFunctionDescriptor result = new SamAdapterFunctionDescriptor(original);
return initSamAdapter(original, result, new FunctionInitializer() {
@@ -83,14 +84,15 @@ public class JavaSingleAbstractMethodUtils {
original.getVisibility()
);
}
- }, samResolver, samConversionOracle);
+ }, samResolver, samConversionOracle, allowNonSpreadArraysForVarargAfterSam);
}
@NotNull
public static SamAdapterDescriptor createSamAdapterConstructor(
@NotNull JavaClassConstructorDescriptor original,
@NotNull SamConversionResolver samResolver,
- @NotNull SamConversionOracle samConversionOracle
+ @NotNull SamConversionOracle samConversionOracle,
+ boolean allowNonSpreadArraysForVarargAfterSam
) {
SamAdapterClassConstructorDescriptor result = new SamAdapterClassConstructorDescriptor(original);
return initSamAdapter(original, result, new FunctionInitializer() {
@@ -103,7 +105,7 @@ public class JavaSingleAbstractMethodUtils {
result.initialize(valueParameters, original.getVisibility());
result.setReturnType(returnType);
}
- }, samResolver, samConversionOracle);
+ }, samResolver, samConversionOracle, allowNonSpreadArraysForVarargAfterSam);
}
@NotNull
@@ -112,7 +114,8 @@ public class JavaSingleAbstractMethodUtils {
@NotNull SamAdapterDescriptor adapter,
@NotNull FunctionInitializer initializer,
@NotNull SamConversionResolver samResolver,
- @NotNull SamConversionOracle samConversionOracle
+ @NotNull SamConversionOracle samConversionOracle,
+ boolean allowNonSpreadArraysForVarargAfterSam
) {
SamConstructorTypeParameters typeParameters;
if (adapter instanceof SamAdapterClassConstructorDescriptor) {
@@ -131,7 +134,7 @@ public class JavaSingleAbstractMethodUtils {
List valueParameters =
- createValueParametersForSamAdapter(original, adapter, substitutor, samResolver, samConversionOracle);
+ createValueParametersForSamAdapter(original, adapter, substitutor, samResolver, samConversionOracle, allowNonSpreadArraysForVarargAfterSam);
initializer.initialize(typeParameters.getDescriptors(), valueParameters, returnType);
@@ -143,7 +146,8 @@ public class JavaSingleAbstractMethodUtils {
@NotNull FunctionDescriptor samAdapter,
@NotNull TypeSubstitutor substitutor,
@NotNull SamConversionResolver samResolver,
- @NotNull SamConversionOracle samConversionOracle
+ @NotNull SamConversionOracle samConversionOracle,
+ boolean allowNonSpreadArraysForVarargAfterSam
) {
List originalValueParameters = original.getValueParameters();
List