[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
-554
@@ -27,7 +27,7 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
public class Box {
|
||||
@Test
|
||||
public void testAllFilesPresentInBox() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true, "multiplatform/k2");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@@ -26787,7 +26787,7 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
public class Multiplatform {
|
||||
@Test
|
||||
public void testAllFilesPresentInMultiplatform() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true, "k2");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -27014,558 +27014,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/multiplatform/k2")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@UseExtTestCaseGroupProvider()
|
||||
public class K2 {
|
||||
@Test
|
||||
@TestMetadata("actualInnerClassesFirMemberMapping.kt")
|
||||
public void testActualInnerClassesFirMemberMapping() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/actualInnerClassesFirMemberMapping.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInK2() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/k2"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousObjectAndSpecificImplementationInDeserializedIr.kt")
|
||||
public void testAnonymousObjectAndSpecificImplementationInDeserializedIr() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/anonymousObjectAndSpecificImplementationInDeserializedIr.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("dataClassInCommonAndPlatform.kt")
|
||||
public void testDataClassInCommonAndPlatform() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/dataClassInCommonAndPlatform.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectValInInlineClass.kt")
|
||||
public void testExpectValInInlineClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("extensionPropertiesOverloads.kt")
|
||||
public void testExtensionPropertiesOverloads() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/extensionPropertiesOverloads.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("internalOverride.kt")
|
||||
public void testInternalOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/internalOverride.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/multiplatform/k2/annotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@UseExtTestCaseGroupProvider()
|
||||
public class Annotations {
|
||||
@Test
|
||||
public void testAllFilesPresentInAnnotations() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/k2/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("deprecatedAnnotationOnlyOnActual_useInCommon.kt")
|
||||
public void testDeprecatedAnnotationOnlyOnActual_useInCommon() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/annotations/deprecatedAnnotationOnlyOnActual_useInCommon.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectAnnotationCallInLibrary.kt")
|
||||
public void testExpectAnnotationCallInLibrary() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/annotations/expectAnnotationCallInLibrary.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("optionalExpectation.kt")
|
||||
public void testOptionalExpectation() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/annotations/optionalExpectation.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/multiplatform/k2/basic")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@UseExtTestCaseGroupProvider()
|
||||
public class Basic {
|
||||
@Test
|
||||
@TestMetadata("accessToLocalClassFromBackend.kt")
|
||||
public void testAccessToLocalClassFromBackend() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/accessToLocalClassFromBackend.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInBasic() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/k2/basic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anyMethodInExpect.kt")
|
||||
public void testAnyMethodInExpect() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/anyMethodInExpect.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("correctParentForTypeParameter.kt")
|
||||
public void testCorrectParentForTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/correctParentForTypeParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enumEntryNameCall.kt")
|
||||
public void testEnumEntryNameCall() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/enumEntryNameCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualCallableReference.kt")
|
||||
public void testExpectActualCallableReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualCallableReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualDifferentExtensionReceiversOnOverloads.kt")
|
||||
public void testExpectActualDifferentExtensionReceiversOnOverloads() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentExtensionReceiversOnOverloads.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualDifferentPackages.kt")
|
||||
public void testExpectActualDifferentPackages() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentPackages.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualFakeOverrides.kt")
|
||||
public void testExpectActualFakeOverrides() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualFakeOverrides.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualFakeOverrides2.kt")
|
||||
public void testExpectActualFakeOverrides2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualFakeOverrides2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualFakeOverrides3.kt")
|
||||
public void testExpectActualFakeOverrides3() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualFakeOverrides3.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualFakeOverridesWithTypeParameters.kt")
|
||||
public void testExpectActualFakeOverridesWithTypeParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualFakeOverridesWithTypeParameters.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualFakeOverridesWithTypeParameters2.kt")
|
||||
public void testExpectActualFakeOverridesWithTypeParameters2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualFakeOverridesWithTypeParameters2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualIntersectionOverride.kt")
|
||||
public void testExpectActualIntersectionOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualIntersectionOverride.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualIntersectionOverride2.kt")
|
||||
public void testExpectActualIntersectionOverride2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualIntersectionOverride2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualMultiCommon.kt")
|
||||
public void testExpectActualMultiCommon() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualMultiCommon.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualNullabilityBasedOverloads.kt")
|
||||
public void testExpectActualNullabilityBasedOverloads() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualNullabilityBasedOverloads.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualOverloads.kt")
|
||||
public void testExpectActualOverloads() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualOverloads.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualSimple.kt")
|
||||
public void testExpectActualSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualSimple.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualTypeParameters.kt")
|
||||
public void testExpectActualTypeParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypeParameters.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualTypealias.kt")
|
||||
public void testExpectActualTypealias() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualTypealiasCoercion.kt")
|
||||
public void testExpectActualTypealiasCoercion() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealiasCoercion.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectAndCommonFunctionOverloads.kt")
|
||||
public void testExpectAndCommonFunctionOverloads() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectAndCommonFunctionOverloads.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectInterfaceInSupertypes.kt")
|
||||
public void testExpectInterfaceInSupertypes() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectInterfaceInSupertypes.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectInterfaceInSupertypes2.kt")
|
||||
public void testExpectInterfaceInSupertypes2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectInterfaceInSupertypes2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectProperty.kt")
|
||||
public void testExpectProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fakeOverridesInPlatformModule.kt")
|
||||
public void testFakeOverridesInPlatformModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/fakeOverridesInPlatformModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("independentCommonSourceModules.kt")
|
||||
public void testIndependentCommonSourceModules() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/independentCommonSourceModules.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("interfaceMethodFromSuperTypeIsImplementedInOtherExpectSuperClass.kt")
|
||||
public void testInterfaceMethodFromSuperTypeIsImplementedInOtherExpectSuperClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/interfaceMethodFromSuperTypeIsImplementedInOtherExpectSuperClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intersectionOverrideInCommonModule.kt")
|
||||
public void testIntersectionOverrideInCommonModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/intersectionOverrideInCommonModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intersectionOverrideWithDefaultParameterInCommonModule.kt")
|
||||
public void testIntersectionOverrideWithDefaultParameterInCommonModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/intersectionOverrideWithDefaultParameterInCommonModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt-56329.kt")
|
||||
public void testKt_56329() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/kt-56329.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localIntersectionOverrideInCommonModule.kt")
|
||||
public void testLocalIntersectionOverrideInCommonModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/localIntersectionOverrideInCommonModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localIntersectionOverrideWithDefaultParameterInCommonModule.kt")
|
||||
public void testLocalIntersectionOverrideWithDefaultParameterInCommonModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/localIntersectionOverrideWithDefaultParameterInCommonModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localSubstitutionOverrideInCommonModule.kt")
|
||||
public void testLocalSubstitutionOverrideInCommonModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/localSubstitutionOverrideInCommonModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nonExternalEquals.kt")
|
||||
public void testNonExternalEquals() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/nonExternalEquals.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overridesOfExpectMembers.kt")
|
||||
public void testOverridesOfExpectMembers() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/overridesOfExpectMembers.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("removeExpectDeclarationsFromMetadata.kt")
|
||||
public void testRemoveExpectDeclarationsFromMetadata() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/removeExpectDeclarationsFromMetadata.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("substitutionOverrideInCommonModule.kt")
|
||||
public void testSubstitutionOverrideInCommonModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/substitutionOverrideInCommonModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("transitiveSuperclassActualization.kt")
|
||||
public void testTransitiveSuperclassActualization() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/transitiveSuperclassActualization.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("widerVisibilityInActualClassifier.kt")
|
||||
public void testWiderVisibilityInActualClassifier() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/widerVisibilityInActualClassifier.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/multiplatform/k2/complexMatchings")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@UseExtTestCaseGroupProvider()
|
||||
public class ComplexMatchings {
|
||||
@Test
|
||||
public void testAllFilesPresentInComplexMatchings() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/k2/complexMatchings"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectCtorlessFinalToActualObject.kt")
|
||||
public void testExpectCtorlessFinalToActualObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/complexMatchings/expectCtorlessFinalToActualObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectCtorlessFinalToActualUnit.kt")
|
||||
public void testExpectCtorlessFinalToActualUnit() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/complexMatchings/expectCtorlessFinalToActualUnit.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/multiplatform/k2/defaultArguments")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@UseExtTestCaseGroupProvider()
|
||||
public class DefaultArguments {
|
||||
@Test
|
||||
public void testAllFilesPresentInDefaultArguments() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/k2/defaultArguments"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("bothInExpectAndActual.kt")
|
||||
public void testBothInExpectAndActual() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/bothInExpectAndActual.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("bothInExpectAndActual2.kt")
|
||||
public void testBothInExpectAndActual2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/bothInExpectAndActual2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("constructor.kt")
|
||||
public void testConstructor() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/constructor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("defaultArgumentInDelegatedFunction.kt")
|
||||
public void testDefaultArgumentInDelegatedFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/defaultArgumentInDelegatedFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegatedExpectedInterface.kt")
|
||||
public void testDelegatedExpectedInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/delegatedExpectedInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("dispatchReceiverValue.kt")
|
||||
public void testDispatchReceiverValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/dispatchReceiverValue.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectPropertyAsDefaultArgument.kt")
|
||||
public void testExpectPropertyAsDefaultArgument() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/expectPropertyAsDefaultArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("extensionReceiverValue.kt")
|
||||
public void testExtensionReceiverValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/extensionReceiverValue.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("function.kt")
|
||||
public void testFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/function.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromOtherModule.kt")
|
||||
public void testFunctionFromOtherModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/functionFromOtherModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inheritedFromCommonClass.kt")
|
||||
public void testInheritedFromCommonClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/inheritedFromCommonClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inheritedFromExpectedClass.kt")
|
||||
public void testInheritedFromExpectedClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/inheritedFromExpectedClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inheritedFromExpectedInterface.kt")
|
||||
public void testInheritedFromExpectedInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/inheritedFromExpectedInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inheritedFromExpectedMethod.kt")
|
||||
public void testInheritedFromExpectedMethod() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/inheritedFromExpectedMethod.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inheritedInExpectedDeclarations.kt")
|
||||
public void testInheritedInExpectedDeclarations() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/inheritedInExpectedDeclarations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inheritedViaAnotherInterfaceIndirectly.kt")
|
||||
public void testInheritedViaAnotherInterfaceIndirectly() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/inheritedViaAnotherInterfaceIndirectly.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineFunctionWithDefaultLambda.kt")
|
||||
public void testInlineFunctionWithDefaultLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/inlineFunctionWithDefaultLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt23239.kt")
|
||||
public void testKt23239() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/kt23239.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt23739.kt")
|
||||
public void testKt23739() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/kt23739.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedEnumEntryValue.kt")
|
||||
public void testNestedEnumEntryValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/nestedEnumEntryValue.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("parametersInArgumentValues.kt")
|
||||
public void testParametersInArgumentValues() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/parametersInArgumentValues.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("superCall.kt")
|
||||
public void testSuperCall() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/superCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("suspend.kt")
|
||||
public void testSuspend() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/suspend.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeAlias.kt")
|
||||
public void testTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/typeAlias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("withTypeParameter.kt")
|
||||
public void testWithTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/withTypeParameter.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/multiplatform/k2/migratedOldTests")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@UseExtTestCaseGroupProvider()
|
||||
public class MigratedOldTests {
|
||||
@Test
|
||||
public void testAllFilesPresentInMigratedOldTests() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/k2/migratedOldTests"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mpp1.kt")
|
||||
public void testMpp1() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/migratedOldTests/mpp1.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mpp2.kt")
|
||||
public void testMpp2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/migratedOldTests/mpp2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mpp_default_args.kt")
|
||||
public void testMpp_default_args() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/migratedOldTests/mpp_default_args.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mpp_optional_expectation.kt")
|
||||
public void testMpp_optional_expectation() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/migratedOldTests/mpp_optional_expectation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("remap_expect_property_ref.kt")
|
||||
public void testRemap_expect_property_ref() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/migratedOldTests/remap_expect_property_ref.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/multiplatform/migratedOldTests")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+2
-566
@@ -32,7 +32,7 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
public class Box {
|
||||
@Test
|
||||
public void testAllFilesPresentInBox() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true, "multiplatform/k2");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@@ -27408,7 +27408,7 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
public class Multiplatform {
|
||||
@Test
|
||||
public void testAllFilesPresentInMultiplatform() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true, "k2");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -27643,570 +27643,6 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/multiplatform/k2")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@UseExtTestCaseGroupProvider()
|
||||
@UsePartialLinkage(mode = Mode.DISABLED)
|
||||
@Tag("no-partial-linkage-may-be-skipped")
|
||||
public class K2 {
|
||||
@Test
|
||||
@TestMetadata("actualInnerClassesFirMemberMapping.kt")
|
||||
public void testActualInnerClassesFirMemberMapping() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/actualInnerClassesFirMemberMapping.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInK2() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/k2"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousObjectAndSpecificImplementationInDeserializedIr.kt")
|
||||
public void testAnonymousObjectAndSpecificImplementationInDeserializedIr() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/anonymousObjectAndSpecificImplementationInDeserializedIr.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("dataClassInCommonAndPlatform.kt")
|
||||
public void testDataClassInCommonAndPlatform() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/dataClassInCommonAndPlatform.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectValInInlineClass.kt")
|
||||
public void testExpectValInInlineClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/expectValInInlineClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("extensionPropertiesOverloads.kt")
|
||||
public void testExtensionPropertiesOverloads() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/extensionPropertiesOverloads.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("internalOverride.kt")
|
||||
public void testInternalOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/internalOverride.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/multiplatform/k2/annotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@UseExtTestCaseGroupProvider()
|
||||
@UsePartialLinkage(mode = Mode.DISABLED)
|
||||
@Tag("no-partial-linkage-may-be-skipped")
|
||||
public class Annotations {
|
||||
@Test
|
||||
public void testAllFilesPresentInAnnotations() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/k2/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("deprecatedAnnotationOnlyOnActual_useInCommon.kt")
|
||||
public void testDeprecatedAnnotationOnlyOnActual_useInCommon() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/annotations/deprecatedAnnotationOnlyOnActual_useInCommon.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectAnnotationCallInLibrary.kt")
|
||||
public void testExpectAnnotationCallInLibrary() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/annotations/expectAnnotationCallInLibrary.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("optionalExpectation.kt")
|
||||
public void testOptionalExpectation() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/annotations/optionalExpectation.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/multiplatform/k2/basic")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@UseExtTestCaseGroupProvider()
|
||||
@UsePartialLinkage(mode = Mode.DISABLED)
|
||||
@Tag("no-partial-linkage-may-be-skipped")
|
||||
public class Basic {
|
||||
@Test
|
||||
@TestMetadata("accessToLocalClassFromBackend.kt")
|
||||
public void testAccessToLocalClassFromBackend() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/accessToLocalClassFromBackend.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInBasic() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/k2/basic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anyMethodInExpect.kt")
|
||||
public void testAnyMethodInExpect() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/anyMethodInExpect.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("correctParentForTypeParameter.kt")
|
||||
public void testCorrectParentForTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/correctParentForTypeParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enumEntryNameCall.kt")
|
||||
public void testEnumEntryNameCall() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/enumEntryNameCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualCallableReference.kt")
|
||||
public void testExpectActualCallableReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualCallableReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualDifferentExtensionReceiversOnOverloads.kt")
|
||||
public void testExpectActualDifferentExtensionReceiversOnOverloads() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentExtensionReceiversOnOverloads.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualDifferentPackages.kt")
|
||||
public void testExpectActualDifferentPackages() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualDifferentPackages.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualFakeOverrides.kt")
|
||||
public void testExpectActualFakeOverrides() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualFakeOverrides.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualFakeOverrides2.kt")
|
||||
public void testExpectActualFakeOverrides2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualFakeOverrides2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualFakeOverrides3.kt")
|
||||
public void testExpectActualFakeOverrides3() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualFakeOverrides3.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualFakeOverridesWithTypeParameters.kt")
|
||||
public void testExpectActualFakeOverridesWithTypeParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualFakeOverridesWithTypeParameters.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualFakeOverridesWithTypeParameters2.kt")
|
||||
public void testExpectActualFakeOverridesWithTypeParameters2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualFakeOverridesWithTypeParameters2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualIntersectionOverride.kt")
|
||||
public void testExpectActualIntersectionOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualIntersectionOverride.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualIntersectionOverride2.kt")
|
||||
public void testExpectActualIntersectionOverride2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualIntersectionOverride2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualMultiCommon.kt")
|
||||
public void testExpectActualMultiCommon() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualMultiCommon.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualNullabilityBasedOverloads.kt")
|
||||
public void testExpectActualNullabilityBasedOverloads() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualNullabilityBasedOverloads.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualOverloads.kt")
|
||||
public void testExpectActualOverloads() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualOverloads.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualSimple.kt")
|
||||
public void testExpectActualSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualSimple.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualTypeParameters.kt")
|
||||
public void testExpectActualTypeParameters() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypeParameters.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualTypealias.kt")
|
||||
public void testExpectActualTypealias() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectActualTypealiasCoercion.kt")
|
||||
public void testExpectActualTypealiasCoercion() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectActualTypealiasCoercion.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectAndCommonFunctionOverloads.kt")
|
||||
public void testExpectAndCommonFunctionOverloads() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectAndCommonFunctionOverloads.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectInterfaceInSupertypes.kt")
|
||||
public void testExpectInterfaceInSupertypes() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectInterfaceInSupertypes.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectInterfaceInSupertypes2.kt")
|
||||
public void testExpectInterfaceInSupertypes2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectInterfaceInSupertypes2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectProperty.kt")
|
||||
public void testExpectProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/expectProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fakeOverridesInPlatformModule.kt")
|
||||
public void testFakeOverridesInPlatformModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/fakeOverridesInPlatformModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("independentCommonSourceModules.kt")
|
||||
public void testIndependentCommonSourceModules() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/independentCommonSourceModules.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("interfaceMethodFromSuperTypeIsImplementedInOtherExpectSuperClass.kt")
|
||||
public void testInterfaceMethodFromSuperTypeIsImplementedInOtherExpectSuperClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/interfaceMethodFromSuperTypeIsImplementedInOtherExpectSuperClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intersectionOverrideInCommonModule.kt")
|
||||
public void testIntersectionOverrideInCommonModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/intersectionOverrideInCommonModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intersectionOverrideWithDefaultParameterInCommonModule.kt")
|
||||
public void testIntersectionOverrideWithDefaultParameterInCommonModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/intersectionOverrideWithDefaultParameterInCommonModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt-56329.kt")
|
||||
public void testKt_56329() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/kt-56329.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localIntersectionOverrideInCommonModule.kt")
|
||||
public void testLocalIntersectionOverrideInCommonModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/localIntersectionOverrideInCommonModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localIntersectionOverrideWithDefaultParameterInCommonModule.kt")
|
||||
public void testLocalIntersectionOverrideWithDefaultParameterInCommonModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/localIntersectionOverrideWithDefaultParameterInCommonModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localSubstitutionOverrideInCommonModule.kt")
|
||||
public void testLocalSubstitutionOverrideInCommonModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/localSubstitutionOverrideInCommonModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nonExternalEquals.kt")
|
||||
public void testNonExternalEquals() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/nonExternalEquals.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overridesOfExpectMembers.kt")
|
||||
public void testOverridesOfExpectMembers() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/overridesOfExpectMembers.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("removeExpectDeclarationsFromMetadata.kt")
|
||||
public void testRemoveExpectDeclarationsFromMetadata() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/removeExpectDeclarationsFromMetadata.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("substitutionOverrideInCommonModule.kt")
|
||||
public void testSubstitutionOverrideInCommonModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/substitutionOverrideInCommonModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("transitiveSuperclassActualization.kt")
|
||||
public void testTransitiveSuperclassActualization() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/transitiveSuperclassActualization.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("widerVisibilityInActualClassifier.kt")
|
||||
public void testWiderVisibilityInActualClassifier() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/basic/widerVisibilityInActualClassifier.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/multiplatform/k2/complexMatchings")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@UseExtTestCaseGroupProvider()
|
||||
@UsePartialLinkage(mode = Mode.DISABLED)
|
||||
@Tag("no-partial-linkage-may-be-skipped")
|
||||
public class ComplexMatchings {
|
||||
@Test
|
||||
public void testAllFilesPresentInComplexMatchings() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/k2/complexMatchings"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectCtorlessFinalToActualObject.kt")
|
||||
public void testExpectCtorlessFinalToActualObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/complexMatchings/expectCtorlessFinalToActualObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectCtorlessFinalToActualUnit.kt")
|
||||
public void testExpectCtorlessFinalToActualUnit() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/complexMatchings/expectCtorlessFinalToActualUnit.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/multiplatform/k2/defaultArguments")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@UseExtTestCaseGroupProvider()
|
||||
@UsePartialLinkage(mode = Mode.DISABLED)
|
||||
@Tag("no-partial-linkage-may-be-skipped")
|
||||
public class DefaultArguments {
|
||||
@Test
|
||||
public void testAllFilesPresentInDefaultArguments() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/k2/defaultArguments"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("bothInExpectAndActual.kt")
|
||||
public void testBothInExpectAndActual() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/bothInExpectAndActual.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("bothInExpectAndActual2.kt")
|
||||
public void testBothInExpectAndActual2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/bothInExpectAndActual2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("constructor.kt")
|
||||
public void testConstructor() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/constructor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("defaultArgumentInDelegatedFunction.kt")
|
||||
public void testDefaultArgumentInDelegatedFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/defaultArgumentInDelegatedFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegatedExpectedInterface.kt")
|
||||
public void testDelegatedExpectedInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/delegatedExpectedInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("dispatchReceiverValue.kt")
|
||||
public void testDispatchReceiverValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/dispatchReceiverValue.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectPropertyAsDefaultArgument.kt")
|
||||
public void testExpectPropertyAsDefaultArgument() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/expectPropertyAsDefaultArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("extensionReceiverValue.kt")
|
||||
public void testExtensionReceiverValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/extensionReceiverValue.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("function.kt")
|
||||
public void testFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/function.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionFromOtherModule.kt")
|
||||
public void testFunctionFromOtherModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/functionFromOtherModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inheritedFromCommonClass.kt")
|
||||
public void testInheritedFromCommonClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/inheritedFromCommonClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inheritedFromExpectedClass.kt")
|
||||
public void testInheritedFromExpectedClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/inheritedFromExpectedClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inheritedFromExpectedInterface.kt")
|
||||
public void testInheritedFromExpectedInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/inheritedFromExpectedInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inheritedFromExpectedMethod.kt")
|
||||
public void testInheritedFromExpectedMethod() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/inheritedFromExpectedMethod.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inheritedInExpectedDeclarations.kt")
|
||||
public void testInheritedInExpectedDeclarations() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/inheritedInExpectedDeclarations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inheritedViaAnotherInterfaceIndirectly.kt")
|
||||
public void testInheritedViaAnotherInterfaceIndirectly() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/inheritedViaAnotherInterfaceIndirectly.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineFunctionWithDefaultLambda.kt")
|
||||
public void testInlineFunctionWithDefaultLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/inlineFunctionWithDefaultLambda.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt23239.kt")
|
||||
public void testKt23239() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/kt23239.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt23739.kt")
|
||||
public void testKt23739() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/kt23739.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedEnumEntryValue.kt")
|
||||
public void testNestedEnumEntryValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/nestedEnumEntryValue.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("parametersInArgumentValues.kt")
|
||||
public void testParametersInArgumentValues() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/parametersInArgumentValues.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("superCall.kt")
|
||||
public void testSuperCall() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/superCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("suspend.kt")
|
||||
public void testSuspend() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/suspend.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeAlias.kt")
|
||||
public void testTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/typeAlias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("withTypeParameter.kt")
|
||||
public void testWithTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/withTypeParameter.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/multiplatform/k2/migratedOldTests")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@UseExtTestCaseGroupProvider()
|
||||
@UsePartialLinkage(mode = Mode.DISABLED)
|
||||
@Tag("no-partial-linkage-may-be-skipped")
|
||||
public class MigratedOldTests {
|
||||
@Test
|
||||
public void testAllFilesPresentInMigratedOldTests() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/multiplatform/k2/migratedOldTests"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mpp1.kt")
|
||||
public void testMpp1() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/migratedOldTests/mpp1.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mpp2.kt")
|
||||
public void testMpp2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/migratedOldTests/mpp2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mpp_default_args.kt")
|
||||
public void testMpp_default_args() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/migratedOldTests/mpp_default_args.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("mpp_optional_expectation.kt")
|
||||
public void testMpp_optional_expectation() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/migratedOldTests/mpp_optional_expectation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("remap_expect_property_ref.kt")
|
||||
public void testRemap_expect_property_ref() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multiplatform/k2/migratedOldTests/remap_expect_property_ref.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/multiplatform/migratedOldTests")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+4
-3
@@ -26,6 +26,7 @@ import org.junit.jupiter.api.Tag
|
||||
|
||||
fun main() {
|
||||
System.setProperty("java.awt.headless", "true")
|
||||
val k2BoxTestDir = listOf("multiplatform/k2")
|
||||
|
||||
generateTestGroupSuiteWithJUnit5 {
|
||||
// Codegen box tests.
|
||||
@@ -36,7 +37,7 @@ fun main() {
|
||||
provider<UseExtTestCaseGroupProvider>(),
|
||||
)
|
||||
) {
|
||||
model("codegen/box", targetBackend = TargetBackend.NATIVE)
|
||||
model("codegen/box", targetBackend = TargetBackend.NATIVE, excludeDirs = k2BoxTestDir)
|
||||
model("codegen/boxInline", targetBackend = TargetBackend.NATIVE)
|
||||
}
|
||||
testClass<AbstractNativeCodegenBoxTest>(
|
||||
@@ -46,7 +47,7 @@ fun main() {
|
||||
*noPartialLinkage()
|
||||
)
|
||||
) {
|
||||
model("codegen/box", targetBackend = TargetBackend.NATIVE)
|
||||
model("codegen/box", targetBackend = TargetBackend.NATIVE, excludeDirs = k2BoxTestDir)
|
||||
model("codegen/boxInline", targetBackend = TargetBackend.NATIVE)
|
||||
}
|
||||
testClass<AbstractNativeCodegenBoxTest>(
|
||||
@@ -480,4 +481,4 @@ private fun standalone() = arrayOf(
|
||||
"property" to ClassLevelProperty.TEST_KIND,
|
||||
"propertyValue" to "STANDALONE_NO_TR"
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user