Support target templates in bytecode tests
Avoid test data duplication
This commit is contained in:
@@ -2082,6 +2082,11 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilCharMaxValue.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUntilCharMinValue.kt")
|
||||
public void testForInUntilCharMinValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilCharMinValue.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUntilInt.kt")
|
||||
public void testForInUntilInt() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilInt.kt");
|
||||
@@ -2092,6 +2097,11 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilIntMaxValue.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUntilIntMinValue.kt")
|
||||
public void testForInUntilIntMinValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilIntMinValue.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUntilLong.kt")
|
||||
public void testForInUntilLong() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilLong.kt");
|
||||
@@ -2101,6 +2111,11 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
|
||||
public void testForInUntilLongMaxValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilLongMaxValue.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUntilLongMinValue.kt")
|
||||
public void testForInUntilLongMinValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilLongMinValue.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+9
-104
@@ -1657,11 +1657,6 @@ public class IrBytecodeTextTestGenerated extends AbstractIrBytecodeTextTest {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeToCharConst.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInRangeToCharConstIR.kt")
|
||||
public void testForInRangeToCharConstIR() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeToCharConstIR.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInRangeToCharMaxValue.kt")
|
||||
public void testForInRangeToCharMaxValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeToCharMaxValue.kt");
|
||||
@@ -1672,11 +1667,6 @@ public class IrBytecodeTextTestGenerated extends AbstractIrBytecodeTextTest {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeToConst.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInRangeToConstIR.kt")
|
||||
public void testForInRangeToConstIR() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeToConstIR.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInRangeToIntMaxValue.kt")
|
||||
public void testForInRangeToIntMaxValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeToIntMaxValue.kt");
|
||||
@@ -1687,11 +1677,6 @@ public class IrBytecodeTextTestGenerated extends AbstractIrBytecodeTextTest {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeToLongConst.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInRangeToLongConstIR.kt")
|
||||
public void testForInRangeToLongConstIR() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeToLongConstIR.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInRangeToLongMaxValue.kt")
|
||||
public void testForInRangeToLongMaxValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeToLongMaxValue.kt");
|
||||
@@ -1702,11 +1687,6 @@ public class IrBytecodeTextTestGenerated extends AbstractIrBytecodeTextTest {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeToQualifiedConst.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInRangeToQualifiedConstIR.kt")
|
||||
public void testForInRangeToQualifiedConstIR() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeToQualifiedConstIR.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInRangeWithImplicitReceiver.kt")
|
||||
public void testForInRangeWithImplicitReceiver() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInRangeWithImplicitReceiver.kt");
|
||||
@@ -1737,11 +1717,6 @@ public class IrBytecodeTextTestGenerated extends AbstractIrBytecodeTextTest {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/primitiveLiteralRange1.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("primitiveLiteralRange1IR.kt")
|
||||
public void testPrimitiveLiteralRange1IR() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/primitiveLiteralRange1IR.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("primitiveLiteralRange2.kt")
|
||||
public void testPrimitiveLiteralRange2() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/primitiveLiteralRange2.kt");
|
||||
@@ -1875,20 +1850,10 @@ public class IrBytecodeTextTestGenerated extends AbstractIrBytecodeTextTest {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIndices/forInObjectArrayIndices.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInObjectArrayIndicesIR.kt")
|
||||
public void testForInObjectArrayIndicesIR() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIndices/forInObjectArrayIndicesIR.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInPrimitiveArrayIndices.kt")
|
||||
public void testForInPrimitiveArrayIndices() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIndices/forInPrimitiveArrayIndices.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInPrimitiveArrayIndicesIR.kt")
|
||||
public void testForInPrimitiveArrayIndicesIR() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInIndices/forInPrimitiveArrayIndicesIR.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/bytecodeText/forLoop/forInIterableWithIndex")
|
||||
@@ -1946,11 +1911,6 @@ public class IrBytecodeTextTestGenerated extends AbstractIrBytecodeTextTest {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedArrayIndices.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInReversedArrayIndicesIR.kt")
|
||||
public void testForInReversedArrayIndicesIR() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedArrayIndicesIR.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInReversedCharSequenceIndices.kt")
|
||||
public void testForInReversedCharSequenceIndices() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedCharSequenceIndices.kt");
|
||||
@@ -1966,11 +1926,6 @@ public class IrBytecodeTextTestGenerated extends AbstractIrBytecodeTextTest {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedDownTo.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInReversedDownToIR.kt")
|
||||
public void testForInReversedDownToIR() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedDownToIR.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInReversedEmptyRangeLiteral.kt")
|
||||
public void testForInReversedEmptyRangeLiteral() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedEmptyRangeLiteral.kt");
|
||||
@@ -1986,11 +1941,6 @@ public class IrBytecodeTextTestGenerated extends AbstractIrBytecodeTextTest {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedRangeLiteral.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInReversedRangeLiteralIR.kt")
|
||||
public void testForInReversedRangeLiteralIR() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedRangeLiteralIR.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInReversedReversedArrayIndices.kt")
|
||||
public void testForInReversedReversedArrayIndices() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedReversedArrayIndices.kt");
|
||||
@@ -2001,11 +1951,6 @@ public class IrBytecodeTextTestGenerated extends AbstractIrBytecodeTextTest {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedReversedDownTo.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInReversedReversedDownToIR.kt")
|
||||
public void testForInReversedReversedDownToIR() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedReversedDownToIR.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ForInReversedReversedRange.kt")
|
||||
public void testForInReversedReversedRange() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/ForInReversedReversedRange.kt");
|
||||
@@ -2021,20 +1966,10 @@ public class IrBytecodeTextTestGenerated extends AbstractIrBytecodeTextTest {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedReversedUntil.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInReversedReversedUntilIR.kt")
|
||||
public void testForInReversedReversedUntilIR() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedReversedUntilIR.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInReversedUntil.kt")
|
||||
public void testForInReversedUntil() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedUntil.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInReversedUntilIR.kt")
|
||||
public void testForInReversedUntilIR() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInReversed/forInReversedUntilIR.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/bytecodeText/forLoop/forInSequenceWithIndex")
|
||||
@@ -2097,24 +2032,14 @@ public class IrBytecodeTextTestGenerated extends AbstractIrBytecodeTextTest {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilChar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUntilCharIR.kt")
|
||||
public void testForInUntilCharIR() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilCharIR.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUntilCharMaxValue.kt")
|
||||
public void testForInUntilCharMaxValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilCharMaxValue.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUntilCharMaxValueIR.kt")
|
||||
public void testForInUntilCharMaxValueIR() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilCharMaxValueIR.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUntilCharMinValueIR.kt")
|
||||
public void testForInUntilCharMinValueIR() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilCharMinValueIR.kt");
|
||||
@TestMetadata("forInUntilCharMinValue.kt")
|
||||
public void testForInUntilCharMinValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilCharMinValue.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUntilInt.kt")
|
||||
@@ -2122,24 +2047,14 @@ public class IrBytecodeTextTestGenerated extends AbstractIrBytecodeTextTest {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilInt.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUntilIntIR.kt")
|
||||
public void testForInUntilIntIR() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilIntIR.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUntilIntMaxValue.kt")
|
||||
public void testForInUntilIntMaxValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilIntMaxValue.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUntilIntMaxValueIR.kt")
|
||||
public void testForInUntilIntMaxValueIR() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilIntMaxValueIR.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUntilIntMinValueIR.kt")
|
||||
public void testForInUntilIntMinValueIR() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilIntMinValueIR.kt");
|
||||
@TestMetadata("forInUntilIntMinValue.kt")
|
||||
public void testForInUntilIntMinValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilIntMinValue.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUntilLong.kt")
|
||||
@@ -2147,24 +2062,14 @@ public class IrBytecodeTextTestGenerated extends AbstractIrBytecodeTextTest {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilLong.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUntilLongIR.kt")
|
||||
public void testForInUntilLongIR() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilLongIR.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUntilLongMaxValue.kt")
|
||||
public void testForInUntilLongMaxValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilLongMaxValue.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUntilLongMaxValueIR.kt")
|
||||
public void testForInUntilLongMaxValueIR() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilLongMaxValueIR.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUntilLongMinValueIR.kt")
|
||||
public void testForInUntilLongMinValueIR() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilLongMinValueIR.kt");
|
||||
@TestMetadata("forInUntilLongMinValue.kt")
|
||||
public void testForInUntilLongMinValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/forLoop/forInUntil/forInUntilLongMinValue.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUntilWithMixedTypeBoundsBoundCheckNeededForIntRangeIR.kt")
|
||||
|
||||
Reference in New Issue
Block a user