Tests: move more diagnostic tests to testsWithJvmBackend
In this commit, tests where backend diagnostics were reported correctly are being moved. FirScopeDumpHandler was added to FIR diagnostic tests with JVM backend to support `SCOPE_DUMP` in `overridesBuiltinNoMagic.kt` and `charAtAndOverload.kt`.
This commit is contained in:
committed by
Space Team
parent
56a1a3153b
commit
d986e0ee9c
-54
@@ -22453,12 +22453,6 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/j+k/collectionOverrides"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("charAtAndOverload.kt")
|
||||
public void testCharAtAndOverload() {
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/collectionOverrides/charAtAndOverload.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("charAtAndOverloadWithoutExplicitOverride.kt")
|
||||
public void testCharAtAndOverloadWithoutExplicitOverride() {
|
||||
@@ -22567,12 +22561,6 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/collectionOverrides/nonDirectHiddenOverride.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overridesBuiltinNoMagic.kt")
|
||||
public void testOverridesBuiltinNoMagic() {
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/collectionOverrides/overridesBuiltinNoMagic.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("removeAt.kt")
|
||||
public void testRemoveAt() {
|
||||
@@ -28258,12 +28246,6 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/overload/ConflictingOverloadsIdenticalFunsInClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ConflictingOverloadsIdenticalFunsTPInClass.kt")
|
||||
public void testConflictingOverloadsIdenticalFunsTPInClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/overload/ConflictingOverloadsIdenticalFunsTPInClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ConflictingOverloadsIdenticalValsInClass.kt")
|
||||
public void testConflictingOverloadsIdenticalValsInClass() {
|
||||
@@ -44890,24 +44872,6 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/duplicateJvmSignature/jvmNames.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jvmOverloads.kt")
|
||||
public void testJvmOverloads() {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/duplicateJvmSignature/jvmOverloads.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jvmStaticInClassObject.kt")
|
||||
public void testJvmStaticInClassObject() {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/duplicateJvmSignature/jvmStaticInClassObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jvmStaticInObject.kt")
|
||||
public void testJvmStaticInObject() {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/duplicateJvmSignature/jvmStaticInObject.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithStdLib/duplicateJvmSignature/statics")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@@ -44917,24 +44881,6 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithStdLib/duplicateJvmSignature/statics"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jjk.kt")
|
||||
public void testJjk() {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/duplicateJvmSignature/statics/jjk.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jk.kt")
|
||||
public void testJk() {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/duplicateJvmSignature/statics/jk.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jkjk.kt")
|
||||
public void testJkjk() {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/duplicateJvmSignature/statics/jkjk.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinMembersVsJavaNonVisibleStatics.kt")
|
||||
public void testKotlinMembersVsJavaNonVisibleStatics() {
|
||||
|
||||
-54
@@ -22453,12 +22453,6 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/j+k/collectionOverrides"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("charAtAndOverload.kt")
|
||||
public void testCharAtAndOverload() {
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/collectionOverrides/charAtAndOverload.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("charAtAndOverloadWithoutExplicitOverride.kt")
|
||||
public void testCharAtAndOverloadWithoutExplicitOverride() {
|
||||
@@ -22567,12 +22561,6 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/collectionOverrides/nonDirectHiddenOverride.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overridesBuiltinNoMagic.kt")
|
||||
public void testOverridesBuiltinNoMagic() {
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/collectionOverrides/overridesBuiltinNoMagic.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("removeAt.kt")
|
||||
public void testRemoveAt() {
|
||||
@@ -28258,12 +28246,6 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/overload/ConflictingOverloadsIdenticalFunsInClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ConflictingOverloadsIdenticalFunsTPInClass.kt")
|
||||
public void testConflictingOverloadsIdenticalFunsTPInClass() {
|
||||
runTest("compiler/testData/diagnostics/tests/overload/ConflictingOverloadsIdenticalFunsTPInClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ConflictingOverloadsIdenticalValsInClass.kt")
|
||||
public void testConflictingOverloadsIdenticalValsInClass() {
|
||||
@@ -44890,24 +44872,6 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/duplicateJvmSignature/jvmNames.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jvmOverloads.kt")
|
||||
public void testJvmOverloads() {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/duplicateJvmSignature/jvmOverloads.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jvmStaticInClassObject.kt")
|
||||
public void testJvmStaticInClassObject() {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/duplicateJvmSignature/jvmStaticInClassObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jvmStaticInObject.kt")
|
||||
public void testJvmStaticInObject() {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/duplicateJvmSignature/jvmStaticInObject.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithStdLib/duplicateJvmSignature/statics")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@@ -44917,24 +44881,6 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithStdLib/duplicateJvmSignature/statics"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jjk.kt")
|
||||
public void testJjk() {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/duplicateJvmSignature/statics/jjk.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jk.kt")
|
||||
public void testJk() {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/duplicateJvmSignature/statics/jk.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jkjk.kt")
|
||||
public void testJkjk() {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/duplicateJvmSignature/statics/jkjk.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinMembersVsJavaNonVisibleStatics.kt")
|
||||
public void testKotlinMembersVsJavaNonVisibleStatics() {
|
||||
|
||||
Reference in New Issue
Block a user