[Test] Convert IGNORE: NATIVE directives in box tests from A to C

^KT-59057

Merge-request: KT-MR-10747
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
Vladimir Sukharev
2023-06-22 08:39:20 +00:00
committed by Space Team
parent 2da0e622c0
commit 3d60ed8874
49 changed files with 429 additions and 1430 deletions
@@ -58,11 +58,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
runTest("compiler/testData/codegen/box/annotations/nestedClassesInAnnotations.kt");
}
@TestMetadata("parameters.kt")
public void testParameters() throws Exception {
runTest("compiler/testData/codegen/box/annotations/parameters.kt");
}
@TestMetadata("resolveWithLowPriorityAnnotation.kt")
public void testResolveWithLowPriorityAnnotation() throws Exception {
runTest("compiler/testData/codegen/box/annotations/resolveWithLowPriorityAnnotation.kt");
@@ -334,21 +329,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
runTest("compiler/testData/codegen/box/arrays/arrayPlusAssign.kt");
}
@TestMetadata("arraysAreCloneable.kt")
public void testArraysAreCloneable() throws Exception {
runTest("compiler/testData/codegen/box/arrays/arraysAreCloneable.kt");
}
@TestMetadata("cloneArray.kt")
public void testCloneArray() throws Exception {
runTest("compiler/testData/codegen/box/arrays/cloneArray.kt");
}
@TestMetadata("clonePrimitiveArrays.kt")
public void testClonePrimitiveArrays() throws Exception {
runTest("compiler/testData/codegen/box/arrays/clonePrimitiveArrays.kt");
}
@TestMetadata("collectionAssignGetMultiIndex.kt")
public void testCollectionAssignGetMultiIndex() throws Exception {
runTest("compiler/testData/codegen/box/arrays/collectionAssignGetMultiIndex.kt");
@@ -1069,9 +1049,9 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
runTest("compiler/testData/codegen/box/boxingOptimization/casts.kt");
}
@TestMetadata("checkcastAndInstanceOf.kt")
public void testCheckcastAndInstanceOf() throws Exception {
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf.kt");
@TestMetadata("checkcastAndInstanceOf2.kt")
public void testCheckcastAndInstanceOf2() throws Exception {
runTest("compiler/testData/codegen/box/boxingOptimization/checkcastAndInstanceOf2.kt");
}
@TestMetadata("explicitEqualsOnDouble.kt")
@@ -2272,11 +2252,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
public void testReceiverInEquals() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/bound/equals/receiverInEquals.kt");
}
@TestMetadata("reflectionReference.kt")
public void testReflectionReference() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/bound/equals/reflectionReference.kt");
}
}
}
@@ -2518,9 +2493,9 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
runTest("compiler/testData/codegen/box/callableReference/function/extensionFromTopLevelUnitOneStringArg.kt");
}
@TestMetadata("genericCallableReferenceArguments.kt")
public void testGenericCallableReferenceArguments() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArguments.kt");
@TestMetadata("genericCallableReferenceArgumentsNonJVM.kt")
public void testGenericCallableReferenceArgumentsNonJVM() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/function/genericCallableReferenceArgumentsNonJVM.kt");
}
@TestMetadata("genericCallableReferenceWithReifiedTypeParam.kt")
@@ -2894,11 +2869,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
runTest("compiler/testData/codegen/box/callableReference/property/kt15447.kt");
}
@TestMetadata("kt6870_privatePropertyReference.kt")
public void testKt6870_privatePropertyReference() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/property/kt6870_privatePropertyReference.kt");
}
@TestMetadata("listOfStringsMapLength.kt")
public void testListOfStringsMapLength() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/property/listOfStringsMapLength.kt");
@@ -2991,21 +2961,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/casts"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
}
@TestMetadata("as.kt")
public void testAs() throws Exception {
runTest("compiler/testData/codegen/box/casts/as.kt");
}
@TestMetadata("asForConstants.kt")
public void testAsForConstants() throws Exception {
runTest("compiler/testData/codegen/box/casts/asForConstants.kt");
}
@TestMetadata("asSafe.kt")
public void testAsSafe() throws Exception {
runTest("compiler/testData/codegen/box/casts/asSafe.kt");
}
@TestMetadata("asSafeFail.kt")
public void testAsSafeFail() throws Exception {
runTest("compiler/testData/codegen/box/casts/asSafeFail.kt");
@@ -3071,11 +3031,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
runTest("compiler/testData/codegen/box/casts/intersectionTypeWithoutGenericsAsReceiver.kt");
}
@TestMetadata("is.kt")
public void testIs() throws Exception {
runTest("compiler/testData/codegen/box/casts/is.kt");
}
@TestMetadata("isNullablePrimitive.kt")
public void testIsNullablePrimitive() throws Exception {
runTest("compiler/testData/codegen/box/casts/isNullablePrimitive.kt");
@@ -3126,11 +3081,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
runTest("compiler/testData/codegen/box/casts/lambdaToUnitCast.kt");
}
@TestMetadata("notIs.kt")
public void testNotIs() throws Exception {
runTest("compiler/testData/codegen/box/casts/notIs.kt");
}
@TestMetadata("nullableSafeCastToTypeParameterWithInterfaceUpperBound.kt")
public void testNullableSafeCastToTypeParameterWithInterfaceUpperBound() throws Exception {
runTest("compiler/testData/codegen/box/casts/nullableSafeCastToTypeParameterWithInterfaceUpperBound.kt");
@@ -3188,6 +3138,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmall.kt");
}
@TestMetadata("isFunKSmallNonJS.kt")
public void testIsFunKSmallNonJS() throws Exception {
runTest("compiler/testData/codegen/box/casts/functions/isFunKSmallNonJS.kt");
}
@TestMetadata("reifiedAsFunKBig.kt")
public void testReifiedAsFunKBig() throws Exception {
runTest("compiler/testData/codegen/box/casts/functions/reifiedAsFunKBig.kt");
@@ -3451,11 +3406,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
public void testAllFilesPresentInJava() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/classLiteral/java"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
}
@TestMetadata("kt11943.kt")
public void testKt11943() throws Exception {
runTest("compiler/testData/codegen/box/classLiteral/java/kt11943.kt");
}
}
}
@@ -3566,11 +3516,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
runTest("compiler/testData/codegen/box/classes/delegationGenericLongArg.kt");
}
@TestMetadata("delegationJava.kt")
public void testDelegationJava() throws Exception {
runTest("compiler/testData/codegen/box/classes/delegationJava.kt");
}
@TestMetadata("delegationMethodsWithArgs.kt")
public void testDelegationMethodsWithArgs() throws Exception {
runTest("compiler/testData/codegen/box/classes/delegationMethodsWithArgs.kt");
@@ -3646,11 +3591,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
runTest("compiler/testData/codegen/box/classes/kt1018.kt");
}
@TestMetadata("kt1120.kt")
public void testKt1120() throws Exception {
runTest("compiler/testData/codegen/box/classes/kt1120.kt");
}
@TestMetadata("kt1157.kt")
public void testKt1157() throws Exception {
runTest("compiler/testData/codegen/box/classes/kt1157.kt");
@@ -4839,11 +4779,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
runTest("compiler/testData/codegen/box/constants/long.kt");
}
@TestMetadata("numberLiteralCoercionToInferredType.kt")
public void testNumberLiteralCoercionToInferredType() throws Exception {
runTest("compiler/testData/codegen/box/constants/numberLiteralCoercionToInferredType.kt");
}
@TestMetadata("privateConst.kt")
public void testPrivateConst() throws Exception {
runTest("compiler/testData/codegen/box/constants/privateConst.kt");
@@ -8261,24 +8196,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
}
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/anonymous")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Anonymous extends AbstractIrCodegenBoxWasmTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest0(this::doTest, TargetBackend.WASM, testDataFilePath);
}
public void testAllFilesPresentInAnonymous() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/coroutines/localFunctions/anonymous"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
}
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/localFunctions/anonymous/simple.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/coroutines/localFunctions/named")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)