[IR] Extend test coverage for smart cast handling.

This commit is contained in:
Mads Ager
2021-01-07 13:56:02 +01:00
committed by Dmitry Petrov
parent 6fc0de39c2
commit dfc86feecd
28 changed files with 732 additions and 18 deletions
@@ -740,6 +740,11 @@ public class BlackBoxAgainstJavaCodegenTestGenerated extends AbstractBlackBoxAga
runTest("compiler/testData/codegen/boxAgainstJava/sam/samConstructorGenericSignature.kt");
}
@TestMetadata("smartCastSamConversion.kt")
public void testSmartCastSamConversion() throws Exception {
runTest("compiler/testData/codegen/boxAgainstJava/sam/smartCastSamConversion.kt");
}
@TestMetadata("compiler/testData/codegen/boxAgainstJava/sam/adapters")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
@@ -13125,6 +13125,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/ieee754/smartCastToDoubleAndComparableToDouble.kt");
}
@TestMetadata("smartCastToInt.kt")
public void testSmartCastToInt() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/smartCastToInt.kt");
}
@TestMetadata("when.kt")
public void testWhen() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/when.kt");
@@ -31147,6 +31152,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/smartCasts/lambdaArgumentWithoutType.kt");
}
@TestMetadata("multipleSmartCast.kt")
public void testMultipleSmartCast() throws Exception {
runTest("compiler/testData/codegen/box/smartCasts/multipleSmartCast.kt");
}
@TestMetadata("nullSmartCast.kt")
public void testNullSmartCast() throws Exception {
runTest("compiler/testData/codegen/box/smartCasts/nullSmartCast.kt");
@@ -13125,6 +13125,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/ieee754/smartCastToDoubleAndComparableToDouble.kt");
}
@TestMetadata("smartCastToInt.kt")
public void testSmartCastToInt() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/smartCastToInt.kt");
}
@TestMetadata("when.kt")
public void testWhen() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/when.kt");
@@ -28781,6 +28786,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/smartCasts/lambdaArgumentWithoutType.kt");
}
@TestMetadata("multipleSmartCast.kt")
public void testMultipleSmartCast() throws Exception {
runTest("compiler/testData/codegen/box/smartCasts/multipleSmartCast.kt");
}
@TestMetadata("nullSmartCast.kt")
public void testNullSmartCast() throws Exception {
runTest("compiler/testData/codegen/box/smartCasts/nullSmartCast.kt");
@@ -710,6 +710,11 @@ public class IrBlackBoxAgainstJavaCodegenTestGenerated extends AbstractIrBlackBo
runTest("compiler/testData/codegen/boxAgainstJava/sam/samConstructorGenericSignature.kt");
}
@TestMetadata("smartCastSamConversion.kt")
public void testSmartCastSamConversion() throws Exception {
runTest("compiler/testData/codegen/boxAgainstJava/sam/smartCastSamConversion.kt");
}
@TestMetadata("compiler/testData/codegen/boxAgainstJava/sam/adapters")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
@@ -13125,6 +13125,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/ieee754/smartCastToDoubleAndComparableToDouble.kt");
}
@TestMetadata("smartCastToInt.kt")
public void testSmartCastToInt() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/smartCastToInt.kt");
}
@TestMetadata("when.kt")
public void testWhen() throws Exception {
runTest("compiler/testData/codegen/box/ieee754/when.kt");
@@ -30781,6 +30786,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/smartCasts/lambdaArgumentWithoutType.kt");
}
@TestMetadata("multipleSmartCast.kt")
public void testMultipleSmartCast() throws Exception {
runTest("compiler/testData/codegen/box/smartCasts/multipleSmartCast.kt");
}
@TestMetadata("nullSmartCast.kt")
public void testNullSmartCast() throws Exception {
runTest("compiler/testData/codegen/box/smartCasts/nullSmartCast.kt");
@@ -1187,6 +1187,11 @@ public class IrTextTestCaseGenerated extends AbstractIrTextTestCase {
runTest("compiler/testData/ir/irText/expressions/membersImportedFromObject.kt");
}
@TestMetadata("multipleSmartCasts.kt")
public void testMultipleSmartCasts() throws Exception {
runTest("compiler/testData/ir/irText/expressions/multipleSmartCasts.kt");
}
@TestMetadata("multipleThisReferences.kt")
public void testMultipleThisReferences() throws Exception {
runTest("compiler/testData/ir/irText/expressions/multipleThisReferences.kt");
@@ -1452,6 +1457,11 @@ public class IrTextTestCaseGenerated extends AbstractIrTextTestCase {
runTest("compiler/testData/ir/irText/expressions/whenReturnUnit.kt");
}
@TestMetadata("whenSmartCastToEnum.kt")
public void testWhenSmartCastToEnum() throws Exception {
runTest("compiler/testData/ir/irText/expressions/whenSmartCastToEnum.kt");
}
@TestMetadata("whenUnusedExpression.kt")
public void testWhenUnusedExpression() throws Exception {
runTest("compiler/testData/ir/irText/expressions/whenUnusedExpression.kt");