[Test] Exclude K2 MPP codegen box tests from K1 generated suites
Those tests always were muted for K1 because of incompatible module structure in testdata, so there is no actual sense to even generate them for K1
This commit is contained in:
committed by
Space Team
parent
b7bdbd270f
commit
b4947e6cfe
+2
-560
@@ -28,7 +28,7 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInBox() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true, "ranges/stepped", "compileKotlinAgainstKotlin", "testsWithJava9", "testsWithJava15", "testsWithJava17");
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true, "ranges/stepped", "compileKotlinAgainstKotlin", "testsWithJava9", "testsWithJava15", "testsWithJava17", "multiplatform/k2");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/annotations")
|
||||
@@ -29375,7 +29375,7 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInMultiplatform() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true, "k2");
|
||||
}
|
||||
|
||||
@TestMetadata("annotationsViaActualTypeAliasFromBinary.kt")
|
||||
@@ -29645,564 +29645,6 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/multiplatform/k2")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class K2 extends AbstractLightAnalysisModeTest {
|
||||
@TestMetadata("actualInnerClassesFirMemberMapping.kt")
|
||||
public void ignoreActualInnerClassesFirMemberMapping() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/actualInnerClassesFirMemberMapping.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionPropertiesOverloads.kt")
|
||||
public void ignoreExtensionPropertiesOverloads() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/extensionPropertiesOverloads.kt");
|
||||
}
|
||||
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInK2() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/k2"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("anonymousObjectAndSpecificImplementationInDeserializedIr.kt")
|
||||
public void testAnonymousObjectAndSpecificImplementationInDeserializedIr() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/anonymousObjectAndSpecificImplementationInDeserializedIr.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dataClassInCommonAndPlatform.kt")
|
||||
public void testDataClassInCommonAndPlatform() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/dataClassInCommonAndPlatform.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectValInInlineClass.kt")
|
||||
public void testExpectValInInlineClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectValInInlineClassJVM.kt")
|
||||
public void testExpectValInInlineClassJVM() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClassJVM.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("internalOverride.kt")
|
||||
public void testInternalOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/internalOverride.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("javaMethodWithTypeParameter.kt")
|
||||
public void testJavaMethodWithTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/javaMethodWithTypeParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmDeclarationsUpdatedMembersInCommonModule.kt")
|
||||
public void testJvmDeclarationsUpdatedMembersInCommonModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/jvmDeclarationsUpdatedMembersInCommonModule.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("staticjavaFieldInCommonCode.kt")
|
||||
public void testStaticjavaFieldInCommonCode() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/staticjavaFieldInCommonCode.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/multiplatform/k2/annotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Annotations extends AbstractLightAnalysisModeTest {
|
||||
@TestMetadata("annotationsViaActualTypeAliasFromBinary.kt")
|
||||
public void ignoreAnnotationsViaActualTypeAliasFromBinary() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/annotations/annotationsViaActualTypeAliasFromBinary.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("deprecatedAnnotationOnlyOnActual_useInCommon.kt")
|
||||
public void ignoreDeprecatedAnnotationOnlyOnActual_useInCommon() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/annotations/deprecatedAnnotationOnlyOnActual_useInCommon.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectClassInJvmMultifileFacade.kt")
|
||||
public void ignoreExpectClassInJvmMultifileFacade() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/annotations/expectClassInJvmMultifileFacade.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("optionalExpectation.kt")
|
||||
public void ignoreOptionalExpectation() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/annotations/optionalExpectation.kt");
|
||||
}
|
||||
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInAnnotations() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/k2/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("expectAnnotationCallInLibrary.kt")
|
||||
public void testExpectAnnotationCallInLibrary() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/annotations/expectAnnotationCallInLibrary.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/multiplatform/k2/basic")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Basic extends AbstractLightAnalysisModeTest {
|
||||
@TestMetadata("anyMethodInExpect.kt")
|
||||
public void ignoreAnyMethodInExpect() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/anyMethodInExpect.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectActualFakeOverrides2.kt")
|
||||
public void ignoreExpectActualFakeOverrides2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualFakeOverrides2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectActualFakeOverrides3.kt")
|
||||
public void ignoreExpectActualFakeOverrides3() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualFakeOverrides3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectActualFakeOverridesWithTypeParameters.kt")
|
||||
public void ignoreExpectActualFakeOverridesWithTypeParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualFakeOverridesWithTypeParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectActualFakeOverridesWithTypeParameters2.kt")
|
||||
public void ignoreExpectActualFakeOverridesWithTypeParameters2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualFakeOverridesWithTypeParameters2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectActualIntersectionOverride.kt")
|
||||
public void ignoreExpectActualIntersectionOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualIntersectionOverride.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectActualIntersectionOverride2.kt")
|
||||
public void ignoreExpectActualIntersectionOverride2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualIntersectionOverride2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectActualNullabilityBasedOverloads.kt")
|
||||
public void ignoreExpectActualNullabilityBasedOverloads() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualNullabilityBasedOverloads.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectProperty.kt")
|
||||
public void ignoreExpectProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intersectionOverrideInCommonModule.kt")
|
||||
public void ignoreIntersectionOverrideInCommonModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/intersectionOverrideInCommonModule.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intersectionOverrideWithDefaultParameterInCommonModule.kt")
|
||||
public void ignoreIntersectionOverrideWithDefaultParameterInCommonModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/intersectionOverrideWithDefaultParameterInCommonModule.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localIntersectionOverrideInCommonModule.kt")
|
||||
public void ignoreLocalIntersectionOverrideInCommonModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/localIntersectionOverrideInCommonModule.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localIntersectionOverrideWithDefaultParameterInCommonModule.kt")
|
||||
public void ignoreLocalIntersectionOverrideWithDefaultParameterInCommonModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/localIntersectionOverrideWithDefaultParameterInCommonModule.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localSubstitutionOverrideInCommonModule.kt")
|
||||
public void ignoreLocalSubstitutionOverrideInCommonModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/localSubstitutionOverrideInCommonModule.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noArgActualConstructor.kt")
|
||||
public void ignoreNoArgActualConstructor() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/noArgActualConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonExternalEquals.kt")
|
||||
public void ignoreNonExternalEquals() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/nonExternalEquals.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overridesOfExpectMembers.kt")
|
||||
public void ignoreOverridesOfExpectMembers() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/overridesOfExpectMembers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("removeExpectDeclarationsFromMetadata.kt")
|
||||
public void ignoreRemoveExpectDeclarationsFromMetadata() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/removeExpectDeclarationsFromMetadata.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("substitutionOverrideInCommonModule.kt")
|
||||
public void ignoreSubstitutionOverrideInCommonModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/substitutionOverrideInCommonModule.kt");
|
||||
}
|
||||
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("accessToLocalClassFromBackend.kt")
|
||||
public void testAccessToLocalClassFromBackend() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/accessToLocalClassFromBackend.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("actualFunctionWithArgumentOfExpectType.kt")
|
||||
public void testActualFunctionWithArgumentOfExpectType() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/actualFunctionWithArgumentOfExpectType.kt");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInBasic() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/k2/basic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("correctParentForTypeParameter.kt")
|
||||
public void testCorrectParentForTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/correctParentForTypeParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("enumEntryNameCall.kt")
|
||||
public void testEnumEntryNameCall() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/enumEntryNameCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectActualCallableReference.kt")
|
||||
public void testExpectActualCallableReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualCallableReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectActualDifferentExtensionReceiversOnOverloads.kt")
|
||||
public void testExpectActualDifferentExtensionReceiversOnOverloads() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentExtensionReceiversOnOverloads.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectActualDifferentPackages.kt")
|
||||
public void testExpectActualDifferentPackages() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentPackages.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectActualFakeOverrides.kt")
|
||||
public void testExpectActualFakeOverrides() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualFakeOverrides.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectActualMultiCommon.kt")
|
||||
public void testExpectActualMultiCommon() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualMultiCommon.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectActualOverloads.kt")
|
||||
public void testExpectActualOverloads() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualOverloads.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectActualSimple.kt")
|
||||
public void testExpectActualSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualSimple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectActualTypeParameters.kt")
|
||||
public void testExpectActualTypeParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypeParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectActualTypealias.kt")
|
||||
public void testExpectActualTypealias() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealias.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectActualTypealiasCoercion.kt")
|
||||
public void testExpectActualTypealiasCoercion() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealiasCoercion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectAndCommonFunctionOverloads.kt")
|
||||
public void testExpectAndCommonFunctionOverloads() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectAndCommonFunctionOverloads.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectInterfaceInSupertypes.kt")
|
||||
public void testExpectInterfaceInSupertypes() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectInterfaceInSupertypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectInterfaceInSupertypes2.kt")
|
||||
public void testExpectInterfaceInSupertypes2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectInterfaceInSupertypes2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("fakeOverridesInPlatformModule.kt")
|
||||
public void testFakeOverridesInPlatformModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/fakeOverridesInPlatformModule.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("getRidOfDoubleBindingInFir2IrLazyProperty.kt")
|
||||
public void testGetRidOfDoubleBindingInFir2IrLazyProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/getRidOfDoubleBindingInFir2IrLazyProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("independentCommonSourceModules.kt")
|
||||
public void testIndependentCommonSourceModules() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/independentCommonSourceModules.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("interfaceMethodFromSuperTypeIsImplementedInOtherExpectSuperClass.kt")
|
||||
public void testInterfaceMethodFromSuperTypeIsImplementedInOtherExpectSuperClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/interfaceMethodFromSuperTypeIsImplementedInOtherExpectSuperClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt-51753-1.kt")
|
||||
public void testKt_51753_1() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/kt-51753-1.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt-51753-2.kt")
|
||||
public void testKt_51753_2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/kt-51753-2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt-56329.kt")
|
||||
public void testKt_56329() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/kt-56329.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("transitiveSuperclassActualization.kt")
|
||||
public void testTransitiveSuperclassActualization() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/transitiveSuperclassActualization.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("transitiveSuperclassActualization_java.kt")
|
||||
public void testTransitiveSuperclassActualization_java() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/transitiveSuperclassActualization_java.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valueClasses.kt")
|
||||
public void testValueClasses() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/valueClasses.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("widerVisibilityInActualClassifier.kt")
|
||||
public void testWiderVisibilityInActualClassifier() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/widerVisibilityInActualClassifier.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/multiplatform/k2/complexMatchings")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ComplexMatchings extends AbstractLightAnalysisModeTest {
|
||||
@TestMetadata("expectCtorlessFinalToActualObject.kt")
|
||||
public void ignoreExpectCtorlessFinalToActualObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/complexMatchings/expectCtorlessFinalToActualObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectCtorlessFinalToActualUnit.kt")
|
||||
public void ignoreExpectCtorlessFinalToActualUnit() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/complexMatchings/expectCtorlessFinalToActualUnit.kt");
|
||||
}
|
||||
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInComplexMatchings() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/k2/complexMatchings"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/multiplatform/k2/defaultArguments")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class DefaultArguments extends AbstractLightAnalysisModeTest {
|
||||
@TestMetadata("bothInExpectAndActual.kt")
|
||||
public void ignoreBothInExpectAndActual() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/bothInExpectAndActual.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("bothInExpectAndActual2.kt")
|
||||
public void ignoreBothInExpectAndActual2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/bothInExpectAndActual2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constructor.kt")
|
||||
public void ignoreConstructor() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/constructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegatedExpectedInterface.kt")
|
||||
public void ignoreDelegatedExpectedInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/delegatedExpectedInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dispatchReceiverValue.kt")
|
||||
public void ignoreDispatchReceiverValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/dispatchReceiverValue.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionReceiverValue.kt")
|
||||
public void ignoreExtensionReceiverValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/extensionReceiverValue.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("function.kt")
|
||||
public void ignoreFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/function.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionFromOtherModule.kt")
|
||||
public void ignoreFunctionFromOtherModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/functionFromOtherModule.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inheritedFromCommonClass.kt")
|
||||
public void ignoreInheritedFromCommonClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/inheritedFromCommonClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inheritedFromExpectedClass.kt")
|
||||
public void ignoreInheritedFromExpectedClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/inheritedFromExpectedClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inheritedFromExpectedInterface.kt")
|
||||
public void ignoreInheritedFromExpectedInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/inheritedFromExpectedInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inheritedFromExpectedMethod.kt")
|
||||
public void ignoreInheritedFromExpectedMethod() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/inheritedFromExpectedMethod.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inheritedInExpectedDeclarations.kt")
|
||||
public void ignoreInheritedInExpectedDeclarations() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/inheritedInExpectedDeclarations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inheritedViaAnotherInterfaceIndirectly.kt")
|
||||
public void ignoreInheritedViaAnotherInterfaceIndirectly() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/inheritedViaAnotherInterfaceIndirectly.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineFunctionWithDefaultLambda.kt")
|
||||
public void ignoreInlineFunctionWithDefaultLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/inlineFunctionWithDefaultLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmOverloads.kt")
|
||||
public void ignoreJvmOverloads() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/jvmOverloads.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt23239.kt")
|
||||
public void ignoreKt23239() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/kt23239.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt23739.kt")
|
||||
public void ignoreKt23739() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/kt23739.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedEnumEntryValue.kt")
|
||||
public void ignoreNestedEnumEntryValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/nestedEnumEntryValue.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("parametersInArgumentValues.kt")
|
||||
public void ignoreParametersInArgumentValues() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/parametersInArgumentValues.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superCall.kt")
|
||||
public void ignoreSuperCall() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/superCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspend.kt")
|
||||
public void ignoreSuspend() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/suspend.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeAlias.kt")
|
||||
public void ignoreTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/typeAlias.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("withTypeParameter.kt")
|
||||
public void ignoreWithTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/withTypeParameter.kt");
|
||||
}
|
||||
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDefaultArguments() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/k2/defaultArguments"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("annotations.kt")
|
||||
public void testAnnotations() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/annotations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultArgumentInDelegatedFunction.kt")
|
||||
public void testDefaultArgumentInDelegatedFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/defaultArgumentInDelegatedFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectPropertyAsDefaultArgument.kt")
|
||||
public void testExpectPropertyAsDefaultArgument() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/expectPropertyAsDefaultArgument.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/multiplatform/k2/migratedOldTests")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class MigratedOldTests extends AbstractLightAnalysisModeTest {
|
||||
@TestMetadata("mpp1.kt")
|
||||
public void ignoreMpp1() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/migratedOldTests/mpp1.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mpp2.kt")
|
||||
public void ignoreMpp2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/migratedOldTests/mpp2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mpp_default_args.kt")
|
||||
public void ignoreMpp_default_args() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/migratedOldTests/mpp_default_args.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("remap_expect_property_ref.kt")
|
||||
public void ignoreRemap_expect_property_ref() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/migratedOldTests/remap_expect_property_ref.kt");
|
||||
}
|
||||
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInMigratedOldTests() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/k2/migratedOldTests"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("mpp_optional_expectation.kt")
|
||||
public void testMpp_optional_expectation() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/migratedOldTests/mpp_optional_expectation.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/multiplatform/migratedOldTests")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
Reference in New Issue
Block a user