Drop Experimental.Impact, simplify related code and tests
See https://github.com/Kotlin/KEEP/issues/95#issuecomment-383889404 Drop Experimental.changesMayBreak, Experimental.Impact, the concept of signature/body usage, same module exemption. Make the majority of tests single-module because there is now no difference in the checker between usages from the same module or from another module
This commit is contained in:
+10
-20
@@ -2077,16 +2077,16 @@ public class DiagnosticsTestWithStdLibGenerated extends AbstractDiagnosticsTestW
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/annotation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("bodyUsageInSameModule.kt")
|
||||
public void testBodyUsageInSameModule() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/bodyUsageInSameModule.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("bodyUsages.kt")
|
||||
public void testBodyUsages() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/bodyUsages.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("bodyUsagesAndInline.kt")
|
||||
public void testBodyUsagesAndInline() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/bodyUsagesAndInline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classMembers.kt")
|
||||
public void testClassMembers() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/classMembers.kt");
|
||||
@@ -2097,11 +2097,6 @@ public class DiagnosticsTestWithStdLibGenerated extends AbstractDiagnosticsTestW
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/classMembersOverlyExperimental.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compilationVsLinkageVsRuntime.kt")
|
||||
public void testCompilationVsLinkageVsRuntime() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/compilationVsLinkageVsRuntime.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constVal.kt")
|
||||
public void testConstVal() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/constVal.kt");
|
||||
@@ -2122,11 +2117,6 @@ public class DiagnosticsTestWithStdLibGenerated extends AbstractDiagnosticsTestW
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/experimentalOnWholeModule.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("experimentalWithNoImpact.kt")
|
||||
public void testExperimentalWithNoImpact() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/experimentalWithNoImpact.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("incorrectTargetsForExperimentalAnnotation.kt")
|
||||
public void testIncorrectTargetsForExperimentalAnnotation() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/incorrectTargetsForExperimentalAnnotation.kt");
|
||||
@@ -2137,11 +2127,6 @@ public class DiagnosticsTestWithStdLibGenerated extends AbstractDiagnosticsTestW
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/incorrectUseExperimental.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("indirectBodyUsageInAnotherModule.kt")
|
||||
public void testIndirectBodyUsageInAnotherModule() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/indirectBodyUsageInAnotherModule.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("override.kt")
|
||||
public void testOverride() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/override.kt");
|
||||
@@ -2172,6 +2157,11 @@ public class DiagnosticsTestWithStdLibGenerated extends AbstractDiagnosticsTestW
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/useExperimentalOnFile.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("useExperimentalOnFileWithVeryExperimentalMarker.kt")
|
||||
public void testUseExperimentalOnFileWithVeryExperimentalMarker() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/useExperimentalOnFileWithVeryExperimentalMarker.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("useExperimentalOnWholeModule.kt")
|
||||
public void testUseExperimentalOnWholeModule() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/useExperimentalOnWholeModule.kt");
|
||||
|
||||
compiler/tests/org/jetbrains/kotlin/checkers/javac/DiagnosticsTestWithStdLibUsingJavacGenerated.java
Generated
+10
-20
@@ -2077,16 +2077,16 @@ public class DiagnosticsTestWithStdLibUsingJavacGenerated extends AbstractDiagno
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/annotation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("bodyUsageInSameModule.kt")
|
||||
public void testBodyUsageInSameModule() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/bodyUsageInSameModule.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("bodyUsages.kt")
|
||||
public void testBodyUsages() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/bodyUsages.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("bodyUsagesAndInline.kt")
|
||||
public void testBodyUsagesAndInline() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/bodyUsagesAndInline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classMembers.kt")
|
||||
public void testClassMembers() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/classMembers.kt");
|
||||
@@ -2097,11 +2097,6 @@ public class DiagnosticsTestWithStdLibUsingJavacGenerated extends AbstractDiagno
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/classMembersOverlyExperimental.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compilationVsLinkageVsRuntime.kt")
|
||||
public void testCompilationVsLinkageVsRuntime() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/compilationVsLinkageVsRuntime.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constVal.kt")
|
||||
public void testConstVal() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/constVal.kt");
|
||||
@@ -2122,11 +2117,6 @@ public class DiagnosticsTestWithStdLibUsingJavacGenerated extends AbstractDiagno
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/experimentalOnWholeModule.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("experimentalWithNoImpact.kt")
|
||||
public void testExperimentalWithNoImpact() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/experimentalWithNoImpact.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("incorrectTargetsForExperimentalAnnotation.kt")
|
||||
public void testIncorrectTargetsForExperimentalAnnotation() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/incorrectTargetsForExperimentalAnnotation.kt");
|
||||
@@ -2137,11 +2127,6 @@ public class DiagnosticsTestWithStdLibUsingJavacGenerated extends AbstractDiagno
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/incorrectUseExperimental.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("indirectBodyUsageInAnotherModule.kt")
|
||||
public void testIndirectBodyUsageInAnotherModule() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/indirectBodyUsageInAnotherModule.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("override.kt")
|
||||
public void testOverride() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/override.kt");
|
||||
@@ -2172,6 +2157,11 @@ public class DiagnosticsTestWithStdLibUsingJavacGenerated extends AbstractDiagno
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/useExperimentalOnFile.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("useExperimentalOnFileWithVeryExperimentalMarker.kt")
|
||||
public void testUseExperimentalOnFileWithVeryExperimentalMarker() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/useExperimentalOnFileWithVeryExperimentalMarker.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("useExperimentalOnWholeModule.kt")
|
||||
public void testUseExperimentalOnWholeModule() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/experimental/useExperimentalOnWholeModule.kt");
|
||||
|
||||
@@ -186,11 +186,6 @@ public class CliTestGenerated extends AbstractCliTest {
|
||||
runTest("compiler/testData/cli/jvm/experimentalNested.args");
|
||||
}
|
||||
|
||||
@TestMetadata("experimentalRuntimeScope.args")
|
||||
public void testExperimentalRuntimeScope() throws Exception {
|
||||
runTest("compiler/testData/cli/jvm/experimentalRuntimeScope.args");
|
||||
}
|
||||
|
||||
@TestMetadata("experimentalUnresolved.args")
|
||||
public void testExperimentalUnresolved() throws Exception {
|
||||
runTest("compiler/testData/cli/jvm/experimentalUnresolved.args");
|
||||
|
||||
Reference in New Issue
Block a user