Regenerate tests

This commit is contained in:
Zalim Bashorov
2016-11-07 16:12:10 +03:00
parent 8e480e275b
commit 1dedb38481
214 changed files with 2838 additions and 2623 deletions
@@ -19,6 +19,7 @@ package org.jetbrains.kotlin.codegen;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.TargetBackend;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;
@@ -50,7 +51,7 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
}
public void testAllFilesPresentInBytecodeText() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("annotationDefaultValue.kt")
@@ -382,7 +383,7 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class ArgumentOrder extends AbstractBytecodeTextTest {
public void testAllFilesPresentInArgumentOrder() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/argumentOrder"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/argumentOrder"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("argumentReorder.kt")
@@ -415,7 +416,7 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class BoxingOptimization extends AbstractBytecodeTextTest {
public void testAllFilesPresentInBoxingOptimization() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/boxingOptimization"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/boxingOptimization"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("casts.kt")
@@ -520,7 +521,7 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class BuiltinFunctions extends AbstractBytecodeTextTest {
public void testAllFilesPresentInBuiltinFunctions() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/builtinFunctions"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/builtinFunctions"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("charSequence.kt")
@@ -558,7 +559,7 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
}
public void testAllFilesPresentInGenericParameterBridge() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/builtinFunctions/genericParameterBridge"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/builtinFunctions/genericParameterBridge"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("IntMC.kt")
@@ -604,7 +605,7 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class CoercionToUnitOptimization extends AbstractBytecodeTextTest {
public void testAllFilesPresentInCoercionToUnitOptimization() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/coercionToUnitOptimization"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/coercionToUnitOptimization"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("kt14360.kt")
@@ -655,7 +656,7 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class Conditions extends AbstractBytecodeTextTest {
public void testAllFilesPresentInConditions() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/conditions"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/conditions"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("conjuction.kt")
@@ -712,7 +713,7 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class ConstProperty extends AbstractBytecodeTextTest {
public void testAllFilesPresentInConstProperty() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/constProperty"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/constProperty"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("noInline.kt")
@@ -733,7 +734,7 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class Constants extends AbstractBytecodeTextTest {
public void testAllFilesPresentInConstants() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/constants"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/constants"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("byte.kt")
@@ -784,7 +785,7 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class Coroutines extends AbstractBytecodeTextTest {
public void testAllFilesPresentInCoroutines() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/coroutines"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/coroutines"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("varValueConflictsWithTable.kt")
@@ -804,7 +805,7 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class IntLikeVarSpilling extends AbstractBytecodeTextTest {
public void testAllFilesPresentInIntLikeVarSpilling() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/coroutines/intLikeVarSpilling"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/coroutines/intLikeVarSpilling"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("complicatedMerge.kt")
@@ -874,7 +875,7 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class DeadCodeElimination extends AbstractBytecodeTextTest {
public void testAllFilesPresentInDeadCodeElimination() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/deadCodeElimination"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/deadCodeElimination"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("arrayConstructor.kt")
@@ -931,7 +932,7 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class DirectInvoke extends AbstractBytecodeTextTest {
public void testAllFilesPresentInDirectInvoke() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/directInvoke"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/directInvoke"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("callableReference.kt")
@@ -958,7 +959,7 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class ForLoop extends AbstractBytecodeTextTest {
public void testAllFilesPresentInForLoop() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/forLoop"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/forLoop"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("forInRangeWithImplicitReceiver.kt")
@@ -1008,7 +1009,7 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class ForInIndices extends AbstractBytecodeTextTest {
public void testAllFilesPresentInForInIndices() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/forLoop/forInIndices"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/forLoop/forInIndices"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("forInCharSequenceIndices.kt")
@@ -1054,7 +1055,7 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class Inline extends AbstractBytecodeTextTest {
public void testAllFilesPresentInInline() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/inline"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/inline"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("inlineReturnsNothing1.kt")
@@ -1146,7 +1147,7 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class Property extends AbstractBytecodeTextTest {
public void testAllFilesPresentInProperty() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/inline/property"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/inline/property"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("simple.kt")
@@ -1162,7 +1163,7 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class Interfaces extends AbstractBytecodeTextTest {
public void testAllFilesPresentInInterfaces() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/interfaces"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/interfaces"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("firstInheritedMethodIsAbstract.kt")
@@ -1195,7 +1196,7 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class JackAndJill extends AbstractBytecodeTextTest {
public void testAllFilesPresentInJackAndJill() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/jackAndJill"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/jackAndJill"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("inlineDefaultBody.kt")
@@ -1228,7 +1229,7 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class LazyCodegen extends AbstractBytecodeTextTest {
public void testAllFilesPresentInLazyCodegen() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/lazyCodegen"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/lazyCodegen"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("negateConst.kt")
@@ -1273,7 +1274,7 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class LineNumbers extends AbstractBytecodeTextTest {
public void testAllFilesPresentInLineNumbers() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/lineNumbers"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/lineNumbers"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("ifElse.kt")
@@ -1306,7 +1307,7 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class MultifileClasses extends AbstractBytecodeTextTest {
public void testAllFilesPresentInMultifileClasses() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/multifileClasses"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/multifileClasses"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("optimizedMultifileClassFacadeMethods.kt")
@@ -1321,7 +1322,7 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class Ranges extends AbstractBytecodeTextTest {
public void testAllFilesPresentInRanges() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/ranges"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/ranges"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("inNonMatchingRange.kt")
@@ -1342,7 +1343,7 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class Statements extends AbstractBytecodeTextTest {
public void testAllFilesPresentInStatements() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/statements"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/statements"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("ifSingleBranch.kt")
@@ -1399,7 +1400,7 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class StaticFields extends AbstractBytecodeTextTest {
public void testAllFilesPresentInStaticFields() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/staticFields"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/staticFields"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("classObject.kt")
@@ -1426,7 +1427,7 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class StoreStackBeforeInline extends AbstractBytecodeTextTest {
public void testAllFilesPresentInStoreStackBeforeInline() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/storeStackBeforeInline"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/storeStackBeforeInline"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("differentTypes.kt")
@@ -1465,7 +1466,7 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class StringOperations extends AbstractBytecodeTextTest {
public void testAllFilesPresentInStringOperations() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/stringOperations"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/stringOperations"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("concat.kt")
@@ -1510,7 +1511,7 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class When extends AbstractBytecodeTextTest {
public void testAllFilesPresentInWhen() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/when"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/when"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("exhaustiveWhenInitialization.kt")
@@ -1555,7 +1556,7 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class WhenEnumOptimization extends AbstractBytecodeTextTest {
public void testAllFilesPresentInWhenEnumOptimization() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/whenEnumOptimization"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/whenEnumOptimization"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("bigEnum.kt")
@@ -1624,7 +1625,7 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
@RunWith(JUnit3RunnerWithInners.class)
public static class WhenStringOptimization extends AbstractBytecodeTextTest {
public void testAllFilesPresentInWhenStringOptimization() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/whenStringOptimization"), Pattern.compile("^(.+)\\.kt$"), true);
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/whenStringOptimization"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("denseHashCode.kt")