[SLC] throw exception on redundant test data file
This commit is contained in:
+2
@@ -35,6 +35,7 @@ import java.io.File
|
|||||||
import java.nio.file.Path
|
import java.nio.file.Path
|
||||||
import kotlin.io.path.exists
|
import kotlin.io.path.exists
|
||||||
import kotlin.io.path.nameWithoutExtension
|
import kotlin.io.path.nameWithoutExtension
|
||||||
|
import kotlin.test.fail
|
||||||
|
|
||||||
// Same as LightProjectDescriptor.TEST_MODULE_NAME
|
// Same as LightProjectDescriptor.TEST_MODULE_NAME
|
||||||
private const val TEST_MODULE_NAME = "light_idea_test_case"
|
private const val TEST_MODULE_NAME = "light_idea_test_case"
|
||||||
@@ -147,6 +148,7 @@ abstract class AbstractSymbolLightClassesTestBase(
|
|||||||
val identicalCheckerHelper = IdenticalCheckerHelper(testServices)
|
val identicalCheckerHelper = IdenticalCheckerHelper(testServices)
|
||||||
if (identicalCheckerHelper.contentsAreEquals(java.toFile(), firJava.toFile(), trimLines = true)) {
|
if (identicalCheckerHelper.contentsAreEquals(java.toFile(), firJava.toFile(), trimLines = true)) {
|
||||||
identicalCheckerHelper.deleteFirFile(java.toFile())
|
identicalCheckerHelper.deleteFirFile(java.toFile())
|
||||||
|
fail("$firJava is equals to $java. The redundant test data file removed")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
compiler/testData/asJava/lightClasses/lightClassByFqName/compilationErrors/WrongAnnotations.fir.java
Vendored
-31
@@ -1,31 +0,0 @@
|
|||||||
public final class A /* A*/ {
|
|
||||||
@org.jetbrains.annotations.NotNull()
|
|
||||||
public static final A.Companion Companion;
|
|
||||||
|
|
||||||
@kotlin.jvm.JvmStatic()
|
|
||||||
public static final void f3();// f3()
|
|
||||||
|
|
||||||
public A();// .ctor()
|
|
||||||
|
|
||||||
public static final class Companion /* A.Companion*/ {
|
|
||||||
@kotlin.jvm.JvmName()
|
|
||||||
public final void f4();// f4()
|
|
||||||
|
|
||||||
@kotlin.jvm.JvmName(name = "realName")
|
|
||||||
public final void realName();// realName()
|
|
||||||
|
|
||||||
@kotlin.jvm.JvmName(name = 1)
|
|
||||||
public final void f2();// f2()
|
|
||||||
|
|
||||||
@kotlin.jvm.JvmOverloads()
|
|
||||||
public final void f5();// f5()
|
|
||||||
|
|
||||||
@kotlin.jvm.JvmOverloads()
|
|
||||||
public final void f6();// f6()
|
|
||||||
|
|
||||||
@kotlin.jvm.JvmStatic()
|
|
||||||
public final void f3();// f3()
|
|
||||||
|
|
||||||
private Companion();// .ctor()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user