[Test] Regenerate tests after two previous commits
This commit is contained in:
committed by
Space Team
parent
d9beae0556
commit
acf2296590
+580
-580
File diff suppressed because it is too large
Load Diff
+810
-810
File diff suppressed because it is too large
Load Diff
+264
-264
@@ -19,281 +19,281 @@ import java.util.regex.Pattern;
|
||||
@SuppressWarnings("all")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class DataFlowTestGenerated extends AbstractDataFlowTest {
|
||||
@TestMetadata("compiler/testData/cfg-variables")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Cfg_variables extends AbstractDataFlowTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCfg_variables() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfg-variables"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfg-variables/basic")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Basic extends AbstractDataFlowTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInBasic() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfg-variables/basic"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("ExhaustiveInitialization.kt")
|
||||
public void testExhaustiveInitialization() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/basic/ExhaustiveInitialization.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("IfWithUninitialized.kt")
|
||||
public void testIfWithUninitialized() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/basic/IfWithUninitialized.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("InitializedNotDeclared.kt")
|
||||
public void testInitializedNotDeclared() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/basic/InitializedNotDeclared.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("UsageInFunctionLiteral.kt")
|
||||
public void testUsageInFunctionLiteral() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/basic/UsageInFunctionLiteral.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("UseUninitializedInLambda.kt")
|
||||
public void testUseUninitializedInLambda() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/basic/UseUninitializedInLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("VariablesInitialization.kt")
|
||||
public void testVariablesInitialization() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/basic/VariablesInitialization.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("VariablesUsage.kt")
|
||||
public void testVariablesUsage() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/basic/VariablesUsage.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfg-variables/bugs")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Bugs extends AbstractDataFlowTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInBugs() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfg-variables/bugs"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("doWhileAssignment.kt")
|
||||
public void testDoWhileAssignment() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/bugs/doWhileAssignment.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("doWhileNotDefined.kt")
|
||||
public void testDoWhileNotDefined() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/bugs/doWhileNotDefined.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("initializationInLocalClass.kt")
|
||||
public void testInitializationInLocalClass() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/bugs/initializationInLocalClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt10243.kt")
|
||||
public void testKt10243() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/bugs/kt10243.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt4764.kt")
|
||||
public void testKt4764() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/bugs/kt4764.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt5469.kt")
|
||||
public void testKt5469() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/bugs/kt5469.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt9825.kt")
|
||||
public void testKt9825() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/bugs/kt9825.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localObjectInConstructor.kt")
|
||||
public void testLocalObjectInConstructor() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/bugs/localObjectInConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("referenceToPropertyInitializer.kt")
|
||||
public void testReferenceToPropertyInitializer() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/bugs/referenceToPropertyInitializer.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("varInitializationInIf.kt")
|
||||
public void testVarInitializationInIf() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/bugs/varInitializationInIf.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("varInitializationInIfInCycle.kt")
|
||||
public void testVarInitializationInIfInCycle() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/bugs/varInitializationInIfInCycle.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfg-variables/lexicalScopes")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class LexicalScopes extends AbstractDataFlowTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInLexicalScopes() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfg-variables/lexicalScopes"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("doWhileScope.kt")
|
||||
public void testDoWhileScope() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/doWhileScope.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forScope.kt")
|
||||
public void testForScope() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/forScope.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionLiteralScope.kt")
|
||||
public void testFunctionLiteralScope() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/functionLiteralScope.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ifScope.kt")
|
||||
public void testIfScope() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/ifScope.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localClass.kt")
|
||||
public void testLocalClass() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/localClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localFunctionScope.kt")
|
||||
public void testLocalFunctionScope() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/localFunctionScope.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localFunctionScopeWithoutBody.kt")
|
||||
public void testLocalFunctionScopeWithoutBody() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/localFunctionScopeWithoutBody.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localObject.kt")
|
||||
public void testLocalObject() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/localObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("objectLiteralScope.kt")
|
||||
public void testObjectLiteralScope() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/objectLiteralScope.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyAccessorScope.kt")
|
||||
public void testPropertyAccessorScope() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/propertyAccessorScope.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("tryScope.kt")
|
||||
public void testTryScope() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/tryScope.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("whileScope.kt")
|
||||
public void testWhileScope() throws Exception {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/whileScope.kt");
|
||||
}
|
||||
}
|
||||
@TestMetadata("compiler/testData/cfg-variables")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Cfg_variables extends AbstractDataFlowTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfgVariablesWithStdLib")
|
||||
public void testAllFilesPresentInCfg_variables() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfg-variables"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfg-variables/basic")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CfgVariablesWithStdLib extends AbstractDataFlowTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestWithStdLib, this, testDataFilePath);
|
||||
}
|
||||
public static class Basic extends AbstractDataFlowTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCfgVariablesWithStdLib() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfgVariablesWithStdLib"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
public void testAllFilesPresentInBasic() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfg-variables/basic"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfgVariablesWithStdLib/contracts")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Contracts extends AbstractDataFlowTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestWithStdLib, this, testDataFilePath);
|
||||
}
|
||||
@TestMetadata("ExhaustiveInitialization.kt")
|
||||
public void testExhaustiveInitialization() {
|
||||
runTest("compiler/testData/cfg-variables/basic/ExhaustiveInitialization.kt");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInContracts() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfgVariablesWithStdLib/contracts"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
@TestMetadata("IfWithUninitialized.kt")
|
||||
public void testIfWithUninitialized() {
|
||||
runTest("compiler/testData/cfg-variables/basic/IfWithUninitialized.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("breakContinuesInInlinedLambda.kt")
|
||||
public void testBreakContinuesInInlinedLambda() throws Exception {
|
||||
runTest("compiler/testData/cfgVariablesWithStdLib/contracts/breakContinuesInInlinedLambda.kt");
|
||||
}
|
||||
@TestMetadata("InitializedNotDeclared.kt")
|
||||
public void testInitializedNotDeclared() {
|
||||
runTest("compiler/testData/cfg-variables/basic/InitializedNotDeclared.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlinedLambdaAlwaysThrows.kt")
|
||||
public void testInlinedLambdaAlwaysThrows() throws Exception {
|
||||
runTest("compiler/testData/cfgVariablesWithStdLib/contracts/inlinedLambdaAlwaysThrows.kt");
|
||||
}
|
||||
@TestMetadata("UsageInFunctionLiteral.kt")
|
||||
public void testUsageInFunctionLiteral() {
|
||||
runTest("compiler/testData/cfg-variables/basic/UsageInFunctionLiteral.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("irrelevantUnknownClosure.kt")
|
||||
public void testIrrelevantUnknownClosure() throws Exception {
|
||||
runTest("compiler/testData/cfgVariablesWithStdLib/contracts/irrelevantUnknownClosure.kt");
|
||||
}
|
||||
@TestMetadata("UseUninitializedInLambda.kt")
|
||||
public void testUseUninitializedInLambda() {
|
||||
runTest("compiler/testData/cfg-variables/basic/UseUninitializedInLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedTryCatchFinally.kt")
|
||||
public void testNestedTryCatchFinally() throws Exception {
|
||||
runTest("compiler/testData/cfgVariablesWithStdLib/contracts/nestedTryCatchFinally.kt");
|
||||
}
|
||||
@TestMetadata("VariablesInitialization.kt")
|
||||
public void testVariablesInitialization() {
|
||||
runTest("compiler/testData/cfg-variables/basic/VariablesInitialization.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedTryCatchs.kt")
|
||||
public void testNestedTryCatchs() throws Exception {
|
||||
runTest("compiler/testData/cfgVariablesWithStdLib/contracts/nestedTryCatchs.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonReturningInlinedLambda.kt")
|
||||
public void testNonReturningInlinedLambda() throws Exception {
|
||||
runTest("compiler/testData/cfgVariablesWithStdLib/contracts/nonReturningInlinedLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("returnsAndCalls.kt")
|
||||
public void testReturnsAndCalls() throws Exception {
|
||||
runTest("compiler/testData/cfgVariablesWithStdLib/contracts/returnsAndCalls.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("throwIfNotCalled.kt")
|
||||
public void testThrowIfNotCalled() throws Exception {
|
||||
runTest("compiler/testData/cfgVariablesWithStdLib/contracts/throwIfNotCalled.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("tryCatch.kt")
|
||||
public void testTryCatch() throws Exception {
|
||||
runTest("compiler/testData/cfgVariablesWithStdLib/contracts/tryCatch.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("tryCatchFinally.kt")
|
||||
public void testTryCatchFinally() throws Exception {
|
||||
runTest("compiler/testData/cfgVariablesWithStdLib/contracts/tryCatchFinally.kt");
|
||||
}
|
||||
}
|
||||
@TestMetadata("VariablesUsage.kt")
|
||||
public void testVariablesUsage() {
|
||||
runTest("compiler/testData/cfg-variables/basic/VariablesUsage.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfg-variables/bugs")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Bugs extends AbstractDataFlowTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInBugs() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfg-variables/bugs"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("doWhileAssignment.kt")
|
||||
public void testDoWhileAssignment() {
|
||||
runTest("compiler/testData/cfg-variables/bugs/doWhileAssignment.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("doWhileNotDefined.kt")
|
||||
public void testDoWhileNotDefined() {
|
||||
runTest("compiler/testData/cfg-variables/bugs/doWhileNotDefined.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("initializationInLocalClass.kt")
|
||||
public void testInitializationInLocalClass() {
|
||||
runTest("compiler/testData/cfg-variables/bugs/initializationInLocalClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt10243.kt")
|
||||
public void testKt10243() {
|
||||
runTest("compiler/testData/cfg-variables/bugs/kt10243.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt4764.kt")
|
||||
public void testKt4764() {
|
||||
runTest("compiler/testData/cfg-variables/bugs/kt4764.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt5469.kt")
|
||||
public void testKt5469() {
|
||||
runTest("compiler/testData/cfg-variables/bugs/kt5469.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt9825.kt")
|
||||
public void testKt9825() {
|
||||
runTest("compiler/testData/cfg-variables/bugs/kt9825.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localObjectInConstructor.kt")
|
||||
public void testLocalObjectInConstructor() {
|
||||
runTest("compiler/testData/cfg-variables/bugs/localObjectInConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("referenceToPropertyInitializer.kt")
|
||||
public void testReferenceToPropertyInitializer() {
|
||||
runTest("compiler/testData/cfg-variables/bugs/referenceToPropertyInitializer.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("varInitializationInIf.kt")
|
||||
public void testVarInitializationInIf() {
|
||||
runTest("compiler/testData/cfg-variables/bugs/varInitializationInIf.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("varInitializationInIfInCycle.kt")
|
||||
public void testVarInitializationInIfInCycle() {
|
||||
runTest("compiler/testData/cfg-variables/bugs/varInitializationInIfInCycle.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfg-variables/lexicalScopes")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class LexicalScopes extends AbstractDataFlowTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInLexicalScopes() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfg-variables/lexicalScopes"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("doWhileScope.kt")
|
||||
public void testDoWhileScope() {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/doWhileScope.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forScope.kt")
|
||||
public void testForScope() {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/forScope.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionLiteralScope.kt")
|
||||
public void testFunctionLiteralScope() {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/functionLiteralScope.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ifScope.kt")
|
||||
public void testIfScope() {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/ifScope.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localClass.kt")
|
||||
public void testLocalClass() {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/localClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localFunctionScope.kt")
|
||||
public void testLocalFunctionScope() {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/localFunctionScope.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localFunctionScopeWithoutBody.kt")
|
||||
public void testLocalFunctionScopeWithoutBody() {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/localFunctionScopeWithoutBody.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localObject.kt")
|
||||
public void testLocalObject() {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/localObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("objectLiteralScope.kt")
|
||||
public void testObjectLiteralScope() {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/objectLiteralScope.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyAccessorScope.kt")
|
||||
public void testPropertyAccessorScope() {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/propertyAccessorScope.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("tryScope.kt")
|
||||
public void testTryScope() {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/tryScope.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("whileScope.kt")
|
||||
public void testWhileScope() {
|
||||
runTest("compiler/testData/cfg-variables/lexicalScopes/whileScope.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfgVariablesWithStdLib")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CfgVariablesWithStdLib extends AbstractDataFlowTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTestWithStdLib, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCfgVariablesWithStdLib() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfgVariablesWithStdLib"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/cfgVariablesWithStdLib/contracts")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Contracts extends AbstractDataFlowTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTestWithStdLib, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInContracts() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/cfgVariablesWithStdLib/contracts"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("breakContinuesInInlinedLambda.kt")
|
||||
public void testBreakContinuesInInlinedLambda() {
|
||||
runTest("compiler/testData/cfgVariablesWithStdLib/contracts/breakContinuesInInlinedLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlinedLambdaAlwaysThrows.kt")
|
||||
public void testInlinedLambdaAlwaysThrows() {
|
||||
runTest("compiler/testData/cfgVariablesWithStdLib/contracts/inlinedLambdaAlwaysThrows.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("irrelevantUnknownClosure.kt")
|
||||
public void testIrrelevantUnknownClosure() {
|
||||
runTest("compiler/testData/cfgVariablesWithStdLib/contracts/irrelevantUnknownClosure.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedTryCatchFinally.kt")
|
||||
public void testNestedTryCatchFinally() {
|
||||
runTest("compiler/testData/cfgVariablesWithStdLib/contracts/nestedTryCatchFinally.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedTryCatchs.kt")
|
||||
public void testNestedTryCatchs() {
|
||||
runTest("compiler/testData/cfgVariablesWithStdLib/contracts/nestedTryCatchs.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonReturningInlinedLambda.kt")
|
||||
public void testNonReturningInlinedLambda() {
|
||||
runTest("compiler/testData/cfgVariablesWithStdLib/contracts/nonReturningInlinedLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("returnsAndCalls.kt")
|
||||
public void testReturnsAndCalls() {
|
||||
runTest("compiler/testData/cfgVariablesWithStdLib/contracts/returnsAndCalls.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("throwIfNotCalled.kt")
|
||||
public void testThrowIfNotCalled() {
|
||||
runTest("compiler/testData/cfgVariablesWithStdLib/contracts/throwIfNotCalled.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("tryCatch.kt")
|
||||
public void testTryCatch() {
|
||||
runTest("compiler/testData/cfgVariablesWithStdLib/contracts/tryCatch.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("tryCatchFinally.kt")
|
||||
public void testTryCatchFinally() {
|
||||
runTest("compiler/testData/cfgVariablesWithStdLib/contracts/tryCatchFinally.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1076
-1076
File diff suppressed because it is too large
Load Diff
+1567
-1567
File diff suppressed because it is too large
Load Diff
Generated
+95
-95
@@ -22,114 +22,114 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class CheckLocalVariablesTableTestGenerated extends AbstractCheckLocalVariablesTableTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCheckLocalVariablesTable() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/checkLocalVariablesTable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("destructuringInLambdas.kt")
|
||||
public void testDestructuringInLambdas() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/destructuringInLambdas.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineLambdaWithItParam.kt")
|
||||
public void testInlineLambdaWithItParam() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineLambdaWithItParam.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineLambdaWithParam.kt")
|
||||
public void testInlineLambdaWithParam() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineLambdaWithParam.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSimple.kt")
|
||||
public void testInlineSimple() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineSimple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSimpleChain.kt")
|
||||
public void testInlineSimpleChain() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineSimpleChain.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("itInLambda.kt")
|
||||
public void testItInLambda() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/itInLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("itInReturnedLambda.kt")
|
||||
public void testItInReturnedLambda() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/itInReturnedLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt11117.kt")
|
||||
public void testKt11117() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/kt11117.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaAsVar.kt")
|
||||
public void testLambdaAsVar() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/lambdaAsVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("objectInLocalPropertyDelegate.kt")
|
||||
public void testObjectInLocalPropertyDelegate() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/objectInLocalPropertyDelegate.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendFunctionDeadVariables.kt")
|
||||
public void testSuspendFunctionDeadVariables() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/suspendFunctionDeadVariables.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("underscoreNames.kt")
|
||||
public void testUnderscoreNames() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/underscoreNames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ParametersInSuspendLambda extends AbstractCheckLocalVariablesTableTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCheckLocalVariablesTable() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/checkLocalVariablesTable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
public void testAllFilesPresentInParametersInSuspendLambda() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("destructuringInLambdas.kt")
|
||||
public void testDestructuringInLambdas() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/destructuringInLambdas.kt");
|
||||
@TestMetadata("dataClass.kt")
|
||||
public void testDataClass() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/dataClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineLambdaWithItParam.kt")
|
||||
public void testInlineLambdaWithItParam() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineLambdaWithItParam.kt");
|
||||
@TestMetadata("extensionComponents.kt")
|
||||
public void testExtensionComponents() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/extensionComponents.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineLambdaWithParam.kt")
|
||||
public void testInlineLambdaWithParam() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineLambdaWithParam.kt");
|
||||
@TestMetadata("generic.kt")
|
||||
public void testGeneric() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/generic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSimple.kt")
|
||||
public void testInlineSimple() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineSimple.kt");
|
||||
@TestMetadata("inline.kt")
|
||||
public void testInline() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/inline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSimpleChain.kt")
|
||||
public void testInlineSimpleChain() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineSimpleChain.kt");
|
||||
@TestMetadata("otherParameters.kt")
|
||||
public void testOtherParameters() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/otherParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("itInLambda.kt")
|
||||
public void testItInLambda() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/itInLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("itInReturnedLambda.kt")
|
||||
public void testItInReturnedLambda() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/itInReturnedLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt11117.kt")
|
||||
public void testKt11117() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/kt11117.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaAsVar.kt")
|
||||
public void testLambdaAsVar() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/lambdaAsVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("objectInLocalPropertyDelegate.kt")
|
||||
public void testObjectInLocalPropertyDelegate() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/objectInLocalPropertyDelegate.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendFunctionDeadVariables.kt")
|
||||
public void testSuspendFunctionDeadVariables() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/suspendFunctionDeadVariables.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("underscoreNames.kt")
|
||||
public void testUnderscoreNames() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/underscoreNames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ParametersInSuspendLambda extends AbstractCheckLocalVariablesTableTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInParametersInSuspendLambda() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("dataClass.kt")
|
||||
public void testDataClass() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/dataClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionComponents.kt")
|
||||
public void testExtensionComponents() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/extensionComponents.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("generic.kt")
|
||||
public void testGeneric() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/generic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inline.kt")
|
||||
public void testInline() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/inline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("otherParameters.kt")
|
||||
public void testOtherParameters() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/otherParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("parameters.kt")
|
||||
public void testParameters() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/parameters.kt");
|
||||
}
|
||||
@TestMetadata("parameters.kt")
|
||||
public void testParameters() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/parameters.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+26
-26
@@ -22,36 +22,36 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class CustomScriptCodegenTestGenerated extends AbstractCustomScriptCodegenTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCustomScript() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/customScript"), Pattern.compile("^(.*)$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
public void testAllFilesPresentInCustomScript() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/customScript"), Pattern.compile("^(.*)$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("pathPattern5.kts")
|
||||
public void testPathPattern5_kts() throws Exception {
|
||||
runTest("compiler/testData/codegen/customScript/pathPattern5.kts");
|
||||
}
|
||||
@TestMetadata("pathPattern5.kts")
|
||||
public void testPathPattern5_kts() {
|
||||
runTest("compiler/testData/codegen/customScript/pathPattern5.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("providedPropsInLambda.kts")
|
||||
public void testProvidedPropsInLambda_kts() throws Exception {
|
||||
runTest("compiler/testData/codegen/customScript/providedPropsInLambda.kts");
|
||||
}
|
||||
@TestMetadata("providedPropsInLambda.kts")
|
||||
public void testProvidedPropsInLambda_kts() {
|
||||
runTest("compiler/testData/codegen/customScript/providedPropsInLambda.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleEnvVars.kts")
|
||||
public void testSimpleEnvVars_kts() throws Exception {
|
||||
runTest("compiler/testData/codegen/customScript/simpleEnvVars.kts");
|
||||
}
|
||||
@TestMetadata("simpleEnvVars.kts")
|
||||
public void testSimpleEnvVars_kts() {
|
||||
runTest("compiler/testData/codegen/customScript/simpleEnvVars.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.customext")
|
||||
public void testSimple_customext() throws Exception {
|
||||
runTest("compiler/testData/codegen/customScript/simple.customext");
|
||||
}
|
||||
@TestMetadata("simple.customext")
|
||||
public void testSimple_customext() {
|
||||
runTest("compiler/testData/codegen/customScript/simple.customext");
|
||||
}
|
||||
|
||||
@TestMetadata("stringReceiver.kts")
|
||||
public void testStringReceiver_kts() throws Exception {
|
||||
runTest("compiler/testData/codegen/customScript/stringReceiver.kts");
|
||||
}
|
||||
@TestMetadata("stringReceiver.kts")
|
||||
public void testStringReceiver_kts() {
|
||||
runTest("compiler/testData/codegen/customScript/stringReceiver.kts");
|
||||
}
|
||||
}
|
||||
|
||||
+30
-30
@@ -22,41 +22,41 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IrCustomScriptCodegenTestGenerated extends AbstractIrCustomScriptCodegenTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCustomScript() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/customScript"), Pattern.compile("^(.*)$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
public void testAllFilesPresentInCustomScript() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/customScript"), Pattern.compile("^(.*)$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("captureImplicitReceiverInDefaultValue.kts")
|
||||
public void testCaptureImplicitReceiverInDefaultValue_kts() throws Exception {
|
||||
runTest("compiler/testData/codegen/customScript/captureImplicitReceiverInDefaultValue.kts");
|
||||
}
|
||||
@TestMetadata("captureImplicitReceiverInDefaultValue.kts")
|
||||
public void testCaptureImplicitReceiverInDefaultValue_kts() {
|
||||
runTest("compiler/testData/codegen/customScript/captureImplicitReceiverInDefaultValue.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("pathPattern5.kts")
|
||||
public void testPathPattern5_kts() throws Exception {
|
||||
runTest("compiler/testData/codegen/customScript/pathPattern5.kts");
|
||||
}
|
||||
@TestMetadata("pathPattern5.kts")
|
||||
public void testPathPattern5_kts() {
|
||||
runTest("compiler/testData/codegen/customScript/pathPattern5.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("providedPropsInLambda.kts")
|
||||
public void testProvidedPropsInLambda_kts() throws Exception {
|
||||
runTest("compiler/testData/codegen/customScript/providedPropsInLambda.kts");
|
||||
}
|
||||
@TestMetadata("providedPropsInLambda.kts")
|
||||
public void testProvidedPropsInLambda_kts() {
|
||||
runTest("compiler/testData/codegen/customScript/providedPropsInLambda.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleEnvVars.kts")
|
||||
public void testSimpleEnvVars_kts() throws Exception {
|
||||
runTest("compiler/testData/codegen/customScript/simpleEnvVars.kts");
|
||||
}
|
||||
@TestMetadata("simpleEnvVars.kts")
|
||||
public void testSimpleEnvVars_kts() {
|
||||
runTest("compiler/testData/codegen/customScript/simpleEnvVars.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.customext")
|
||||
public void testSimple_customext() throws Exception {
|
||||
runTest("compiler/testData/codegen/customScript/simple.customext");
|
||||
}
|
||||
@TestMetadata("simple.customext")
|
||||
public void testSimple_customext() {
|
||||
runTest("compiler/testData/codegen/customScript/simple.customext");
|
||||
}
|
||||
|
||||
@TestMetadata("stringReceiver.kts")
|
||||
public void testStringReceiver_kts() throws Exception {
|
||||
runTest("compiler/testData/codegen/customScript/stringReceiver.kts");
|
||||
}
|
||||
@TestMetadata("stringReceiver.kts")
|
||||
public void testStringReceiver_kts() {
|
||||
runTest("compiler/testData/codegen/customScript/stringReceiver.kts");
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+34
-34
@@ -22,46 +22,46 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IrKapt3BuilderModeBytecodeShapeTestGenerated extends AbstractIrKapt3BuilderModeBytecodeShapeTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInKapt() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/kapt"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
public void testAllFilesPresentInKapt() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/kapt"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("dataClass.kt")
|
||||
public void testDataClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/kapt/dataClass.kt");
|
||||
}
|
||||
@TestMetadata("dataClass.kt")
|
||||
public void testDataClass() {
|
||||
runTest("compiler/testData/codegen/kapt/dataClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("errorTypes.kt")
|
||||
public void testErrorTypes() throws Exception {
|
||||
runTest("compiler/testData/codegen/kapt/errorTypes.kt");
|
||||
}
|
||||
@TestMetadata("errorTypes.kt")
|
||||
public void testErrorTypes() {
|
||||
runTest("compiler/testData/codegen/kapt/errorTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClasses.kt")
|
||||
public void testInnerClasses() throws Exception {
|
||||
runTest("compiler/testData/codegen/kapt/innerClasses.kt");
|
||||
}
|
||||
@TestMetadata("innerClasses.kt")
|
||||
public void testInnerClasses() {
|
||||
runTest("compiler/testData/codegen/kapt/innerClasses.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("interfaceImpls.kt")
|
||||
public void testInterfaceImpls() throws Exception {
|
||||
runTest("compiler/testData/codegen/kapt/interfaceImpls.kt");
|
||||
}
|
||||
@TestMetadata("interfaceImpls.kt")
|
||||
public void testInterfaceImpls() {
|
||||
runTest("compiler/testData/codegen/kapt/interfaceImpls.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmOverloads.kt")
|
||||
public void testJvmOverloads() throws Exception {
|
||||
runTest("compiler/testData/codegen/kapt/jvmOverloads.kt");
|
||||
}
|
||||
@TestMetadata("jvmOverloads.kt")
|
||||
public void testJvmOverloads() {
|
||||
runTest("compiler/testData/codegen/kapt/jvmOverloads.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdas.kt")
|
||||
public void testLambdas() throws Exception {
|
||||
runTest("compiler/testData/codegen/kapt/lambdas.kt");
|
||||
}
|
||||
@TestMetadata("lambdas.kt")
|
||||
public void testLambdas() {
|
||||
runTest("compiler/testData/codegen/kapt/lambdas.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/kapt/simple.kt");
|
||||
}
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() {
|
||||
runTest("compiler/testData/codegen/kapt/simple.kt");
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+34
-34
@@ -22,46 +22,46 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class Kapt3BuilderModeBytecodeShapeTestGenerated extends AbstractKapt3BuilderModeBytecodeShapeTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInKapt() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/kapt"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
public void testAllFilesPresentInKapt() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/kapt"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("dataClass.kt")
|
||||
public void testDataClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/kapt/dataClass.kt");
|
||||
}
|
||||
@TestMetadata("dataClass.kt")
|
||||
public void testDataClass() {
|
||||
runTest("compiler/testData/codegen/kapt/dataClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("errorTypes.kt")
|
||||
public void testErrorTypes() throws Exception {
|
||||
runTest("compiler/testData/codegen/kapt/errorTypes.kt");
|
||||
}
|
||||
@TestMetadata("errorTypes.kt")
|
||||
public void testErrorTypes() {
|
||||
runTest("compiler/testData/codegen/kapt/errorTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClasses.kt")
|
||||
public void testInnerClasses() throws Exception {
|
||||
runTest("compiler/testData/codegen/kapt/innerClasses.kt");
|
||||
}
|
||||
@TestMetadata("innerClasses.kt")
|
||||
public void testInnerClasses() {
|
||||
runTest("compiler/testData/codegen/kapt/innerClasses.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("interfaceImpls.kt")
|
||||
public void testInterfaceImpls() throws Exception {
|
||||
runTest("compiler/testData/codegen/kapt/interfaceImpls.kt");
|
||||
}
|
||||
@TestMetadata("interfaceImpls.kt")
|
||||
public void testInterfaceImpls() {
|
||||
runTest("compiler/testData/codegen/kapt/interfaceImpls.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmOverloads.kt")
|
||||
public void testJvmOverloads() throws Exception {
|
||||
runTest("compiler/testData/codegen/kapt/jvmOverloads.kt");
|
||||
}
|
||||
@TestMetadata("jvmOverloads.kt")
|
||||
public void testJvmOverloads() {
|
||||
runTest("compiler/testData/codegen/kapt/jvmOverloads.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdas.kt")
|
||||
public void testLambdas() throws Exception {
|
||||
runTest("compiler/testData/codegen/kapt/lambdas.kt");
|
||||
}
|
||||
@TestMetadata("lambdas.kt")
|
||||
public void testLambdas() {
|
||||
runTest("compiler/testData/codegen/kapt/lambdas.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/kapt/simple.kt");
|
||||
}
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() {
|
||||
runTest("compiler/testData/codegen/kapt/simple.kt");
|
||||
}
|
||||
}
|
||||
|
||||
+44086
-44086
File diff suppressed because it is too large
Load Diff
+242
-242
@@ -22,289 +22,289 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class ScriptCodegenTestGenerated extends AbstractScriptCodegenTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("adder.kts")
|
||||
public void testAdder() {
|
||||
runTest("compiler/testData/codegen/script/adder.kts");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInScript() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/script"), Pattern.compile("^(.+)\\.kts$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("classLiteralInsideFunction.kts")
|
||||
public void testClassLiteralInsideFunction() {
|
||||
runTest("compiler/testData/codegen/script/classLiteralInsideFunction.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("destructuringDeclaration.kts")
|
||||
public void testDestructuringDeclaration() {
|
||||
runTest("compiler/testData/codegen/script/destructuringDeclaration.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("destructuringDeclarationUnderscore.kts")
|
||||
public void testDestructuringDeclarationUnderscore() {
|
||||
runTest("compiler/testData/codegen/script/destructuringDeclarationUnderscore.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("empty.kts")
|
||||
public void testEmpty() {
|
||||
runTest("compiler/testData/codegen/script/empty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("helloWorld.kts")
|
||||
public void testHelloWorld() {
|
||||
runTest("compiler/testData/codegen/script/helloWorld.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("inline.kts")
|
||||
public void testInline() {
|
||||
runTest("compiler/testData/codegen/script/inline.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClass.kts")
|
||||
public void testInnerClass() {
|
||||
runTest("compiler/testData/codegen/script/innerClass.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("kt20707.kts")
|
||||
public void testKt20707() {
|
||||
runTest("compiler/testData/codegen/script/kt20707.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("kt22029.kts")
|
||||
public void testKt22029() {
|
||||
runTest("compiler/testData/codegen/script/kt22029.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("kt48025.kts")
|
||||
public void testKt48025() {
|
||||
runTest("compiler/testData/codegen/script/kt48025.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("localDelegatedProperty.kts")
|
||||
public void testLocalDelegatedProperty() {
|
||||
runTest("compiler/testData/codegen/script/localDelegatedProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("localDelegatedPropertyInLambda.kts")
|
||||
public void testLocalDelegatedPropertyInLambda() {
|
||||
runTest("compiler/testData/codegen/script/localDelegatedPropertyInLambda.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("localDelegatedPropertyNoExplicitType.kts")
|
||||
public void testLocalDelegatedPropertyNoExplicitType() {
|
||||
runTest("compiler/testData/codegen/script/localDelegatedPropertyNoExplicitType.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("localFunction.kts")
|
||||
public void testLocalFunction() {
|
||||
runTest("compiler/testData/codegen/script/localFunction.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("outerCapture.kts")
|
||||
public void testOuterCapture() {
|
||||
runTest("compiler/testData/codegen/script/outerCapture.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("parameter.kts")
|
||||
public void testParameter() {
|
||||
runTest("compiler/testData/codegen/script/parameter.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterArray.kts")
|
||||
public void testParameterArray() {
|
||||
runTest("compiler/testData/codegen/script/parameterArray.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterClosure.kts")
|
||||
public void testParameterClosure() {
|
||||
runTest("compiler/testData/codegen/script/parameterClosure.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterLong.kts")
|
||||
public void testParameterLong() {
|
||||
runTest("compiler/testData/codegen/script/parameterLong.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("secondLevelFunction.kts")
|
||||
public void testSecondLevelFunction() {
|
||||
runTest("compiler/testData/codegen/script/secondLevelFunction.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("secondLevelFunctionClosure.kts")
|
||||
public void testSecondLevelFunctionClosure() {
|
||||
runTest("compiler/testData/codegen/script/secondLevelFunctionClosure.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("secondLevelVal.kts")
|
||||
public void testSecondLevelVal() {
|
||||
runTest("compiler/testData/codegen/script/secondLevelVal.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleClass.kts")
|
||||
public void testSimpleClass() {
|
||||
runTest("compiler/testData/codegen/script/simpleClass.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("string.kts")
|
||||
public void testString() {
|
||||
runTest("compiler/testData/codegen/script/string.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelFunction.kts")
|
||||
public void testTopLevelFunction() {
|
||||
runTest("compiler/testData/codegen/script/topLevelFunction.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelFunctionClosure.kts")
|
||||
public void testTopLevelFunctionClosure() {
|
||||
runTest("compiler/testData/codegen/script/topLevelFunctionClosure.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelLocalDelegatedProperty.kts")
|
||||
public void testTopLevelLocalDelegatedProperty() {
|
||||
runTest("compiler/testData/codegen/script/topLevelLocalDelegatedProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelPropertiesWithGetSet.kts")
|
||||
public void testTopLevelPropertiesWithGetSet() {
|
||||
runTest("compiler/testData/codegen/script/topLevelPropertiesWithGetSet.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelProperty.kts")
|
||||
public void testTopLevelProperty() {
|
||||
runTest("compiler/testData/codegen/script/topLevelProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelPropertyWithProvideDelegate.kts")
|
||||
public void testTopLevelPropertyWithProvideDelegate() {
|
||||
runTest("compiler/testData/codegen/script/topLevelPropertyWithProvideDelegate.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelTypealias.kts")
|
||||
public void testTopLevelTypealias() {
|
||||
runTest("compiler/testData/codegen/script/topLevelTypealias.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("twoDestructuringDeclarations.kts")
|
||||
public void testTwoDestructuringDeclarations() {
|
||||
runTest("compiler/testData/codegen/script/twoDestructuringDeclarations.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/script/scriptInstanceCapturing")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ScriptInstanceCapturing extends AbstractScriptCodegenTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("adder.kts")
|
||||
public void testAdder() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/adder.kts");
|
||||
public void testAllFilesPresentInScriptInstanceCapturing() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/script/scriptInstanceCapturing"), Pattern.compile("^(.+)\\.kts$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInScript() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/script"), Pattern.compile("^(.+)\\.kts$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), TargetBackend.JVM, true);
|
||||
@TestMetadata("anonymousObjectCapturesProperty.kts")
|
||||
public void testAnonymousObjectCapturesProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/anonymousObjectCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("classLiteralInsideFunction.kts")
|
||||
public void testClassLiteralInsideFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/classLiteralInsideFunction.kts");
|
||||
@TestMetadata("classCapturesExtensionIndirect.kts")
|
||||
public void testClassCapturesExtensionIndirect() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesExtensionIndirect.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("destructuringDeclaration.kts")
|
||||
public void testDestructuringDeclaration() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/destructuringDeclaration.kts");
|
||||
@TestMetadata("classCapturesExtensionIndirect2x.kts")
|
||||
public void testClassCapturesExtensionIndirect2x() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesExtensionIndirect2x.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("destructuringDeclarationUnderscore.kts")
|
||||
public void testDestructuringDeclarationUnderscore() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/destructuringDeclarationUnderscore.kts");
|
||||
@TestMetadata("classCapturesFunction.kts")
|
||||
public void testClassCapturesFunction() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesFunction.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("empty.kts")
|
||||
public void testEmpty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/empty.kts");
|
||||
@TestMetadata("classCapturesProperty.kts")
|
||||
public void testClassCapturesProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("helloWorld.kts")
|
||||
public void testHelloWorld() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/helloWorld.kts");
|
||||
@TestMetadata("classCapturesPropertyInStringTemplate.kts")
|
||||
public void testClassCapturesPropertyInStringTemplate() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyInStringTemplate.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("inline.kts")
|
||||
public void testInline() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/inline.kts");
|
||||
@TestMetadata("classCapturesPropertyIndirect.kts")
|
||||
public void testClassCapturesPropertyIndirect() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyIndirect.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClass.kts")
|
||||
public void testInnerClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/innerClass.kts");
|
||||
@TestMetadata("classCapturesPropertyIndirect2x.kts")
|
||||
public void testClassCapturesPropertyIndirect2x() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyIndirect2x.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("kt20707.kts")
|
||||
public void testKt20707() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/kt20707.kts");
|
||||
@TestMetadata("companionCapturesProperty.kts")
|
||||
public void testCompanionCapturesProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/companionCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("kt22029.kts")
|
||||
public void testKt22029() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/kt22029.kts");
|
||||
@TestMetadata("enumCapturesProperty.kts")
|
||||
public void testEnumCapturesProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/enumCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("kt48025.kts")
|
||||
public void testKt48025() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/kt48025.kts");
|
||||
@TestMetadata("enumEntryCapturesProperty.kts")
|
||||
public void testEnumEntryCapturesProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/enumEntryCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("localDelegatedProperty.kts")
|
||||
public void testLocalDelegatedProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/localDelegatedProperty.kts");
|
||||
@TestMetadata("innerClassesHierarchyCaptureProperty.kts")
|
||||
public void testInnerClassesHierarchyCaptureProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/innerClassesHierarchyCaptureProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("localDelegatedPropertyInLambda.kts")
|
||||
public void testLocalDelegatedPropertyInLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/localDelegatedPropertyInLambda.kts");
|
||||
@TestMetadata("interfaceCapturesProperty.kts")
|
||||
public void testInterfaceCapturesProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/interfaceCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("localDelegatedPropertyNoExplicitType.kts")
|
||||
public void testLocalDelegatedPropertyNoExplicitType() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/localDelegatedPropertyNoExplicitType.kts");
|
||||
@TestMetadata("nestedAndOuterClassesCaptureProperty.kts")
|
||||
public void testNestedAndOuterClassesCaptureProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/nestedAndOuterClassesCaptureProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("localFunction.kts")
|
||||
public void testLocalFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/localFunction.kts");
|
||||
@TestMetadata("nestedClassCapturesProperty.kts")
|
||||
public void testNestedClassCapturesProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/nestedClassCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("outerCapture.kts")
|
||||
public void testOuterCapture() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/outerCapture.kts");
|
||||
@TestMetadata("nestedInnerClassCapturesProperty.kts")
|
||||
public void testNestedInnerClassCapturesProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/nestedInnerClassCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("parameter.kts")
|
||||
public void testParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/parameter.kts");
|
||||
@TestMetadata("nestedToObjectClassCapturesProperty.kts")
|
||||
public void testNestedToObjectClassCapturesProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/nestedToObjectClassCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterArray.kts")
|
||||
public void testParameterArray() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/parameterArray.kts");
|
||||
@TestMetadata("objectCapturesProperty.kts")
|
||||
public void testObjectCapturesProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/objectCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterClosure.kts")
|
||||
public void testParameterClosure() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/parameterClosure.kts");
|
||||
@TestMetadata("objectCapturesPropertyIndirect.kts")
|
||||
public void testObjectCapturesPropertyIndirect() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/objectCapturesPropertyIndirect.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterLong.kts")
|
||||
public void testParameterLong() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/parameterLong.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("secondLevelFunction.kts")
|
||||
public void testSecondLevelFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/secondLevelFunction.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("secondLevelFunctionClosure.kts")
|
||||
public void testSecondLevelFunctionClosure() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/secondLevelFunctionClosure.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("secondLevelVal.kts")
|
||||
public void testSecondLevelVal() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/secondLevelVal.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleClass.kts")
|
||||
public void testSimpleClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/simpleClass.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("string.kts")
|
||||
public void testString() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/string.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelFunction.kts")
|
||||
public void testTopLevelFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelFunction.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelFunctionClosure.kts")
|
||||
public void testTopLevelFunctionClosure() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelFunctionClosure.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelLocalDelegatedProperty.kts")
|
||||
public void testTopLevelLocalDelegatedProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelLocalDelegatedProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelPropertiesWithGetSet.kts")
|
||||
public void testTopLevelPropertiesWithGetSet() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelPropertiesWithGetSet.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelProperty.kts")
|
||||
public void testTopLevelProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelPropertyWithProvideDelegate.kts")
|
||||
public void testTopLevelPropertyWithProvideDelegate() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelPropertyWithProvideDelegate.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelTypealias.kts")
|
||||
public void testTopLevelTypealias() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelTypealias.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("twoDestructuringDeclarations.kts")
|
||||
public void testTwoDestructuringDeclarations() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/twoDestructuringDeclarations.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/script/scriptInstanceCapturing")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ScriptInstanceCapturing extends AbstractScriptCodegenTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInScriptInstanceCapturing() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/script/scriptInstanceCapturing"), Pattern.compile("^(.+)\\.kts$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("anonymousObjectCapturesProperty.kts")
|
||||
public void testAnonymousObjectCapturesProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/anonymousObjectCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("classCapturesExtensionIndirect.kts")
|
||||
public void testClassCapturesExtensionIndirect() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesExtensionIndirect.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("classCapturesExtensionIndirect2x.kts")
|
||||
public void testClassCapturesExtensionIndirect2x() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesExtensionIndirect2x.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("classCapturesFunction.kts")
|
||||
public void testClassCapturesFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesFunction.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("classCapturesProperty.kts")
|
||||
public void testClassCapturesProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("classCapturesPropertyInStringTemplate.kts")
|
||||
public void testClassCapturesPropertyInStringTemplate() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyInStringTemplate.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("classCapturesPropertyIndirect.kts")
|
||||
public void testClassCapturesPropertyIndirect() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyIndirect.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("classCapturesPropertyIndirect2x.kts")
|
||||
public void testClassCapturesPropertyIndirect2x() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyIndirect2x.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("companionCapturesProperty.kts")
|
||||
public void testCompanionCapturesProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/companionCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("enumCapturesProperty.kts")
|
||||
public void testEnumCapturesProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/enumCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("enumEntryCapturesProperty.kts")
|
||||
public void testEnumEntryCapturesProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/enumEntryCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClassesHierarchyCaptureProperty.kts")
|
||||
public void testInnerClassesHierarchyCaptureProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/innerClassesHierarchyCaptureProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("interfaceCapturesProperty.kts")
|
||||
public void testInterfaceCapturesProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/interfaceCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedAndOuterClassesCaptureProperty.kts")
|
||||
public void testNestedAndOuterClassesCaptureProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/nestedAndOuterClassesCaptureProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedClassCapturesProperty.kts")
|
||||
public void testNestedClassCapturesProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/nestedClassCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedInnerClassCapturesProperty.kts")
|
||||
public void testNestedInnerClassCapturesProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/nestedInnerClassCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedToObjectClassCapturesProperty.kts")
|
||||
public void testNestedToObjectClassCapturesProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/nestedToObjectClassCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("objectCapturesProperty.kts")
|
||||
public void testObjectCapturesProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/objectCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("objectCapturesPropertyIndirect.kts")
|
||||
public void testObjectCapturesPropertyIndirect() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/objectCapturesPropertyIndirect.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("objectCapturesPropertyViaExtension.kts")
|
||||
public void testObjectCapturesPropertyViaExtension() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/objectCapturesPropertyViaExtension.kts");
|
||||
}
|
||||
@TestMetadata("objectCapturesPropertyViaExtension.kts")
|
||||
public void testObjectCapturesPropertyViaExtension() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/objectCapturesPropertyViaExtension.kts");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+34
-34
@@ -21,46 +21,46 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class TopLevelMembersInvocationTestGenerated extends AbstractTopLevelMembersInvocationTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTopLevelMemberInvocation() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/topLevelMemberInvocation"), Pattern.compile("^([^\\.]+)$"), null, false);
|
||||
}
|
||||
public void testAllFilesPresentInTopLevelMemberInvocation() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/topLevelMemberInvocation"), Pattern.compile("^([^\\.]+)$"), null, false);
|
||||
}
|
||||
|
||||
@TestMetadata("extensionFunction")
|
||||
public void testExtensionFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/topLevelMemberInvocation/extensionFunction/");
|
||||
}
|
||||
@TestMetadata("extensionFunction")
|
||||
public void testExtensionFunction() {
|
||||
runTest("compiler/testData/codegen/topLevelMemberInvocation/extensionFunction/");
|
||||
}
|
||||
|
||||
@TestMetadata("functionDifferentPackage")
|
||||
public void testFunctionDifferentPackage() throws Exception {
|
||||
runTest("compiler/testData/codegen/topLevelMemberInvocation/functionDifferentPackage/");
|
||||
}
|
||||
@TestMetadata("functionDifferentPackage")
|
||||
public void testFunctionDifferentPackage() {
|
||||
runTest("compiler/testData/codegen/topLevelMemberInvocation/functionDifferentPackage/");
|
||||
}
|
||||
|
||||
@TestMetadata("functionInMultiFilePackage")
|
||||
public void testFunctionInMultiFilePackage() throws Exception {
|
||||
runTest("compiler/testData/codegen/topLevelMemberInvocation/functionInMultiFilePackage/");
|
||||
}
|
||||
@TestMetadata("functionInMultiFilePackage")
|
||||
public void testFunctionInMultiFilePackage() {
|
||||
runTest("compiler/testData/codegen/topLevelMemberInvocation/functionInMultiFilePackage/");
|
||||
}
|
||||
|
||||
@TestMetadata("functionSamePackage")
|
||||
public void testFunctionSamePackage() throws Exception {
|
||||
runTest("compiler/testData/codegen/topLevelMemberInvocation/functionSamePackage/");
|
||||
}
|
||||
@TestMetadata("functionSamePackage")
|
||||
public void testFunctionSamePackage() {
|
||||
runTest("compiler/testData/codegen/topLevelMemberInvocation/functionSamePackage/");
|
||||
}
|
||||
|
||||
@TestMetadata("property")
|
||||
public void testProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/topLevelMemberInvocation/property/");
|
||||
}
|
||||
@TestMetadata("property")
|
||||
public void testProperty() {
|
||||
runTest("compiler/testData/codegen/topLevelMemberInvocation/property/");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyWithGetter")
|
||||
public void testPropertyWithGetter() throws Exception {
|
||||
runTest("compiler/testData/codegen/topLevelMemberInvocation/propertyWithGetter/");
|
||||
}
|
||||
@TestMetadata("propertyWithGetter")
|
||||
public void testPropertyWithGetter() {
|
||||
runTest("compiler/testData/codegen/topLevelMemberInvocation/propertyWithGetter/");
|
||||
}
|
||||
|
||||
@TestMetadata("twoModules")
|
||||
public void testTwoModules() throws Exception {
|
||||
runTest("compiler/testData/codegen/topLevelMemberInvocation/twoModules/");
|
||||
}
|
||||
@TestMetadata("twoModules")
|
||||
public void testTwoModules() {
|
||||
runTest("compiler/testData/codegen/topLevelMemberInvocation/twoModules/");
|
||||
}
|
||||
}
|
||||
|
||||
+54
-54
@@ -21,71 +21,71 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class DefaultArgumentsReflectionTestGenerated extends AbstractDefaultArgumentsReflectionTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInReflection() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/defaultArguments/reflection"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
public void testAllFilesPresentInReflection() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/defaultArguments/reflection"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("classInClassObject.kt")
|
||||
public void testClassInClassObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/classInClassObject.kt");
|
||||
}
|
||||
@TestMetadata("classInClassObject.kt")
|
||||
public void testClassInClassObject() {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/classInClassObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classInObject.kt")
|
||||
public void testClassInObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/classInObject.kt");
|
||||
}
|
||||
@TestMetadata("classInObject.kt")
|
||||
public void testClassInObject() {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/classInObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classWithTwoDefaultArgs.kt")
|
||||
public void testClassWithTwoDefaultArgs() throws Exception {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/classWithTwoDefaultArgs.kt");
|
||||
}
|
||||
@TestMetadata("classWithTwoDefaultArgs.kt")
|
||||
public void testClassWithTwoDefaultArgs() {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/classWithTwoDefaultArgs.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classWithVararg.kt")
|
||||
public void testClassWithVararg() throws Exception {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/classWithVararg.kt");
|
||||
}
|
||||
@TestMetadata("classWithVararg.kt")
|
||||
public void testClassWithVararg() {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/classWithVararg.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("enum.kt")
|
||||
public void testEnum() throws Exception {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/enum.kt");
|
||||
}
|
||||
@TestMetadata("enum.kt")
|
||||
public void testEnum() {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/enum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("internalClass.kt")
|
||||
public void testInternalClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/internalClass.kt");
|
||||
}
|
||||
@TestMetadata("internalClass.kt")
|
||||
public void testInternalClass() {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/internalClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateClass.kt")
|
||||
public void testPrivateClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/privateClass.kt");
|
||||
}
|
||||
@TestMetadata("privateClass.kt")
|
||||
public void testPrivateClass() {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/privateClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateConstructor.kt")
|
||||
public void testPrivateConstructor() throws Exception {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/privateConstructor.kt");
|
||||
}
|
||||
@TestMetadata("privateConstructor.kt")
|
||||
public void testPrivateConstructor() {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/privateConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("publicClass.kt")
|
||||
public void testPublicClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/publicClass.kt");
|
||||
}
|
||||
@TestMetadata("publicClass.kt")
|
||||
public void testPublicClass() {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/publicClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("publicClassWoDefArgs.kt")
|
||||
public void testPublicClassWoDefArgs() throws Exception {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/publicClassWoDefArgs.kt");
|
||||
}
|
||||
@TestMetadata("publicClassWoDefArgs.kt")
|
||||
public void testPublicClassWoDefArgs() {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/publicClassWoDefArgs.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("publicInnerClass.kt")
|
||||
public void testPublicInnerClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/publicInnerClass.kt");
|
||||
}
|
||||
@TestMetadata("publicInnerClass.kt")
|
||||
public void testPublicInnerClass() {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/publicInnerClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("publicInnerClassInPrivateClass.kt")
|
||||
public void testPublicInnerClassInPrivateClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/publicInnerClassInPrivateClass.kt");
|
||||
}
|
||||
@TestMetadata("publicInnerClassInPrivateClass.kt")
|
||||
public void testPublicInnerClassInPrivateClass() {
|
||||
runTest("compiler/testData/codegen/defaultArguments/reflection/publicInnerClassInPrivateClass.kt");
|
||||
}
|
||||
}
|
||||
|
||||
+1137
-1137
File diff suppressed because it is too large
Load Diff
Generated
+18
-18
@@ -22,26 +22,26 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class ComposeLikeIrBlackBoxCodegenTestGenerated extends AbstractComposeLikeIrBlackBoxCodegenTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInComposeLike() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/composeLike"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
public void testAllFilesPresentInComposeLike() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/composeLike"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("default.kt")
|
||||
public void testDefault() throws Exception {
|
||||
runTest("compiler/testData/codegen/composeLike/default.kt");
|
||||
}
|
||||
@TestMetadata("default.kt")
|
||||
public void testDefault() {
|
||||
runTest("compiler/testData/codegen/composeLike/default.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultInline.kt")
|
||||
public void testDefaultInline() throws Exception {
|
||||
runTest("compiler/testData/codegen/composeLike/defaultInline.kt");
|
||||
}
|
||||
@TestMetadata("defaultInline.kt")
|
||||
public void testDefaultInline() {
|
||||
runTest("compiler/testData/codegen/composeLike/defaultInline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultLocal.kt")
|
||||
public void testDefaultLocal() throws Exception {
|
||||
runTest("compiler/testData/codegen/composeLike/defaultLocal.kt");
|
||||
}
|
||||
@TestMetadata("defaultLocal.kt")
|
||||
public void testDefaultLocal() {
|
||||
runTest("compiler/testData/codegen/composeLike/defaultLocal.kt");
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+18
-18
@@ -22,26 +22,26 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class ComposeLikeIrBytecodeTextTestGenerated extends AbstractComposeLikeIrBytecodeTextTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInComposeLikeBytecodeText() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/composeLikeBytecodeText"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
public void testAllFilesPresentInComposeLikeBytecodeText() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/composeLikeBytecodeText"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("default.kt")
|
||||
public void testDefault() throws Exception {
|
||||
runTest("compiler/testData/codegen/composeLikeBytecodeText/default.kt");
|
||||
}
|
||||
@TestMetadata("default.kt")
|
||||
public void testDefault() {
|
||||
runTest("compiler/testData/codegen/composeLikeBytecodeText/default.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultInline.kt")
|
||||
public void testDefaultInline() throws Exception {
|
||||
runTest("compiler/testData/codegen/composeLikeBytecodeText/defaultInline.kt");
|
||||
}
|
||||
@TestMetadata("defaultInline.kt")
|
||||
public void testDefaultInline() {
|
||||
runTest("compiler/testData/codegen/composeLikeBytecodeText/defaultInline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultLocal.kt")
|
||||
public void testDefaultLocal() throws Exception {
|
||||
runTest("compiler/testData/codegen/composeLikeBytecodeText/defaultLocal.kt");
|
||||
}
|
||||
@TestMetadata("defaultLocal.kt")
|
||||
public void testDefaultLocal() {
|
||||
runTest("compiler/testData/codegen/composeLikeBytecodeText/defaultLocal.kt");
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+95
-95
@@ -22,114 +22,114 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IrCheckLocalVariablesTableTestGenerated extends AbstractIrCheckLocalVariablesTableTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCheckLocalVariablesTable() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/checkLocalVariablesTable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("destructuringInLambdas.kt")
|
||||
public void testDestructuringInLambdas() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/destructuringInLambdas.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineLambdaWithItParam.kt")
|
||||
public void testInlineLambdaWithItParam() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineLambdaWithItParam.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineLambdaWithParam.kt")
|
||||
public void testInlineLambdaWithParam() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineLambdaWithParam.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSimple.kt")
|
||||
public void testInlineSimple() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineSimple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSimpleChain.kt")
|
||||
public void testInlineSimpleChain() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineSimpleChain.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("itInLambda.kt")
|
||||
public void testItInLambda() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/itInLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("itInReturnedLambda.kt")
|
||||
public void testItInReturnedLambda() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/itInReturnedLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt11117.kt")
|
||||
public void testKt11117() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/kt11117.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaAsVar.kt")
|
||||
public void testLambdaAsVar() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/lambdaAsVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("objectInLocalPropertyDelegate.kt")
|
||||
public void testObjectInLocalPropertyDelegate() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/objectInLocalPropertyDelegate.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendFunctionDeadVariables.kt")
|
||||
public void testSuspendFunctionDeadVariables() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/suspendFunctionDeadVariables.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("underscoreNames.kt")
|
||||
public void testUnderscoreNames() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/underscoreNames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ParametersInSuspendLambda extends AbstractIrCheckLocalVariablesTableTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCheckLocalVariablesTable() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/checkLocalVariablesTable"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
public void testAllFilesPresentInParametersInSuspendLambda() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("destructuringInLambdas.kt")
|
||||
public void testDestructuringInLambdas() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/destructuringInLambdas.kt");
|
||||
@TestMetadata("dataClass.kt")
|
||||
public void testDataClass() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/dataClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineLambdaWithItParam.kt")
|
||||
public void testInlineLambdaWithItParam() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineLambdaWithItParam.kt");
|
||||
@TestMetadata("extensionComponents.kt")
|
||||
public void testExtensionComponents() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/extensionComponents.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineLambdaWithParam.kt")
|
||||
public void testInlineLambdaWithParam() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineLambdaWithParam.kt");
|
||||
@TestMetadata("generic.kt")
|
||||
public void testGeneric() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/generic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSimple.kt")
|
||||
public void testInlineSimple() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineSimple.kt");
|
||||
@TestMetadata("inline.kt")
|
||||
public void testInline() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/inline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineSimpleChain.kt")
|
||||
public void testInlineSimpleChain() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/inlineSimpleChain.kt");
|
||||
@TestMetadata("otherParameters.kt")
|
||||
public void testOtherParameters() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/otherParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("itInLambda.kt")
|
||||
public void testItInLambda() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/itInLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("itInReturnedLambda.kt")
|
||||
public void testItInReturnedLambda() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/itInReturnedLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt11117.kt")
|
||||
public void testKt11117() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/kt11117.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaAsVar.kt")
|
||||
public void testLambdaAsVar() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/lambdaAsVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("objectInLocalPropertyDelegate.kt")
|
||||
public void testObjectInLocalPropertyDelegate() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/objectInLocalPropertyDelegate.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendFunctionDeadVariables.kt")
|
||||
public void testSuspendFunctionDeadVariables() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/suspendFunctionDeadVariables.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("underscoreNames.kt")
|
||||
public void testUnderscoreNames() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/underscoreNames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ParametersInSuspendLambda extends AbstractIrCheckLocalVariablesTableTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInParametersInSuspendLambda() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("dataClass.kt")
|
||||
public void testDataClass() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/dataClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionComponents.kt")
|
||||
public void testExtensionComponents() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/extensionComponents.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("generic.kt")
|
||||
public void testGeneric() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/generic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inline.kt")
|
||||
public void testInline() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/inline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("otherParameters.kt")
|
||||
public void testOtherParameters() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/otherParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("parameters.kt")
|
||||
public void testParameters() throws Exception {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/parameters.kt");
|
||||
}
|
||||
@TestMetadata("parameters.kt")
|
||||
public void testParameters() {
|
||||
runTest("compiler/testData/checkLocalVariablesTable/parametersInSuspendLambda/parameters.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+242
-242
@@ -22,289 +22,289 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IrScriptCodegenTestGenerated extends AbstractIrScriptCodegenTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("adder.kts")
|
||||
public void testAdder() {
|
||||
runTest("compiler/testData/codegen/script/adder.kts");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInScript() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/script"), Pattern.compile("^(.+)\\.kts$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("classLiteralInsideFunction.kts")
|
||||
public void testClassLiteralInsideFunction() {
|
||||
runTest("compiler/testData/codegen/script/classLiteralInsideFunction.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("destructuringDeclaration.kts")
|
||||
public void testDestructuringDeclaration() {
|
||||
runTest("compiler/testData/codegen/script/destructuringDeclaration.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("destructuringDeclarationUnderscore.kts")
|
||||
public void testDestructuringDeclarationUnderscore() {
|
||||
runTest("compiler/testData/codegen/script/destructuringDeclarationUnderscore.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("empty.kts")
|
||||
public void testEmpty() {
|
||||
runTest("compiler/testData/codegen/script/empty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("helloWorld.kts")
|
||||
public void testHelloWorld() {
|
||||
runTest("compiler/testData/codegen/script/helloWorld.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("inline.kts")
|
||||
public void testInline() {
|
||||
runTest("compiler/testData/codegen/script/inline.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClass.kts")
|
||||
public void testInnerClass() {
|
||||
runTest("compiler/testData/codegen/script/innerClass.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("kt20707.kts")
|
||||
public void testKt20707() {
|
||||
runTest("compiler/testData/codegen/script/kt20707.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("kt22029.kts")
|
||||
public void testKt22029() {
|
||||
runTest("compiler/testData/codegen/script/kt22029.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("kt48025.kts")
|
||||
public void testKt48025() {
|
||||
runTest("compiler/testData/codegen/script/kt48025.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("localDelegatedProperty.kts")
|
||||
public void testLocalDelegatedProperty() {
|
||||
runTest("compiler/testData/codegen/script/localDelegatedProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("localDelegatedPropertyInLambda.kts")
|
||||
public void testLocalDelegatedPropertyInLambda() {
|
||||
runTest("compiler/testData/codegen/script/localDelegatedPropertyInLambda.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("localDelegatedPropertyNoExplicitType.kts")
|
||||
public void testLocalDelegatedPropertyNoExplicitType() {
|
||||
runTest("compiler/testData/codegen/script/localDelegatedPropertyNoExplicitType.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("localFunction.kts")
|
||||
public void testLocalFunction() {
|
||||
runTest("compiler/testData/codegen/script/localFunction.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("outerCapture.kts")
|
||||
public void testOuterCapture() {
|
||||
runTest("compiler/testData/codegen/script/outerCapture.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("parameter.kts")
|
||||
public void testParameter() {
|
||||
runTest("compiler/testData/codegen/script/parameter.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterArray.kts")
|
||||
public void testParameterArray() {
|
||||
runTest("compiler/testData/codegen/script/parameterArray.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterClosure.kts")
|
||||
public void testParameterClosure() {
|
||||
runTest("compiler/testData/codegen/script/parameterClosure.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterLong.kts")
|
||||
public void testParameterLong() {
|
||||
runTest("compiler/testData/codegen/script/parameterLong.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("secondLevelFunction.kts")
|
||||
public void testSecondLevelFunction() {
|
||||
runTest("compiler/testData/codegen/script/secondLevelFunction.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("secondLevelFunctionClosure.kts")
|
||||
public void testSecondLevelFunctionClosure() {
|
||||
runTest("compiler/testData/codegen/script/secondLevelFunctionClosure.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("secondLevelVal.kts")
|
||||
public void testSecondLevelVal() {
|
||||
runTest("compiler/testData/codegen/script/secondLevelVal.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleClass.kts")
|
||||
public void testSimpleClass() {
|
||||
runTest("compiler/testData/codegen/script/simpleClass.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("string.kts")
|
||||
public void testString() {
|
||||
runTest("compiler/testData/codegen/script/string.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelFunction.kts")
|
||||
public void testTopLevelFunction() {
|
||||
runTest("compiler/testData/codegen/script/topLevelFunction.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelFunctionClosure.kts")
|
||||
public void testTopLevelFunctionClosure() {
|
||||
runTest("compiler/testData/codegen/script/topLevelFunctionClosure.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelLocalDelegatedProperty.kts")
|
||||
public void testTopLevelLocalDelegatedProperty() {
|
||||
runTest("compiler/testData/codegen/script/topLevelLocalDelegatedProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelPropertiesWithGetSet.kts")
|
||||
public void testTopLevelPropertiesWithGetSet() {
|
||||
runTest("compiler/testData/codegen/script/topLevelPropertiesWithGetSet.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelProperty.kts")
|
||||
public void testTopLevelProperty() {
|
||||
runTest("compiler/testData/codegen/script/topLevelProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelPropertyWithProvideDelegate.kts")
|
||||
public void testTopLevelPropertyWithProvideDelegate() {
|
||||
runTest("compiler/testData/codegen/script/topLevelPropertyWithProvideDelegate.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelTypealias.kts")
|
||||
public void testTopLevelTypealias() {
|
||||
runTest("compiler/testData/codegen/script/topLevelTypealias.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("twoDestructuringDeclarations.kts")
|
||||
public void testTwoDestructuringDeclarations() {
|
||||
runTest("compiler/testData/codegen/script/twoDestructuringDeclarations.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/script/scriptInstanceCapturing")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ScriptInstanceCapturing extends AbstractIrScriptCodegenTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("adder.kts")
|
||||
public void testAdder() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/adder.kts");
|
||||
public void testAllFilesPresentInScriptInstanceCapturing() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/script/scriptInstanceCapturing"), Pattern.compile("^(.+)\\.kts$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInScript() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/script"), Pattern.compile("^(.+)\\.kts$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), TargetBackend.JVM_IR, true);
|
||||
@TestMetadata("anonymousObjectCapturesProperty.kts")
|
||||
public void testAnonymousObjectCapturesProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/anonymousObjectCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("classLiteralInsideFunction.kts")
|
||||
public void testClassLiteralInsideFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/classLiteralInsideFunction.kts");
|
||||
@TestMetadata("classCapturesExtensionIndirect.kts")
|
||||
public void testClassCapturesExtensionIndirect() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesExtensionIndirect.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("destructuringDeclaration.kts")
|
||||
public void testDestructuringDeclaration() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/destructuringDeclaration.kts");
|
||||
@TestMetadata("classCapturesExtensionIndirect2x.kts")
|
||||
public void testClassCapturesExtensionIndirect2x() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesExtensionIndirect2x.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("destructuringDeclarationUnderscore.kts")
|
||||
public void testDestructuringDeclarationUnderscore() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/destructuringDeclarationUnderscore.kts");
|
||||
@TestMetadata("classCapturesFunction.kts")
|
||||
public void testClassCapturesFunction() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesFunction.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("empty.kts")
|
||||
public void testEmpty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/empty.kts");
|
||||
@TestMetadata("classCapturesProperty.kts")
|
||||
public void testClassCapturesProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("helloWorld.kts")
|
||||
public void testHelloWorld() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/helloWorld.kts");
|
||||
@TestMetadata("classCapturesPropertyInStringTemplate.kts")
|
||||
public void testClassCapturesPropertyInStringTemplate() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyInStringTemplate.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("inline.kts")
|
||||
public void testInline() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/inline.kts");
|
||||
@TestMetadata("classCapturesPropertyIndirect.kts")
|
||||
public void testClassCapturesPropertyIndirect() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyIndirect.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClass.kts")
|
||||
public void testInnerClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/innerClass.kts");
|
||||
@TestMetadata("classCapturesPropertyIndirect2x.kts")
|
||||
public void testClassCapturesPropertyIndirect2x() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyIndirect2x.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("kt20707.kts")
|
||||
public void testKt20707() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/kt20707.kts");
|
||||
@TestMetadata("companionCapturesProperty.kts")
|
||||
public void testCompanionCapturesProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/companionCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("kt22029.kts")
|
||||
public void testKt22029() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/kt22029.kts");
|
||||
@TestMetadata("enumCapturesProperty.kts")
|
||||
public void testEnumCapturesProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/enumCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("kt48025.kts")
|
||||
public void testKt48025() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/kt48025.kts");
|
||||
@TestMetadata("enumEntryCapturesProperty.kts")
|
||||
public void testEnumEntryCapturesProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/enumEntryCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("localDelegatedProperty.kts")
|
||||
public void testLocalDelegatedProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/localDelegatedProperty.kts");
|
||||
@TestMetadata("innerClassesHierarchyCaptureProperty.kts")
|
||||
public void testInnerClassesHierarchyCaptureProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/innerClassesHierarchyCaptureProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("localDelegatedPropertyInLambda.kts")
|
||||
public void testLocalDelegatedPropertyInLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/localDelegatedPropertyInLambda.kts");
|
||||
@TestMetadata("interfaceCapturesProperty.kts")
|
||||
public void testInterfaceCapturesProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/interfaceCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("localDelegatedPropertyNoExplicitType.kts")
|
||||
public void testLocalDelegatedPropertyNoExplicitType() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/localDelegatedPropertyNoExplicitType.kts");
|
||||
@TestMetadata("nestedAndOuterClassesCaptureProperty.kts")
|
||||
public void testNestedAndOuterClassesCaptureProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/nestedAndOuterClassesCaptureProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("localFunction.kts")
|
||||
public void testLocalFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/localFunction.kts");
|
||||
@TestMetadata("nestedClassCapturesProperty.kts")
|
||||
public void testNestedClassCapturesProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/nestedClassCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("outerCapture.kts")
|
||||
public void testOuterCapture() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/outerCapture.kts");
|
||||
@TestMetadata("nestedInnerClassCapturesProperty.kts")
|
||||
public void testNestedInnerClassCapturesProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/nestedInnerClassCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("parameter.kts")
|
||||
public void testParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/parameter.kts");
|
||||
@TestMetadata("nestedToObjectClassCapturesProperty.kts")
|
||||
public void testNestedToObjectClassCapturesProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/nestedToObjectClassCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterArray.kts")
|
||||
public void testParameterArray() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/parameterArray.kts");
|
||||
@TestMetadata("objectCapturesProperty.kts")
|
||||
public void testObjectCapturesProperty() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/objectCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterClosure.kts")
|
||||
public void testParameterClosure() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/parameterClosure.kts");
|
||||
@TestMetadata("objectCapturesPropertyIndirect.kts")
|
||||
public void testObjectCapturesPropertyIndirect() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/objectCapturesPropertyIndirect.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("parameterLong.kts")
|
||||
public void testParameterLong() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/parameterLong.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("secondLevelFunction.kts")
|
||||
public void testSecondLevelFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/secondLevelFunction.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("secondLevelFunctionClosure.kts")
|
||||
public void testSecondLevelFunctionClosure() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/secondLevelFunctionClosure.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("secondLevelVal.kts")
|
||||
public void testSecondLevelVal() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/secondLevelVal.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleClass.kts")
|
||||
public void testSimpleClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/simpleClass.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("string.kts")
|
||||
public void testString() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/string.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelFunction.kts")
|
||||
public void testTopLevelFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelFunction.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelFunctionClosure.kts")
|
||||
public void testTopLevelFunctionClosure() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelFunctionClosure.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelLocalDelegatedProperty.kts")
|
||||
public void testTopLevelLocalDelegatedProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelLocalDelegatedProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelPropertiesWithGetSet.kts")
|
||||
public void testTopLevelPropertiesWithGetSet() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelPropertiesWithGetSet.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelProperty.kts")
|
||||
public void testTopLevelProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelPropertyWithProvideDelegate.kts")
|
||||
public void testTopLevelPropertyWithProvideDelegate() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelPropertyWithProvideDelegate.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelTypealias.kts")
|
||||
public void testTopLevelTypealias() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/topLevelTypealias.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("twoDestructuringDeclarations.kts")
|
||||
public void testTwoDestructuringDeclarations() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/twoDestructuringDeclarations.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/script/scriptInstanceCapturing")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ScriptInstanceCapturing extends AbstractIrScriptCodegenTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInScriptInstanceCapturing() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/script/scriptInstanceCapturing"), Pattern.compile("^(.+)\\.kts$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("anonymousObjectCapturesProperty.kts")
|
||||
public void testAnonymousObjectCapturesProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/anonymousObjectCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("classCapturesExtensionIndirect.kts")
|
||||
public void testClassCapturesExtensionIndirect() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesExtensionIndirect.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("classCapturesExtensionIndirect2x.kts")
|
||||
public void testClassCapturesExtensionIndirect2x() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesExtensionIndirect2x.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("classCapturesFunction.kts")
|
||||
public void testClassCapturesFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesFunction.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("classCapturesProperty.kts")
|
||||
public void testClassCapturesProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("classCapturesPropertyInStringTemplate.kts")
|
||||
public void testClassCapturesPropertyInStringTemplate() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyInStringTemplate.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("classCapturesPropertyIndirect.kts")
|
||||
public void testClassCapturesPropertyIndirect() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyIndirect.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("classCapturesPropertyIndirect2x.kts")
|
||||
public void testClassCapturesPropertyIndirect2x() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/classCapturesPropertyIndirect2x.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("companionCapturesProperty.kts")
|
||||
public void testCompanionCapturesProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/companionCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("enumCapturesProperty.kts")
|
||||
public void testEnumCapturesProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/enumCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("enumEntryCapturesProperty.kts")
|
||||
public void testEnumEntryCapturesProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/enumEntryCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClassesHierarchyCaptureProperty.kts")
|
||||
public void testInnerClassesHierarchyCaptureProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/innerClassesHierarchyCaptureProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("interfaceCapturesProperty.kts")
|
||||
public void testInterfaceCapturesProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/interfaceCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedAndOuterClassesCaptureProperty.kts")
|
||||
public void testNestedAndOuterClassesCaptureProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/nestedAndOuterClassesCaptureProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedClassCapturesProperty.kts")
|
||||
public void testNestedClassCapturesProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/nestedClassCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedInnerClassCapturesProperty.kts")
|
||||
public void testNestedInnerClassCapturesProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/nestedInnerClassCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedToObjectClassCapturesProperty.kts")
|
||||
public void testNestedToObjectClassCapturesProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/nestedToObjectClassCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("objectCapturesProperty.kts")
|
||||
public void testObjectCapturesProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/objectCapturesProperty.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("objectCapturesPropertyIndirect.kts")
|
||||
public void testObjectCapturesPropertyIndirect() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/objectCapturesPropertyIndirect.kts");
|
||||
}
|
||||
|
||||
@TestMetadata("objectCapturesPropertyViaExtension.kts")
|
||||
public void testObjectCapturesPropertyViaExtension() throws Exception {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/objectCapturesPropertyViaExtension.kts");
|
||||
}
|
||||
@TestMetadata("objectCapturesPropertyViaExtension.kts")
|
||||
public void testObjectCapturesPropertyViaExtension() {
|
||||
runTest("compiler/testData/codegen/script/scriptInstanceCapturing/objectCapturesPropertyViaExtension.kts");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1137
-1137
File diff suppressed because it is too large
Load Diff
+627
-627
File diff suppressed because it is too large
Load Diff
+118
-118
@@ -21,151 +21,151 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class AntTaskTestGenerated extends AbstractAntTaskTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("additionalArguments")
|
||||
public void testAdditionalArguments() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/additionalArguments/");
|
||||
}
|
||||
@TestMetadata("additionalArguments")
|
||||
public void testAdditionalArguments() {
|
||||
runTest("compiler/testData/integration/ant/jvm/additionalArguments/");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInJvm() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/integration/ant/jvm"), Pattern.compile("^([^\\.]+)$"), null, false);
|
||||
}
|
||||
public void testAllFilesPresentInJvm() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/integration/ant/jvm"), Pattern.compile("^([^\\.]+)$"), null, false);
|
||||
}
|
||||
|
||||
@TestMetadata("doNotFailOnError")
|
||||
public void testDoNotFailOnError() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/doNotFailOnError/");
|
||||
}
|
||||
@TestMetadata("doNotFailOnError")
|
||||
public void testDoNotFailOnError() {
|
||||
runTest("compiler/testData/integration/ant/jvm/doNotFailOnError/");
|
||||
}
|
||||
|
||||
@TestMetadata("doNotIncludeRuntimeByDefault")
|
||||
public void testDoNotIncludeRuntimeByDefault() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/doNotIncludeRuntimeByDefault/");
|
||||
}
|
||||
@TestMetadata("doNotIncludeRuntimeByDefault")
|
||||
public void testDoNotIncludeRuntimeByDefault() {
|
||||
runTest("compiler/testData/integration/ant/jvm/doNotIncludeRuntimeByDefault/");
|
||||
}
|
||||
|
||||
@TestMetadata("failOnErrorByDefault")
|
||||
public void testFailOnErrorByDefault() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/failOnErrorByDefault/");
|
||||
}
|
||||
@TestMetadata("failOnErrorByDefault")
|
||||
public void testFailOnErrorByDefault() {
|
||||
runTest("compiler/testData/integration/ant/jvm/failOnErrorByDefault/");
|
||||
}
|
||||
|
||||
@TestMetadata("fork")
|
||||
public void testFork() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/fork/");
|
||||
}
|
||||
@TestMetadata("fork")
|
||||
public void testFork() {
|
||||
runTest("compiler/testData/integration/ant/jvm/fork/");
|
||||
}
|
||||
|
||||
@TestMetadata("forkOnError")
|
||||
public void testForkOnError() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/forkOnError/");
|
||||
}
|
||||
@TestMetadata("forkOnError")
|
||||
public void testForkOnError() {
|
||||
runTest("compiler/testData/integration/ant/jvm/forkOnError/");
|
||||
}
|
||||
|
||||
@TestMetadata("helloWorld")
|
||||
public void testHelloWorld() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/helloWorld/");
|
||||
}
|
||||
@TestMetadata("helloWorld")
|
||||
public void testHelloWorld() {
|
||||
runTest("compiler/testData/integration/ant/jvm/helloWorld/");
|
||||
}
|
||||
|
||||
@TestMetadata("internalMembers")
|
||||
public void testInternalMembers() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/internalMembers/");
|
||||
}
|
||||
@TestMetadata("internalMembers")
|
||||
public void testInternalMembers() {
|
||||
runTest("compiler/testData/integration/ant/jvm/internalMembers/");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmClasspath")
|
||||
public void testJvmClasspath() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/jvmClasspath/");
|
||||
}
|
||||
@TestMetadata("jvmClasspath")
|
||||
public void testJvmClasspath() {
|
||||
runTest("compiler/testData/integration/ant/jvm/jvmClasspath/");
|
||||
}
|
||||
|
||||
@TestMetadata("kt11995")
|
||||
public void testKt11995() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/kt11995/");
|
||||
}
|
||||
@TestMetadata("kt11995")
|
||||
public void testKt11995() {
|
||||
runTest("compiler/testData/integration/ant/jvm/kt11995/");
|
||||
}
|
||||
|
||||
@TestMetadata("languageVersion")
|
||||
public void testLanguageVersion() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/languageVersion/");
|
||||
}
|
||||
@TestMetadata("languageVersion")
|
||||
public void testLanguageVersion() {
|
||||
runTest("compiler/testData/integration/ant/jvm/languageVersion/");
|
||||
}
|
||||
|
||||
@TestMetadata("mainInFiles")
|
||||
public void testMainInFiles() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/mainInFiles/");
|
||||
}
|
||||
@TestMetadata("mainInFiles")
|
||||
public void testMainInFiles() {
|
||||
runTest("compiler/testData/integration/ant/jvm/mainInFiles/");
|
||||
}
|
||||
|
||||
@TestMetadata("manySourceRoots")
|
||||
public void testManySourceRoots() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/manySourceRoots/");
|
||||
}
|
||||
@TestMetadata("manySourceRoots")
|
||||
public void testManySourceRoots() {
|
||||
runTest("compiler/testData/integration/ant/jvm/manySourceRoots/");
|
||||
}
|
||||
|
||||
@TestMetadata("moduleName")
|
||||
public void testModuleName() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/moduleName/");
|
||||
}
|
||||
@TestMetadata("moduleName")
|
||||
public void testModuleName() {
|
||||
runTest("compiler/testData/integration/ant/jvm/moduleName/");
|
||||
}
|
||||
|
||||
@TestMetadata("moduleNameDefault")
|
||||
public void testModuleNameDefault() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/moduleNameDefault/");
|
||||
}
|
||||
@TestMetadata("moduleNameDefault")
|
||||
public void testModuleNameDefault() {
|
||||
runTest("compiler/testData/integration/ant/jvm/moduleNameDefault/");
|
||||
}
|
||||
|
||||
@TestMetadata("moduleNameWithKotlin")
|
||||
public void testModuleNameWithKotlin() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/moduleNameWithKotlin/");
|
||||
}
|
||||
@TestMetadata("moduleNameWithKotlin")
|
||||
public void testModuleNameWithKotlin() {
|
||||
runTest("compiler/testData/integration/ant/jvm/moduleNameWithKotlin/");
|
||||
}
|
||||
|
||||
@TestMetadata("noReflectForJavac")
|
||||
public void testNoReflectForJavac() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/noReflectForJavac/");
|
||||
}
|
||||
@TestMetadata("noReflectForJavac")
|
||||
public void testNoReflectForJavac() {
|
||||
runTest("compiler/testData/integration/ant/jvm/noReflectForJavac/");
|
||||
}
|
||||
|
||||
@TestMetadata("noStdlibForJavac")
|
||||
public void testNoStdlibForJavac() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/noStdlibForJavac/");
|
||||
}
|
||||
@TestMetadata("noStdlibForJavac")
|
||||
public void testNoStdlibForJavac() {
|
||||
runTest("compiler/testData/integration/ant/jvm/noStdlibForJavac/");
|
||||
}
|
||||
|
||||
@TestMetadata("overloadResolutionOnCollectionLiteral")
|
||||
public void testOverloadResolutionOnCollectionLiteral() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/overloadResolutionOnCollectionLiteral/");
|
||||
}
|
||||
@TestMetadata("overloadResolutionOnCollectionLiteral")
|
||||
public void testOverloadResolutionOnCollectionLiteral() {
|
||||
runTest("compiler/testData/integration/ant/jvm/overloadResolutionOnCollectionLiteral/");
|
||||
}
|
||||
|
||||
@TestMetadata("stdlibForJavacWithNoKotlin")
|
||||
public void testStdlibForJavacWithNoKotlin() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/stdlibForJavacWithNoKotlin/");
|
||||
}
|
||||
@TestMetadata("stdlibForJavacWithNoKotlin")
|
||||
public void testStdlibForJavacWithNoKotlin() {
|
||||
runTest("compiler/testData/integration/ant/jvm/stdlibForJavacWithNoKotlin/");
|
||||
}
|
||||
|
||||
@TestMetadata("suppressWarnings")
|
||||
public void testSuppressWarnings() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/suppressWarnings/");
|
||||
}
|
||||
@TestMetadata("suppressWarnings")
|
||||
public void testSuppressWarnings() {
|
||||
runTest("compiler/testData/integration/ant/jvm/suppressWarnings/");
|
||||
}
|
||||
|
||||
@TestMetadata("twoStdlibForCollectionLiterals")
|
||||
public void testTwoStdlibForCollectionLiterals() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/twoStdlibForCollectionLiterals/");
|
||||
}
|
||||
@TestMetadata("twoStdlibForCollectionLiterals")
|
||||
public void testTwoStdlibForCollectionLiterals() {
|
||||
runTest("compiler/testData/integration/ant/jvm/twoStdlibForCollectionLiterals/");
|
||||
}
|
||||
|
||||
@TestMetadata("valWithInvoke")
|
||||
public void testValWithInvoke() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/valWithInvoke/");
|
||||
}
|
||||
@TestMetadata("valWithInvoke")
|
||||
public void testValWithInvoke() {
|
||||
runTest("compiler/testData/integration/ant/jvm/valWithInvoke/");
|
||||
}
|
||||
|
||||
@TestMetadata("verbose")
|
||||
public void testVerbose() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/verbose/");
|
||||
}
|
||||
@TestMetadata("verbose")
|
||||
public void testVerbose() {
|
||||
runTest("compiler/testData/integration/ant/jvm/verbose/");
|
||||
}
|
||||
|
||||
@TestMetadata("version")
|
||||
public void testVersion() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/version/");
|
||||
}
|
||||
@TestMetadata("version")
|
||||
public void testVersion() {
|
||||
runTest("compiler/testData/integration/ant/jvm/version/");
|
||||
}
|
||||
|
||||
@TestMetadata("withKotlinFork")
|
||||
public void testWithKotlinFork() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/withKotlinFork/");
|
||||
}
|
||||
@TestMetadata("withKotlinFork")
|
||||
public void testWithKotlinFork() {
|
||||
runTest("compiler/testData/integration/ant/jvm/withKotlinFork/");
|
||||
}
|
||||
|
||||
@TestMetadata("withKotlinNoJavaSources")
|
||||
public void testWithKotlinNoJavaSources() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/withKotlinNoJavaSources/");
|
||||
}
|
||||
@TestMetadata("withKotlinNoJavaSources")
|
||||
public void testWithKotlinNoJavaSources() {
|
||||
runTest("compiler/testData/integration/ant/jvm/withKotlinNoJavaSources/");
|
||||
}
|
||||
|
||||
@TestMetadata("wrongCallForCollectionLiteral")
|
||||
public void testWrongCallForCollectionLiteral() throws Exception {
|
||||
runTest("compiler/testData/integration/ant/jvm/wrongCallForCollectionLiteral/");
|
||||
}
|
||||
@TestMetadata("wrongCallForCollectionLiteral")
|
||||
public void testWrongCallForCollectionLiteral() {
|
||||
runTest("compiler/testData/integration/ant/jvm/wrongCallForCollectionLiteral/");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,107 +21,107 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IrCfgTestCaseGenerated extends AbstractIrCfgTestCase {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInIrCfg() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irCfg"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("expressionFun.kt")
|
||||
public void testExpressionFun() {
|
||||
runTest("compiler/testData/ir/irCfg/expressionFun.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expressionUnit.kt")
|
||||
public void testExpressionUnit() {
|
||||
runTest("compiler/testData/ir/irCfg/expressionUnit.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("returnUnit.kt")
|
||||
public void testReturnUnit() {
|
||||
runTest("compiler/testData/ir/irCfg/returnUnit.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("sequentialFun.kt")
|
||||
public void testSequentialFun() {
|
||||
runTest("compiler/testData/ir/irCfg/sequentialFun.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleFun.kt")
|
||||
public void testSimpleFun() {
|
||||
runTest("compiler/testData/ir/irCfg/simpleFun.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleReturn.kt")
|
||||
public void testSimpleReturn() {
|
||||
runTest("compiler/testData/ir/irCfg/simpleReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/ir/irCfg/loop")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Loop extends AbstractIrCfgTestCase {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInIrCfg() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irCfg"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
public void testAllFilesPresentInLoop() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irCfg/loop"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("expressionFun.kt")
|
||||
public void testExpressionFun() throws Exception {
|
||||
runTest("compiler/testData/ir/irCfg/expressionFun.kt");
|
||||
@TestMetadata("digitCount.kt")
|
||||
public void testDigitCount() {
|
||||
runTest("compiler/testData/ir/irCfg/loop/digitCount.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expressionUnit.kt")
|
||||
public void testExpressionUnit() throws Exception {
|
||||
runTest("compiler/testData/ir/irCfg/expressionUnit.kt");
|
||||
@TestMetadata("factorial.kt")
|
||||
public void testFactorial() {
|
||||
runTest("compiler/testData/ir/irCfg/loop/factorial.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("returnUnit.kt")
|
||||
public void testReturnUnit() throws Exception {
|
||||
runTest("compiler/testData/ir/irCfg/returnUnit.kt");
|
||||
@TestMetadata("isPerfect.kt")
|
||||
public void testIsPerfect() {
|
||||
runTest("compiler/testData/ir/irCfg/loop/isPerfect.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/ir/irCfg/when")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class When extends AbstractIrCfgTestCase {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("sequentialFun.kt")
|
||||
public void testSequentialFun() throws Exception {
|
||||
runTest("compiler/testData/ir/irCfg/sequentialFun.kt");
|
||||
public void testAllFilesPresentInWhen() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irCfg/when"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("simpleFun.kt")
|
||||
public void testSimpleFun() throws Exception {
|
||||
runTest("compiler/testData/ir/irCfg/simpleFun.kt");
|
||||
@TestMetadata("cascadeIf.kt")
|
||||
public void testCascadeIf() {
|
||||
runTest("compiler/testData/ir/irCfg/when/cascadeIf.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleReturn.kt")
|
||||
public void testSimpleReturn() throws Exception {
|
||||
runTest("compiler/testData/ir/irCfg/simpleReturn.kt");
|
||||
@TestMetadata("emptyWhen.kt")
|
||||
public void testEmptyWhen() {
|
||||
runTest("compiler/testData/ir/irCfg/when/emptyWhen.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/ir/irCfg/loop")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Loop extends AbstractIrCfgTestCase {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInLoop() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irCfg/loop"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("digitCount.kt")
|
||||
public void testDigitCount() throws Exception {
|
||||
runTest("compiler/testData/ir/irCfg/loop/digitCount.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("factorial.kt")
|
||||
public void testFactorial() throws Exception {
|
||||
runTest("compiler/testData/ir/irCfg/loop/factorial.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("isPerfect.kt")
|
||||
public void testIsPerfect() throws Exception {
|
||||
runTest("compiler/testData/ir/irCfg/loop/isPerfect.kt");
|
||||
}
|
||||
@TestMetadata("expressionIf.kt")
|
||||
public void testExpressionIf() {
|
||||
runTest("compiler/testData/ir/irCfg/when/expressionIf.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/ir/irCfg/when")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class When extends AbstractIrCfgTestCase {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInWhen() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irCfg/when"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("cascadeIf.kt")
|
||||
public void testCascadeIf() throws Exception {
|
||||
runTest("compiler/testData/ir/irCfg/when/cascadeIf.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("emptyWhen.kt")
|
||||
public void testEmptyWhen() throws Exception {
|
||||
runTest("compiler/testData/ir/irCfg/when/emptyWhen.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expressionIf.kt")
|
||||
public void testExpressionIf() throws Exception {
|
||||
runTest("compiler/testData/ir/irCfg/when/expressionIf.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ifChain.kt")
|
||||
public void testIfChain() throws Exception {
|
||||
runTest("compiler/testData/ir/irCfg/when/ifChain.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("whenReturn.kt")
|
||||
public void testWhenReturn() throws Exception {
|
||||
runTest("compiler/testData/ir/irCfg/when/whenReturn.kt");
|
||||
}
|
||||
@TestMetadata("ifChain.kt")
|
||||
public void testIfChain() {
|
||||
runTest("compiler/testData/ir/irCfg/when/ifChain.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("whenReturn.kt")
|
||||
public void testWhenReturn() {
|
||||
runTest("compiler/testData/ir/irCfg/when/whenReturn.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+1346
-1346
File diff suppressed because it is too large
Load Diff
Generated
+572
-572
File diff suppressed because it is too large
Load Diff
+42
-42
@@ -19,49 +19,49 @@ import java.util.regex.Pattern;
|
||||
@SuppressWarnings("all")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class LoadJava17TestGenerated extends AbstractLoadJava17Test {
|
||||
@TestMetadata("compiler/testData/loadJava17")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CompiledJava extends AbstractLoadJava17Test {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestCompiledJava, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCompiledJava() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava17"), Pattern.compile("^(.+)\\.java$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("GenericRecord.java")
|
||||
public void testGenericRecord() throws Exception {
|
||||
runTest("compiler/testData/loadJava17/GenericRecord.java");
|
||||
}
|
||||
|
||||
@TestMetadata("SimpleRecord.java")
|
||||
public void testSimpleRecord() throws Exception {
|
||||
runTest("compiler/testData/loadJava17/SimpleRecord.java");
|
||||
}
|
||||
@TestMetadata("compiler/testData/loadJava17")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CompiledJava extends AbstractLoadJava17Test {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTestCompiledJava, this, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/loadJava17")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class SourceJava extends AbstractLoadJava17Test {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestSourceJava, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInSourceJava() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava17"), Pattern.compile("^(.+)\\.java$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("GenericRecord.java")
|
||||
public void testGenericRecord() throws Exception {
|
||||
runTest("compiler/testData/loadJava17/GenericRecord.java");
|
||||
}
|
||||
|
||||
@TestMetadata("SimpleRecord.java")
|
||||
public void testSimpleRecord() throws Exception {
|
||||
runTest("compiler/testData/loadJava17/SimpleRecord.java");
|
||||
}
|
||||
public void testAllFilesPresentInCompiledJava() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava17"), Pattern.compile("^(.+)\\.java$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("GenericRecord.java")
|
||||
public void testGenericRecord() {
|
||||
runTest("compiler/testData/loadJava17/GenericRecord.java");
|
||||
}
|
||||
|
||||
@TestMetadata("SimpleRecord.java")
|
||||
public void testSimpleRecord() {
|
||||
runTest("compiler/testData/loadJava17/SimpleRecord.java");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/loadJava17")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class SourceJava extends AbstractLoadJava17Test {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTestSourceJava, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInSourceJava() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava17"), Pattern.compile("^(.+)\\.java$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("GenericRecord.java")
|
||||
public void testGenericRecord() {
|
||||
runTest("compiler/testData/loadJava17/GenericRecord.java");
|
||||
}
|
||||
|
||||
@TestMetadata("SimpleRecord.java")
|
||||
public void testSimpleRecord() {
|
||||
runTest("compiler/testData/loadJava17/SimpleRecord.java");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
compiler/tests-gen/org/jetbrains/kotlin/jvm/compiler/LoadJava17WithPsiClassReadingTestGenerated.java
Generated
+14
-14
@@ -21,21 +21,21 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class LoadJava17WithPsiClassReadingTestGenerated extends AbstractLoadJava17WithPsiClassReadingTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestCompiledJava, this, testDataFilePath);
|
||||
}
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTestCompiledJava, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInLoadJava17() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava17"), Pattern.compile("^(.+)\\.java$"), null, true);
|
||||
}
|
||||
public void testAllFilesPresentInLoadJava17() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava17"), Pattern.compile("^(.+)\\.java$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("GenericRecord.java")
|
||||
public void testGenericRecord() throws Exception {
|
||||
runTest("compiler/testData/loadJava17/GenericRecord.java");
|
||||
}
|
||||
@TestMetadata("GenericRecord.java")
|
||||
public void testGenericRecord() {
|
||||
runTest("compiler/testData/loadJava17/GenericRecord.java");
|
||||
}
|
||||
|
||||
@TestMetadata("SimpleRecord.java")
|
||||
public void testSimpleRecord() throws Exception {
|
||||
runTest("compiler/testData/loadJava17/SimpleRecord.java");
|
||||
}
|
||||
@TestMetadata("SimpleRecord.java")
|
||||
public void testSimpleRecord() {
|
||||
runTest("compiler/testData/loadJava17/SimpleRecord.java");
|
||||
}
|
||||
}
|
||||
|
||||
+5043
-5043
File diff suppressed because it is too large
Load Diff
Generated
+1565
-1565
File diff suppressed because it is too large
Load Diff
Generated
+2695
-2695
File diff suppressed because it is too large
Load Diff
+627
-627
File diff suppressed because it is too large
Load Diff
+1356
-1356
File diff suppressed because it is too large
Load Diff
+1356
-1356
File diff suppressed because it is too large
Load Diff
compiler/tests-gen/org/jetbrains/kotlin/jvm/compiler/ir/IrCompileJavaAgainstKotlinTestGenerated.java
Generated
+1356
-1356
File diff suppressed because it is too large
Load Diff
compiler/tests-gen/org/jetbrains/kotlin/jvm/compiler/ir/IrCompileKotlinAgainstJavaTestGenerated.java
Generated
+572
-572
File diff suppressed because it is too large
Load Diff
+5043
-5043
File diff suppressed because it is too large
Load Diff
Generated
+5043
-5043
File diff suppressed because it is too large
Load Diff
+2672
-2672
File diff suppressed because it is too large
Load Diff
+162
-162
@@ -22,175 +22,175 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class KlibJsIrTextTestCaseGenerated extends AbstractKlibJsIrTextTestCase {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JS_IR, testDataFilePath, "// IGNORE_BACKEND_KLIB: ");
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JS_IR, testDataFilePath, "// IGNORE_BACKEND_KLIB: ");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInJs() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/ir/irText/js/dynamic")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Dynamic extends AbstractKlibJsIrTextTestCase {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JS_IR, testDataFilePath, "// IGNORE_BACKEND_KLIB: ");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInJs() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
public void testAllFilesPresentInDynamic() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/dynamic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/ir/irText/js/dynamic")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Dynamic extends AbstractKlibJsIrTextTestCase {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JS_IR, testDataFilePath, "// IGNORE_BACKEND_KLIB: ");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDynamic() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/dynamic"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicAndMembersOfAny.kt")
|
||||
public void testDynamicAndMembersOfAny() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicAndMembersOfAny.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicArrayAccess.kt")
|
||||
public void testDynamicArrayAccess() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAccess.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicArrayAssignment.kt")
|
||||
public void testDynamicArrayAssignment() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAssignment.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicArrayAugmentedAssignment.kt")
|
||||
public void testDynamicArrayAugmentedAssignment() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAugmentedAssignment.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicArrayIncrementDecrement.kt")
|
||||
public void testDynamicArrayIncrementDecrement() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayIncrementDecrement.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicBinaryEqualityOperator.kt")
|
||||
public void testDynamicBinaryEqualityOperator() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryEqualityOperator.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicBinaryLogicalOperator.kt")
|
||||
public void testDynamicBinaryLogicalOperator() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryLogicalOperator.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicBinaryOperator.kt")
|
||||
public void testDynamicBinaryOperator() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryOperator.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicBinaryRelationalOperator.kt")
|
||||
public void testDynamicBinaryRelationalOperator() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryRelationalOperator.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicCall.kt")
|
||||
public void testDynamicCall() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicElvisOperator.kt")
|
||||
public void testDynamicElvisOperator() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicExclExclOperator.kt")
|
||||
public void testDynamicExclExclOperator() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicInDataClass.kt")
|
||||
public void testDynamicInDataClass() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicInDataClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicInfixCall.kt")
|
||||
public void testDynamicInfixCall() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicInfixCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicMemberAccess.kt")
|
||||
public void testDynamicMemberAccess() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAccess.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicMemberAssignment.kt")
|
||||
public void testDynamicMemberAssignment() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicMemberAugmentedAssignment.kt")
|
||||
public void testDynamicMemberAugmentedAssignment() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicMemberIncrementDecrement.kt")
|
||||
public void testDynamicMemberIncrementDecrement() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicUnaryOperator.kt")
|
||||
public void testDynamicUnaryOperator() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicUnaryOperator.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicWithSmartCast.kt")
|
||||
public void testDynamicWithSmartCast() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("implicitCastFromDynamic.kt")
|
||||
public void testImplicitCastFromDynamic() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/implicitCastFromDynamic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("implicitCastToDynamic.kt")
|
||||
public void testImplicitCastToDynamic() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("invokeOperator.kt")
|
||||
public void testInvokeOperator() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/invokeOperator.kt");
|
||||
}
|
||||
@TestMetadata("dynamicAndMembersOfAny.kt")
|
||||
public void testDynamicAndMembersOfAny() {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicAndMembersOfAny.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/ir/irText/js/external")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class External extends AbstractKlibJsIrTextTestCase {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JS_IR, testDataFilePath, "// IGNORE_BACKEND_KLIB: ");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInExternal() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/external"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("kt38765.kt")
|
||||
public void testKt38765() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/js/external/kt38765.kt");
|
||||
}
|
||||
@TestMetadata("dynamicArrayAccess.kt")
|
||||
public void testDynamicArrayAccess() {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAccess.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/ir/irText/js/native")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Native extends AbstractKlibJsIrTextTestCase {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JS_IR, testDataFilePath, "// IGNORE_BACKEND_KLIB: ");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInNative() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/native"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("nativeNativeKotlin.kt")
|
||||
public void testNativeNativeKotlin() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/js/native/nativeNativeKotlin.kt");
|
||||
}
|
||||
@TestMetadata("dynamicArrayAssignment.kt")
|
||||
public void testDynamicArrayAssignment() {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAssignment.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicArrayAugmentedAssignment.kt")
|
||||
public void testDynamicArrayAugmentedAssignment() {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayAugmentedAssignment.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicArrayIncrementDecrement.kt")
|
||||
public void testDynamicArrayIncrementDecrement() {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicArrayIncrementDecrement.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicBinaryEqualityOperator.kt")
|
||||
public void testDynamicBinaryEqualityOperator() {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryEqualityOperator.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicBinaryLogicalOperator.kt")
|
||||
public void testDynamicBinaryLogicalOperator() {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryLogicalOperator.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicBinaryOperator.kt")
|
||||
public void testDynamicBinaryOperator() {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryOperator.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicBinaryRelationalOperator.kt")
|
||||
public void testDynamicBinaryRelationalOperator() {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicBinaryRelationalOperator.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicCall.kt")
|
||||
public void testDynamicCall() {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicElvisOperator.kt")
|
||||
public void testDynamicElvisOperator() {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicExclExclOperator.kt")
|
||||
public void testDynamicExclExclOperator() {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicExclExclOperator.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicInDataClass.kt")
|
||||
public void testDynamicInDataClass() {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicInDataClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicInfixCall.kt")
|
||||
public void testDynamicInfixCall() {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicInfixCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicMemberAccess.kt")
|
||||
public void testDynamicMemberAccess() {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAccess.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicMemberAssignment.kt")
|
||||
public void testDynamicMemberAssignment() {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicMemberAugmentedAssignment.kt")
|
||||
public void testDynamicMemberAugmentedAssignment() {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicMemberIncrementDecrement.kt")
|
||||
public void testDynamicMemberIncrementDecrement() {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicUnaryOperator.kt")
|
||||
public void testDynamicUnaryOperator() {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicUnaryOperator.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dynamicWithSmartCast.kt")
|
||||
public void testDynamicWithSmartCast() {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/dynamicWithSmartCast.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("implicitCastFromDynamic.kt")
|
||||
public void testImplicitCastFromDynamic() {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/implicitCastFromDynamic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("implicitCastToDynamic.kt")
|
||||
public void testImplicitCastToDynamic() {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("invokeOperator.kt")
|
||||
public void testInvokeOperator() {
|
||||
runTest("compiler/testData/ir/irText/js/dynamic/invokeOperator.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/ir/irText/js/external")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class External extends AbstractKlibJsIrTextTestCase {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JS_IR, testDataFilePath, "// IGNORE_BACKEND_KLIB: ");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInExternal() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/external"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("kt38765.kt")
|
||||
public void testKt38765() {
|
||||
runTest("compiler/testData/ir/irText/js/external/kt38765.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/ir/irText/js/native")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Native extends AbstractKlibJsIrTextTestCase {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JS_IR, testDataFilePath, "// IGNORE_BACKEND_KLIB: ");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInNative() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/js/native"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("nativeNativeKotlin.kt")
|
||||
public void testNativeNativeKotlin() {
|
||||
runTest("compiler/testData/ir/irText/js/native/nativeNativeKotlin.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+14
-14
@@ -21,21 +21,21 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class KDocLexerTestGenerated extends AbstractKDocLexerTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInKdoc() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/lexer/kdoc"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
public void testAllFilesPresentInKdoc() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/lexer/kdoc"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("codeBlocks.kt")
|
||||
public void testCodeBlocks() throws Exception {
|
||||
runTest("compiler/testData/lexer/kdoc/codeBlocks.kt");
|
||||
}
|
||||
@TestMetadata("codeBlocks.kt")
|
||||
public void testCodeBlocks() {
|
||||
runTest("compiler/testData/lexer/kdoc/codeBlocks.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("codeBlocksWithVerticalTabs.kt")
|
||||
public void testCodeBlocksWithVerticalTabs() throws Exception {
|
||||
runTest("compiler/testData/lexer/kdoc/codeBlocksWithVerticalTabs.kt");
|
||||
}
|
||||
@TestMetadata("codeBlocksWithVerticalTabs.kt")
|
||||
public void testCodeBlocksWithVerticalTabs() {
|
||||
runTest("compiler/testData/lexer/kdoc/codeBlocksWithVerticalTabs.kt");
|
||||
}
|
||||
}
|
||||
|
||||
+177
-177
@@ -21,192 +21,192 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class KotlinLexerTestGenerated extends AbstractKotlinLexerTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInKotlin() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/lexer/kotlin"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/lexer/kotlin/whitespaceCharacters")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class WhitespaceCharacters extends AbstractKotlinLexerTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInKotlin() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/lexer/kotlin"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
public void testAllFilesPresentInWhitespaceCharacters() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/lexer/kotlin/whitespaceCharacters"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/lexer/kotlin/whitespaceCharacters")
|
||||
@TestMetadata("compiler/testData/lexer/kotlin/whitespaceCharacters/carriageReturn")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class WhitespaceCharacters extends AbstractKotlinLexerTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
public static class CarriageReturn extends AbstractKotlinLexerTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInWhitespaceCharacters() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/lexer/kotlin/whitespaceCharacters"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
public void testAllFilesPresentInCarriageReturn() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/lexer/kotlin/whitespaceCharacters/carriageReturn"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/lexer/kotlin/whitespaceCharacters/carriageReturn")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CarriageReturn extends AbstractKotlinLexerTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
@TestMetadata("carriageReturn.kt")
|
||||
public void testCarriageReturn() {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/carriageReturn/carriageReturn.kt");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCarriageReturn() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/lexer/kotlin/whitespaceCharacters/carriageReturn"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
@TestMetadata("carriageReturnInComments.kt")
|
||||
public void testCarriageReturnInComments() {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/carriageReturn/carriageReturnInComments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("carriageReturn.kt")
|
||||
public void testCarriageReturn() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/carriageReturn/carriageReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("carriageReturnInComments.kt")
|
||||
public void testCarriageReturnInComments() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/carriageReturn/carriageReturnInComments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("carriageReturnInStringLiterals.kt")
|
||||
public void testCarriageReturnInStringLiterals() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/carriageReturn/carriageReturnInStringLiterals.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/lexer/kotlin/whitespaceCharacters/lineSeparator")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class LineSeparator extends AbstractKotlinLexerTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInLineSeparator() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/lexer/kotlin/whitespaceCharacters/lineSeparator"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("lineSeparator.kt")
|
||||
public void testLineSeparator() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/lineSeparator/lineSeparator.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lineSeparatorInComments.kt")
|
||||
public void testLineSeparatorInComments() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/lineSeparator/lineSeparatorInComments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lineSeparatorInStringLiterals.kt")
|
||||
public void testLineSeparatorInStringLiterals() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/lineSeparator/lineSeparatorInStringLiterals.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/lexer/kotlin/whitespaceCharacters/nextLine")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class NextLine extends AbstractKotlinLexerTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInNextLine() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/lexer/kotlin/whitespaceCharacters/nextLine"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("nextLine.kt")
|
||||
public void testNextLine() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/nextLine/nextLine.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nextLineInComments.kt")
|
||||
public void testNextLineInComments() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/nextLine/nextLineInComments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nextLineInStringLiterals.kt")
|
||||
public void testNextLineInStringLiterals() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/nextLine/nextLineInStringLiterals.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/lexer/kotlin/whitespaceCharacters/pageBreak")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class PageBreak extends AbstractKotlinLexerTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInPageBreak() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/lexer/kotlin/whitespaceCharacters/pageBreak"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("pageBreak.kt")
|
||||
public void testPageBreak() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/pageBreak/pageBreak.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("pageBreakInComments.kt")
|
||||
public void testPageBreakInComments() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/pageBreak/pageBreakInComments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("pageBreakInStringLiterals.kt")
|
||||
public void testPageBreakInStringLiterals() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/pageBreak/pageBreakInStringLiterals.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/lexer/kotlin/whitespaceCharacters/paragraphSeparator")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ParagraphSeparator extends AbstractKotlinLexerTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInParagraphSeparator() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/lexer/kotlin/whitespaceCharacters/paragraphSeparator"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("paragraphSeparator.kt")
|
||||
public void testParagraphSeparator() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/paragraphSeparator/paragraphSeparator.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("paragraphSeparatorInComments.kt")
|
||||
public void testParagraphSeparatorInComments() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/paragraphSeparator/paragraphSeparatorInComments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("paragraphSeparatorInStringLiterals.kt")
|
||||
public void testParagraphSeparatorInStringLiterals() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/paragraphSeparator/paragraphSeparatorInStringLiterals.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/lexer/kotlin/whitespaceCharacters/verticalTab")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class VerticalTab extends AbstractKotlinLexerTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInVerticalTab() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/lexer/kotlin/whitespaceCharacters/verticalTab"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("verticalTab.kt")
|
||||
public void testVerticalTab() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/verticalTab/verticalTab.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("verticalTabInComments.kt")
|
||||
public void testVerticalTabInComments() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/verticalTab/verticalTabInComments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("verticalTabInStringLiterals.kt")
|
||||
public void testVerticalTabInStringLiterals() throws Exception {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/verticalTab/verticalTabInStringLiterals.kt");
|
||||
}
|
||||
}
|
||||
@TestMetadata("carriageReturnInStringLiterals.kt")
|
||||
public void testCarriageReturnInStringLiterals() {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/carriageReturn/carriageReturnInStringLiterals.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/lexer/kotlin/whitespaceCharacters/lineSeparator")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class LineSeparator extends AbstractKotlinLexerTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInLineSeparator() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/lexer/kotlin/whitespaceCharacters/lineSeparator"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("lineSeparator.kt")
|
||||
public void testLineSeparator() {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/lineSeparator/lineSeparator.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lineSeparatorInComments.kt")
|
||||
public void testLineSeparatorInComments() {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/lineSeparator/lineSeparatorInComments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lineSeparatorInStringLiterals.kt")
|
||||
public void testLineSeparatorInStringLiterals() {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/lineSeparator/lineSeparatorInStringLiterals.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/lexer/kotlin/whitespaceCharacters/nextLine")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class NextLine extends AbstractKotlinLexerTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInNextLine() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/lexer/kotlin/whitespaceCharacters/nextLine"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("nextLine.kt")
|
||||
public void testNextLine() {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/nextLine/nextLine.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nextLineInComments.kt")
|
||||
public void testNextLineInComments() {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/nextLine/nextLineInComments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nextLineInStringLiterals.kt")
|
||||
public void testNextLineInStringLiterals() {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/nextLine/nextLineInStringLiterals.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/lexer/kotlin/whitespaceCharacters/pageBreak")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class PageBreak extends AbstractKotlinLexerTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInPageBreak() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/lexer/kotlin/whitespaceCharacters/pageBreak"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("pageBreak.kt")
|
||||
public void testPageBreak() {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/pageBreak/pageBreak.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("pageBreakInComments.kt")
|
||||
public void testPageBreakInComments() {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/pageBreak/pageBreakInComments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("pageBreakInStringLiterals.kt")
|
||||
public void testPageBreakInStringLiterals() {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/pageBreak/pageBreakInStringLiterals.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/lexer/kotlin/whitespaceCharacters/paragraphSeparator")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ParagraphSeparator extends AbstractKotlinLexerTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInParagraphSeparator() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/lexer/kotlin/whitespaceCharacters/paragraphSeparator"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("paragraphSeparator.kt")
|
||||
public void testParagraphSeparator() {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/paragraphSeparator/paragraphSeparator.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("paragraphSeparatorInComments.kt")
|
||||
public void testParagraphSeparatorInComments() {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/paragraphSeparator/paragraphSeparatorInComments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("paragraphSeparatorInStringLiterals.kt")
|
||||
public void testParagraphSeparatorInStringLiterals() {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/paragraphSeparator/paragraphSeparatorInStringLiterals.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/lexer/kotlin/whitespaceCharacters/verticalTab")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class VerticalTab extends AbstractKotlinLexerTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInVerticalTab() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/lexer/kotlin/whitespaceCharacters/verticalTab"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("verticalTab.kt")
|
||||
public void testVerticalTab() {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/verticalTab/verticalTab.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("verticalTabInComments.kt")
|
||||
public void testVerticalTabInComments() {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/verticalTab/verticalTabInComments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("verticalTabInStringLiterals.kt")
|
||||
public void testVerticalTabInStringLiterals() {
|
||||
runTest("compiler/testData/lexer/kotlin/whitespaceCharacters/verticalTab/verticalTabInStringLiterals.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+38
-38
@@ -21,51 +21,51 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class ModuleXmlParserTestGenerated extends AbstractModuleXmlParserTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInModules_xml() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/modules.xml"), Pattern.compile("^(.+)\\.xml$"), null, true);
|
||||
}
|
||||
public void testAllFilesPresentInModules_xml() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/modules.xml"), Pattern.compile("^(.+)\\.xml$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("allOnce.xml")
|
||||
public void testAllOnce() throws Exception {
|
||||
runTest("compiler/testData/modules.xml/allOnce.xml");
|
||||
}
|
||||
@TestMetadata("allOnce.xml")
|
||||
public void testAllOnce() {
|
||||
runTest("compiler/testData/modules.xml/allOnce.xml");
|
||||
}
|
||||
|
||||
@TestMetadata("comments.xml")
|
||||
public void testComments() throws Exception {
|
||||
runTest("compiler/testData/modules.xml/comments.xml");
|
||||
}
|
||||
@TestMetadata("comments.xml")
|
||||
public void testComments() {
|
||||
runTest("compiler/testData/modules.xml/comments.xml");
|
||||
}
|
||||
|
||||
@TestMetadata("empty.xml")
|
||||
public void testEmpty() throws Exception {
|
||||
runTest("compiler/testData/modules.xml/empty.xml");
|
||||
}
|
||||
@TestMetadata("empty.xml")
|
||||
public void testEmpty() {
|
||||
runTest("compiler/testData/modules.xml/empty.xml");
|
||||
}
|
||||
|
||||
@TestMetadata("emptyModule.xml")
|
||||
public void testEmptyModule() throws Exception {
|
||||
runTest("compiler/testData/modules.xml/emptyModule.xml");
|
||||
}
|
||||
@TestMetadata("emptyModule.xml")
|
||||
public void testEmptyModule() {
|
||||
runTest("compiler/testData/modules.xml/emptyModule.xml");
|
||||
}
|
||||
|
||||
@TestMetadata("manyTimes.xml")
|
||||
public void testManyTimes() throws Exception {
|
||||
runTest("compiler/testData/modules.xml/manyTimes.xml");
|
||||
}
|
||||
@TestMetadata("manyTimes.xml")
|
||||
public void testManyTimes() {
|
||||
runTest("compiler/testData/modules.xml/manyTimes.xml");
|
||||
}
|
||||
|
||||
@TestMetadata("onlySources.xml")
|
||||
public void testOnlySources() throws Exception {
|
||||
runTest("compiler/testData/modules.xml/onlySources.xml");
|
||||
}
|
||||
@TestMetadata("onlySources.xml")
|
||||
public void testOnlySources() {
|
||||
runTest("compiler/testData/modules.xml/onlySources.xml");
|
||||
}
|
||||
|
||||
@TestMetadata("twoModules.xml")
|
||||
public void testTwoModules() throws Exception {
|
||||
runTest("compiler/testData/modules.xml/twoModules.xml");
|
||||
}
|
||||
@TestMetadata("twoModules.xml")
|
||||
public void testTwoModules() {
|
||||
runTest("compiler/testData/modules.xml/twoModules.xml");
|
||||
}
|
||||
|
||||
@TestMetadata("typeTestModule.xml")
|
||||
public void testTypeTestModule() throws Exception {
|
||||
runTest("compiler/testData/modules.xml/typeTestModule.xml");
|
||||
}
|
||||
@TestMetadata("typeTestModule.xml")
|
||||
public void testTypeTestModule() {
|
||||
runTest("compiler/testData/modules.xml/typeTestModule.xml");
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+701
-701
File diff suppressed because it is too large
Load Diff
+2881
-2881
File diff suppressed because it is too large
Load Diff
+301
-301
@@ -21,365 +21,365 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class ReplInterpreterTestGenerated extends AbstractReplInterpreterTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInRepl() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/repl"), Pattern.compile("^(.+)\\.repl$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("analyzeErrors.repl")
|
||||
public void testAnalyzeErrors() {
|
||||
runTest("compiler/testData/repl/analyzeErrors.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("constants.repl")
|
||||
public void testConstants() {
|
||||
runTest("compiler/testData/repl/constants.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("destructuringDeclaration.repl")
|
||||
public void testDestructuringDeclaration() {
|
||||
runTest("compiler/testData/repl/destructuringDeclaration.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("empty.repl")
|
||||
public void testEmpty() {
|
||||
runTest("compiler/testData/repl/empty.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("evaluationErrors.repl")
|
||||
public void testEvaluationErrors() {
|
||||
runTest("compiler/testData/repl/evaluationErrors.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("exceptionInValueToString.repl")
|
||||
public void testExceptionInValueToString() {
|
||||
runTest("compiler/testData/repl/exceptionInValueToString.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("exceptionInVariableInitializer.repl")
|
||||
public void testExceptionInVariableInitializer() {
|
||||
runTest("compiler/testData/repl/exceptionInVariableInitializer.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("function.repl")
|
||||
public void testFunction() {
|
||||
runTest("compiler/testData/repl/function.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("functionOverloadResolution.repl")
|
||||
public void testFunctionOverloadResolution() {
|
||||
runTest("compiler/testData/repl/functionOverloadResolution.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("functionOverloadResolutionAnyBeatsString.repl")
|
||||
public void testFunctionOverloadResolutionAnyBeatsString() {
|
||||
runTest("compiler/testData/repl/functionOverloadResolutionAnyBeatsString.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("functionReferencesPrev.repl")
|
||||
public void testFunctionReferencesPrev() {
|
||||
runTest("compiler/testData/repl/functionReferencesPrev.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("functionResult.repl")
|
||||
public void testFunctionResult() {
|
||||
runTest("compiler/testData/repl/functionResult.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("imports.repl")
|
||||
public void testImports() {
|
||||
runTest("compiler/testData/repl/imports.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("multipleImports.repl")
|
||||
public void testMultipleImports() {
|
||||
runTest("compiler/testData/repl/multipleImports.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("noWarningsWithErrors.repl")
|
||||
public void testNoWarningsWithErrors() {
|
||||
runTest("compiler/testData/repl/noWarningsWithErrors.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.repl")
|
||||
public void testSimple() {
|
||||
runTest("compiler/testData/repl/simple.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleTwoVals.repl")
|
||||
public void testSimpleTwoVals() {
|
||||
runTest("compiler/testData/repl/simpleTwoVals.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("syntaxErrors.repl")
|
||||
public void testSyntaxErrors() {
|
||||
runTest("compiler/testData/repl/syntaxErrors.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelLocalDelegatedProperty.repl")
|
||||
public void testTopLevelLocalDelegatedProperty() {
|
||||
runTest("compiler/testData/repl/topLevelLocalDelegatedProperty.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("twoClosures.repl")
|
||||
public void testTwoClosures() {
|
||||
runTest("compiler/testData/repl/twoClosures.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/repl/classes")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Classes extends AbstractReplInterpreterTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInRepl() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/repl"), Pattern.compile("^(.+)\\.repl$"), null, true);
|
||||
public void testAllFilesPresentInClasses() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/repl/classes"), Pattern.compile("^(.+)\\.repl$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("analyzeErrors.repl")
|
||||
public void testAnalyzeErrors() throws Exception {
|
||||
runTest("compiler/testData/repl/analyzeErrors.repl");
|
||||
@TestMetadata("classInheritance.repl")
|
||||
public void testClassInheritance() {
|
||||
runTest("compiler/testData/repl/classes/classInheritance.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("constants.repl")
|
||||
public void testConstants() throws Exception {
|
||||
runTest("compiler/testData/repl/constants.repl");
|
||||
@TestMetadata("classRedeclaration.repl")
|
||||
public void testClassRedeclaration() {
|
||||
runTest("compiler/testData/repl/classes/classRedeclaration.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("destructuringDeclaration.repl")
|
||||
public void testDestructuringDeclaration() throws Exception {
|
||||
runTest("compiler/testData/repl/destructuringDeclaration.repl");
|
||||
@TestMetadata("classReferencesVal.repl")
|
||||
public void testClassReferencesVal() {
|
||||
runTest("compiler/testData/repl/classes/classReferencesVal.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("empty.repl")
|
||||
public void testEmpty() throws Exception {
|
||||
runTest("compiler/testData/repl/empty.repl");
|
||||
@TestMetadata("emptyClass.repl")
|
||||
public void testEmptyClass() {
|
||||
runTest("compiler/testData/repl/classes/emptyClass.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("evaluationErrors.repl")
|
||||
public void testEvaluationErrors() throws Exception {
|
||||
runTest("compiler/testData/repl/evaluationErrors.repl");
|
||||
@TestMetadata("emptyClassRedeclaration.repl")
|
||||
public void testEmptyClassRedeclaration() {
|
||||
runTest("compiler/testData/repl/classes/emptyClassRedeclaration.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("exceptionInValueToString.repl")
|
||||
public void testExceptionInValueToString() throws Exception {
|
||||
runTest("compiler/testData/repl/exceptionInValueToString.repl");
|
||||
@TestMetadata("enumEntrySubclass.repl")
|
||||
public void testEnumEntrySubclass() {
|
||||
runTest("compiler/testData/repl/classes/enumEntrySubclass.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("exceptionInVariableInitializer.repl")
|
||||
public void testExceptionInVariableInitializer() throws Exception {
|
||||
runTest("compiler/testData/repl/exceptionInVariableInitializer.repl");
|
||||
@TestMetadata("import.repl")
|
||||
public void testImport() {
|
||||
runTest("compiler/testData/repl/classes/import.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("function.repl")
|
||||
public void testFunction() throws Exception {
|
||||
runTest("compiler/testData/repl/function.repl");
|
||||
@TestMetadata("simpleClass.repl")
|
||||
public void testSimpleClass() {
|
||||
runTest("compiler/testData/repl/classes/simpleClass.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("functionOverloadResolution.repl")
|
||||
public void testFunctionOverloadResolution() throws Exception {
|
||||
runTest("compiler/testData/repl/functionOverloadResolution.repl");
|
||||
@TestMetadata("simpleEnum.repl")
|
||||
public void testSimpleEnum() {
|
||||
runTest("compiler/testData/repl/classes/simpleEnum.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("functionOverloadResolutionAnyBeatsString.repl")
|
||||
public void testFunctionOverloadResolutionAnyBeatsString() throws Exception {
|
||||
runTest("compiler/testData/repl/functionOverloadResolutionAnyBeatsString.repl");
|
||||
@TestMetadata("simpleTrait.repl")
|
||||
public void testSimpleTrait() {
|
||||
runTest("compiler/testData/repl/classes/simpleTrait.repl");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/repl/controlFlow")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ControlFlow extends AbstractReplInterpreterTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("functionReferencesPrev.repl")
|
||||
public void testFunctionReferencesPrev() throws Exception {
|
||||
runTest("compiler/testData/repl/functionReferencesPrev.repl");
|
||||
public void testAllFilesPresentInControlFlow() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/repl/controlFlow"), Pattern.compile("^(.+)\\.repl$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("functionResult.repl")
|
||||
public void testFunctionResult() throws Exception {
|
||||
runTest("compiler/testData/repl/functionResult.repl");
|
||||
@TestMetadata("functionWithoutReturn.repl")
|
||||
public void testFunctionWithoutReturn() {
|
||||
runTest("compiler/testData/repl/controlFlow/functionWithoutReturn.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("imports.repl")
|
||||
public void testImports() throws Exception {
|
||||
runTest("compiler/testData/repl/imports.repl");
|
||||
@TestMetadata("incompleteIf.repl")
|
||||
public void testIncompleteIf() {
|
||||
runTest("compiler/testData/repl/controlFlow/incompleteIf.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("multipleImports.repl")
|
||||
public void testMultipleImports() throws Exception {
|
||||
runTest("compiler/testData/repl/multipleImports.repl");
|
||||
@TestMetadata("incompleteWhen.repl")
|
||||
public void testIncompleteWhen() {
|
||||
runTest("compiler/testData/repl/controlFlow/incompleteWhen.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("noWarningsWithErrors.repl")
|
||||
public void testNoWarningsWithErrors() throws Exception {
|
||||
runTest("compiler/testData/repl/noWarningsWithErrors.repl");
|
||||
@TestMetadata("kt15407.repl")
|
||||
public void testKt15407() {
|
||||
runTest("compiler/testData/repl/controlFlow/kt15407.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.repl")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/repl/simple.repl");
|
||||
@TestMetadata("loopWithWrongLabel.repl")
|
||||
public void testLoopWithWrongLabel() {
|
||||
runTest("compiler/testData/repl/controlFlow/loopWithWrongLabel.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleTwoVals.repl")
|
||||
public void testSimpleTwoVals() throws Exception {
|
||||
runTest("compiler/testData/repl/simpleTwoVals.repl");
|
||||
@TestMetadata("mutateVal.repl")
|
||||
public void testMutateVal() {
|
||||
runTest("compiler/testData/repl/controlFlow/mutateVal.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("syntaxErrors.repl")
|
||||
public void testSyntaxErrors() throws Exception {
|
||||
runTest("compiler/testData/repl/syntaxErrors.repl");
|
||||
@TestMetadata("useUninitializedVal.repl")
|
||||
public void testUseUninitializedVal() {
|
||||
runTest("compiler/testData/repl/controlFlow/useUninitializedVal.repl");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/repl/modules")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Modules extends AbstractReplInterpreterTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelLocalDelegatedProperty.repl")
|
||||
public void testTopLevelLocalDelegatedProperty() throws Exception {
|
||||
runTest("compiler/testData/repl/topLevelLocalDelegatedProperty.repl");
|
||||
public void testAllFilesPresentInModules() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/repl/modules"), Pattern.compile("^(.+)\\.repl$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("twoClosures.repl")
|
||||
public void testTwoClosures() throws Exception {
|
||||
runTest("compiler/testData/repl/twoClosures.repl");
|
||||
@TestMetadata("kt10001.repl")
|
||||
public void testKt10001() {
|
||||
runTest("compiler/testData/repl/modules/kt10001.repl");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/repl/multiline")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Multiline extends AbstractReplInterpreterTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/repl/classes")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Classes extends AbstractReplInterpreterTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInClasses() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/repl/classes"), Pattern.compile("^(.+)\\.repl$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("classInheritance.repl")
|
||||
public void testClassInheritance() throws Exception {
|
||||
runTest("compiler/testData/repl/classes/classInheritance.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("classRedeclaration.repl")
|
||||
public void testClassRedeclaration() throws Exception {
|
||||
runTest("compiler/testData/repl/classes/classRedeclaration.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("classReferencesVal.repl")
|
||||
public void testClassReferencesVal() throws Exception {
|
||||
runTest("compiler/testData/repl/classes/classReferencesVal.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("emptyClass.repl")
|
||||
public void testEmptyClass() throws Exception {
|
||||
runTest("compiler/testData/repl/classes/emptyClass.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("emptyClassRedeclaration.repl")
|
||||
public void testEmptyClassRedeclaration() throws Exception {
|
||||
runTest("compiler/testData/repl/classes/emptyClassRedeclaration.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("enumEntrySubclass.repl")
|
||||
public void testEnumEntrySubclass() throws Exception {
|
||||
runTest("compiler/testData/repl/classes/enumEntrySubclass.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("import.repl")
|
||||
public void testImport() throws Exception {
|
||||
runTest("compiler/testData/repl/classes/import.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleClass.repl")
|
||||
public void testSimpleClass() throws Exception {
|
||||
runTest("compiler/testData/repl/classes/simpleClass.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleEnum.repl")
|
||||
public void testSimpleEnum() throws Exception {
|
||||
runTest("compiler/testData/repl/classes/simpleEnum.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleTrait.repl")
|
||||
public void testSimpleTrait() throws Exception {
|
||||
runTest("compiler/testData/repl/classes/simpleTrait.repl");
|
||||
}
|
||||
public void testAllFilesPresentInMultiline() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/repl/multiline"), Pattern.compile("^(.+)\\.repl$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/repl/controlFlow")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ControlFlow extends AbstractReplInterpreterTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInControlFlow() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/repl/controlFlow"), Pattern.compile("^(.+)\\.repl$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("functionWithoutReturn.repl")
|
||||
public void testFunctionWithoutReturn() throws Exception {
|
||||
runTest("compiler/testData/repl/controlFlow/functionWithoutReturn.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("incompleteIf.repl")
|
||||
public void testIncompleteIf() throws Exception {
|
||||
runTest("compiler/testData/repl/controlFlow/incompleteIf.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("incompleteWhen.repl")
|
||||
public void testIncompleteWhen() throws Exception {
|
||||
runTest("compiler/testData/repl/controlFlow/incompleteWhen.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("kt15407.repl")
|
||||
public void testKt15407() throws Exception {
|
||||
runTest("compiler/testData/repl/controlFlow/kt15407.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("loopWithWrongLabel.repl")
|
||||
public void testLoopWithWrongLabel() throws Exception {
|
||||
runTest("compiler/testData/repl/controlFlow/loopWithWrongLabel.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("mutateVal.repl")
|
||||
public void testMutateVal() throws Exception {
|
||||
runTest("compiler/testData/repl/controlFlow/mutateVal.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("useUninitializedVal.repl")
|
||||
public void testUseUninitializedVal() throws Exception {
|
||||
runTest("compiler/testData/repl/controlFlow/useUninitializedVal.repl");
|
||||
}
|
||||
@TestMetadata("blankLinesAndComments.repl")
|
||||
public void testBlankLinesAndComments() {
|
||||
runTest("compiler/testData/repl/multiline/blankLinesAndComments.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/repl/modules")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Modules extends AbstractReplInterpreterTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInModules() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/repl/modules"), Pattern.compile("^(.+)\\.repl$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("kt10001.repl")
|
||||
public void testKt10001() throws Exception {
|
||||
runTest("compiler/testData/repl/modules/kt10001.repl");
|
||||
}
|
||||
@TestMetadata("functionOnSeveralLines.repl")
|
||||
public void testFunctionOnSeveralLines() {
|
||||
runTest("compiler/testData/repl/multiline/functionOnSeveralLines.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/repl/multiline")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Multiline extends AbstractReplInterpreterTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInMultiline() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/repl/multiline"), Pattern.compile("^(.+)\\.repl$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("blankLinesAndComments.repl")
|
||||
public void testBlankLinesAndComments() throws Exception {
|
||||
runTest("compiler/testData/repl/multiline/blankLinesAndComments.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("functionOnSeveralLines.repl")
|
||||
public void testFunctionOnSeveralLines() throws Exception {
|
||||
runTest("compiler/testData/repl/multiline/functionOnSeveralLines.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("multilineFunctionInvocation.repl")
|
||||
public void testMultilineFunctionInvocation() throws Exception {
|
||||
runTest("compiler/testData/repl/multiline/multilineFunctionInvocation.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("openParenthesisIncomplete.repl")
|
||||
public void testOpenParenthesisIncomplete() throws Exception {
|
||||
runTest("compiler/testData/repl/multiline/openParenthesisIncomplete.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleFunctionBodyOnNextLine.repl")
|
||||
public void testSimpleFunctionBodyOnNextLine() throws Exception {
|
||||
runTest("compiler/testData/repl/multiline/simpleFunctionBodyOnNextLine.repl");
|
||||
}
|
||||
@TestMetadata("multilineFunctionInvocation.repl")
|
||||
public void testMultilineFunctionInvocation() {
|
||||
runTest("compiler/testData/repl/multiline/multilineFunctionInvocation.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/repl/objects")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Objects extends AbstractReplInterpreterTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInObjects() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/repl/objects"), Pattern.compile("^(.+)\\.repl$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("emptyObject.repl")
|
||||
public void testEmptyObject() throws Exception {
|
||||
runTest("compiler/testData/repl/objects/emptyObject.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("localObject.repl")
|
||||
public void testLocalObject() throws Exception {
|
||||
runTest("compiler/testData/repl/objects/localObject.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleObjectDeclaration.repl")
|
||||
public void testSimpleObjectDeclaration() throws Exception {
|
||||
runTest("compiler/testData/repl/objects/simpleObjectDeclaration.repl");
|
||||
}
|
||||
@TestMetadata("openParenthesisIncomplete.repl")
|
||||
public void testOpenParenthesisIncomplete() {
|
||||
runTest("compiler/testData/repl/multiline/openParenthesisIncomplete.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/repl/primitiveTypes")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class PrimitiveTypes extends AbstractReplInterpreterTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
@TestMetadata("simpleFunctionBodyOnNextLine.repl")
|
||||
public void testSimpleFunctionBodyOnNextLine() {
|
||||
runTest("compiler/testData/repl/multiline/simpleFunctionBodyOnNextLine.repl");
|
||||
}
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInPrimitiveTypes() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/repl/primitiveTypes"), Pattern.compile("^(.+)\\.repl$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("arrayOfBoxed.repl")
|
||||
public void testArrayOfBoxed() throws Exception {
|
||||
runTest("compiler/testData/repl/primitiveTypes/arrayOfBoxed.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("boxingOnPurpose.repl")
|
||||
public void testBoxingOnPurpose() throws Exception {
|
||||
runTest("compiler/testData/repl/primitiveTypes/boxingOnPurpose.repl");
|
||||
}
|
||||
@TestMetadata("compiler/testData/repl/objects")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Objects extends AbstractReplInterpreterTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/repl/regressions")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Regressions extends AbstractReplInterpreterTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInRegressions() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/repl/regressions"), Pattern.compile("^(.+)\\.repl$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("kt6843.repl")
|
||||
public void testKt6843() throws Exception {
|
||||
runTest("compiler/testData/repl/regressions/kt6843.repl");
|
||||
}
|
||||
public void testAllFilesPresentInObjects() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/repl/objects"), Pattern.compile("^(.+)\\.repl$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/repl/useJava")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class UseJava extends AbstractReplInterpreterTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInUseJava() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/repl/useJava"), Pattern.compile("^(.+)\\.repl$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("syntheticProperty.repl")
|
||||
public void testSyntheticProperty() throws Exception {
|
||||
runTest("compiler/testData/repl/useJava/syntheticProperty.repl");
|
||||
}
|
||||
@TestMetadata("emptyObject.repl")
|
||||
public void testEmptyObject() {
|
||||
runTest("compiler/testData/repl/objects/emptyObject.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("localObject.repl")
|
||||
public void testLocalObject() {
|
||||
runTest("compiler/testData/repl/objects/localObject.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleObjectDeclaration.repl")
|
||||
public void testSimpleObjectDeclaration() {
|
||||
runTest("compiler/testData/repl/objects/simpleObjectDeclaration.repl");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/repl/primitiveTypes")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class PrimitiveTypes extends AbstractReplInterpreterTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInPrimitiveTypes() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/repl/primitiveTypes"), Pattern.compile("^(.+)\\.repl$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("arrayOfBoxed.repl")
|
||||
public void testArrayOfBoxed() {
|
||||
runTest("compiler/testData/repl/primitiveTypes/arrayOfBoxed.repl");
|
||||
}
|
||||
|
||||
@TestMetadata("boxingOnPurpose.repl")
|
||||
public void testBoxingOnPurpose() {
|
||||
runTest("compiler/testData/repl/primitiveTypes/boxingOnPurpose.repl");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/repl/regressions")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Regressions extends AbstractReplInterpreterTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInRegressions() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/repl/regressions"), Pattern.compile("^(.+)\\.repl$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("kt6843.repl")
|
||||
public void testKt6843() {
|
||||
runTest("compiler/testData/repl/regressions/kt6843.repl");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/repl/useJava")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class UseJava extends AbstractReplInterpreterTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInUseJava() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/repl/useJava"), Pattern.compile("^(.+)\\.repl$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("syntheticProperty.repl")
|
||||
public void testSyntheticProperty() {
|
||||
runTest("compiler/testData/repl/useJava/syntheticProperty.repl");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+374
-374
@@ -21,449 +21,449 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class ResolveTestGenerated extends AbstractResolveTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInResolve() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolve"), Pattern.compile("^(.+)\\.resolve$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("Basic.resolve")
|
||||
public void testBasic() {
|
||||
runTest("compiler/testData/resolve/Basic.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ClassObjects.resolve")
|
||||
public void testClassObjects() {
|
||||
runTest("compiler/testData/resolve/ClassObjects.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("Classifiers.resolve")
|
||||
public void testClassifiers() {
|
||||
runTest("compiler/testData/resolve/Classifiers.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("DefaultParamsOfLocalFunctions.resolve")
|
||||
public void testDefaultParamsOfLocalFunctions() {
|
||||
runTest("compiler/testData/resolve/DefaultParamsOfLocalFunctions.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ErrorSupertype.resolve")
|
||||
public void testErrorSupertype() {
|
||||
runTest("compiler/testData/resolve/ErrorSupertype.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ExtensionFunctions.resolve")
|
||||
public void testExtensionFunctions() {
|
||||
runTest("compiler/testData/resolve/ExtensionFunctions.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("FunctionVariable.resolve")
|
||||
public void testFunctionVariable() {
|
||||
runTest("compiler/testData/resolve/FunctionVariable.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportFromRootScope.resolve")
|
||||
public void testImportFromRootScope() {
|
||||
runTest("compiler/testData/resolve/ImportFromRootScope.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportingRootScopeWhenProcessingImports.resolve")
|
||||
public void testImportingRootScopeWhenProcessingImports() {
|
||||
runTest("compiler/testData/resolve/ImportingRootScopeWhenProcessingImports.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("kt304.resolve")
|
||||
public void testKt304() {
|
||||
runTest("compiler/testData/resolve/kt304.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("LocalObjects.resolve")
|
||||
public void testLocalObjects() {
|
||||
runTest("compiler/testData/resolve/LocalObjects.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("NestedObjects.resolve")
|
||||
public void testNestedObjects() {
|
||||
runTest("compiler/testData/resolve/NestedObjects.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("NoReferenceForErrorAnnotation.resolve")
|
||||
public void testNoReferenceForErrorAnnotation() {
|
||||
runTest("compiler/testData/resolve/NoReferenceForErrorAnnotation.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("Objects.resolve")
|
||||
public void testObjects() {
|
||||
runTest("compiler/testData/resolve/Objects.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("Packages.resolve")
|
||||
public void testPackages() {
|
||||
runTest("compiler/testData/resolve/Packages.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("PrimaryConstructorParameters.resolve")
|
||||
public void testPrimaryConstructorParameters() {
|
||||
runTest("compiler/testData/resolve/PrimaryConstructorParameters.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("PrimaryConstructors.resolve")
|
||||
public void testPrimaryConstructors() {
|
||||
runTest("compiler/testData/resolve/PrimaryConstructors.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("Projections.resolve")
|
||||
public void testProjections() {
|
||||
runTest("compiler/testData/resolve/Projections.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("PropertyAndFunctionNameClash.resolve")
|
||||
public void testPropertyAndFunctionNameClash() {
|
||||
runTest("compiler/testData/resolve/PropertyAndFunctionNameClash.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ResolveOfInfixExpressions.resolve")
|
||||
public void testResolveOfInfixExpressions() {
|
||||
runTest("compiler/testData/resolve/ResolveOfInfixExpressions.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ResolveToJava.resolve")
|
||||
public void testResolveToJava() {
|
||||
runTest("compiler/testData/resolve/ResolveToJava.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ResolveToJava2.resolve")
|
||||
public void testResolveToJava2() {
|
||||
runTest("compiler/testData/resolve/ResolveToJava2.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ResolveToJava3.resolve")
|
||||
public void testResolveToJava3() {
|
||||
runTest("compiler/testData/resolve/ResolveToJava3.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ResolveToJavaTypeTransform.resolve")
|
||||
public void testResolveToJavaTypeTransform() {
|
||||
runTest("compiler/testData/resolve/ResolveToJavaTypeTransform.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ScopeInteraction.resolve")
|
||||
public void testScopeInteraction() {
|
||||
runTest("compiler/testData/resolve/ScopeInteraction.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("StringTemplates.resolve")
|
||||
public void testStringTemplates() {
|
||||
runTest("compiler/testData/resolve/StringTemplates.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("Super.resolve")
|
||||
public void testSuper() {
|
||||
runTest("compiler/testData/resolve/Super.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("TryCatch.resolve")
|
||||
public void testTryCatch() {
|
||||
runTest("compiler/testData/resolve/TryCatch.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolve/candidatesPriority")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CandidatesPriority extends AbstractResolveTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInResolve() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolve"), Pattern.compile("^(.+)\\.resolve$"), null, true);
|
||||
public void testAllFilesPresentInCandidatesPriority() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolve/candidatesPriority"), Pattern.compile("^(.+)\\.resolve$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("Basic.resolve")
|
||||
public void testBasic() throws Exception {
|
||||
runTest("compiler/testData/resolve/Basic.resolve");
|
||||
@TestMetadata("classObjectOuterResolve.resolve")
|
||||
public void testClassObjectOuterResolve() {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/classObjectOuterResolve.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ClassObjects.resolve")
|
||||
public void testClassObjects() throws Exception {
|
||||
runTest("compiler/testData/resolve/ClassObjects.resolve");
|
||||
@TestMetadata("closerReceiver1.resolve")
|
||||
public void testCloserReceiver1() {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/closerReceiver1.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("Classifiers.resolve")
|
||||
public void testClassifiers() throws Exception {
|
||||
runTest("compiler/testData/resolve/Classifiers.resolve");
|
||||
@TestMetadata("closerReceiver2.resolve")
|
||||
public void testCloserReceiver2() {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/closerReceiver2.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("DefaultParamsOfLocalFunctions.resolve")
|
||||
public void testDefaultParamsOfLocalFunctions() throws Exception {
|
||||
runTest("compiler/testData/resolve/DefaultParamsOfLocalFunctions.resolve");
|
||||
@TestMetadata("closerReceiver3.resolve")
|
||||
public void testCloserReceiver3() {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/closerReceiver3.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ErrorSupertype.resolve")
|
||||
public void testErrorSupertype() throws Exception {
|
||||
runTest("compiler/testData/resolve/ErrorSupertype.resolve");
|
||||
@TestMetadata("closerScope.resolve")
|
||||
public void testCloserScope() {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/closerScope.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ExtensionFunctions.resolve")
|
||||
public void testExtensionFunctions() throws Exception {
|
||||
runTest("compiler/testData/resolve/ExtensionFunctions.resolve");
|
||||
@TestMetadata("dispatchReceiverVsExtensionReceiver.resolve")
|
||||
public void testDispatchReceiverVsExtensionReceiver() {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/dispatchReceiverVsExtensionReceiver.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("FunctionVariable.resolve")
|
||||
public void testFunctionVariable() throws Exception {
|
||||
runTest("compiler/testData/resolve/FunctionVariable.resolve");
|
||||
@TestMetadata("dispatchReceiverVsExtensionReceiver2.resolve")
|
||||
public void testDispatchReceiverVsExtensionReceiver2() {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/dispatchReceiverVsExtensionReceiver2.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportFromRootScope.resolve")
|
||||
public void testImportFromRootScope() throws Exception {
|
||||
runTest("compiler/testData/resolve/ImportFromRootScope.resolve");
|
||||
@TestMetadata("extensionToCloserReceiverVsMember.resolve")
|
||||
public void testExtensionToCloserReceiverVsMember() {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/extensionToCloserReceiverVsMember.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportingRootScopeWhenProcessingImports.resolve")
|
||||
public void testImportingRootScopeWhenProcessingImports() throws Exception {
|
||||
runTest("compiler/testData/resolve/ImportingRootScopeWhenProcessingImports.resolve");
|
||||
@TestMetadata("implicitThisVsNoReceiver.resolve")
|
||||
public void testImplicitThisVsNoReceiver() {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/implicitThisVsNoReceiver.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("kt304.resolve")
|
||||
public void testKt304() throws Exception {
|
||||
runTest("compiler/testData/resolve/kt304.resolve");
|
||||
@TestMetadata("implicitThisVsNoReceiver2.resolve")
|
||||
public void testImplicitThisVsNoReceiver2() {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/implicitThisVsNoReceiver2.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("LocalObjects.resolve")
|
||||
public void testLocalObjects() throws Exception {
|
||||
runTest("compiler/testData/resolve/LocalObjects.resolve");
|
||||
@TestMetadata("localVsImplicitThis.resolve")
|
||||
public void testLocalVsImplicitThis() {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/localVsImplicitThis.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("NestedObjects.resolve")
|
||||
public void testNestedObjects() throws Exception {
|
||||
runTest("compiler/testData/resolve/NestedObjects.resolve");
|
||||
@TestMetadata("memberVsExtension1.resolve")
|
||||
public void testMemberVsExtension1() {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/memberVsExtension1.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("NoReferenceForErrorAnnotation.resolve")
|
||||
public void testNoReferenceForErrorAnnotation() throws Exception {
|
||||
runTest("compiler/testData/resolve/NoReferenceForErrorAnnotation.resolve");
|
||||
@TestMetadata("memberVsExtension2.resolve")
|
||||
public void testMemberVsExtension2() {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/memberVsExtension2.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("Objects.resolve")
|
||||
public void testObjects() throws Exception {
|
||||
runTest("compiler/testData/resolve/Objects.resolve");
|
||||
@TestMetadata("memberVsExtension3.resolve")
|
||||
public void testMemberVsExtension3() {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/memberVsExtension3.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("Packages.resolve")
|
||||
public void testPackages() throws Exception {
|
||||
runTest("compiler/testData/resolve/Packages.resolve");
|
||||
@TestMetadata("memberVsLocalExtension.resolve")
|
||||
public void testMemberVsLocalExtension() {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/memberVsLocalExtension.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("PrimaryConstructorParameters.resolve")
|
||||
public void testPrimaryConstructorParameters() throws Exception {
|
||||
runTest("compiler/testData/resolve/PrimaryConstructorParameters.resolve");
|
||||
@TestMetadata("memberWithInvokeVsNonLocal.resolve")
|
||||
public void testMemberWithInvokeVsNonLocal() {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/memberWithInvokeVsNonLocal.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("PrimaryConstructors.resolve")
|
||||
public void testPrimaryConstructors() throws Exception {
|
||||
runTest("compiler/testData/resolve/PrimaryConstructors.resolve");
|
||||
@TestMetadata("wrongReceiverVsOtherError.resolve")
|
||||
public void testWrongReceiverVsOtherError() {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/wrongReceiverVsOtherError.resolve");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolve/delegatedProperty")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class DelegatedProperty extends AbstractResolveTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("Projections.resolve")
|
||||
public void testProjections() throws Exception {
|
||||
runTest("compiler/testData/resolve/Projections.resolve");
|
||||
public void testAllFilesPresentInDelegatedProperty() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolve/delegatedProperty"), Pattern.compile("^(.+)\\.resolve$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("PropertyAndFunctionNameClash.resolve")
|
||||
public void testPropertyAndFunctionNameClash() throws Exception {
|
||||
runTest("compiler/testData/resolve/PropertyAndFunctionNameClash.resolve");
|
||||
@TestMetadata("delegationByCall.resolve")
|
||||
public void testDelegationByCall() {
|
||||
runTest("compiler/testData/resolve/delegatedProperty/delegationByCall.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ResolveOfInfixExpressions.resolve")
|
||||
public void testResolveOfInfixExpressions() throws Exception {
|
||||
runTest("compiler/testData/resolve/ResolveOfInfixExpressions.resolve");
|
||||
@TestMetadata("delegationByConstructor.resolve")
|
||||
public void testDelegationByConstructor() {
|
||||
runTest("compiler/testData/resolve/delegatedProperty/delegationByConstructor.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ResolveToJava.resolve")
|
||||
public void testResolveToJava() throws Exception {
|
||||
runTest("compiler/testData/resolve/ResolveToJava.resolve");
|
||||
@TestMetadata("delegationByFun.resolve")
|
||||
public void testDelegationByFun() {
|
||||
runTest("compiler/testData/resolve/delegatedProperty/delegationByFun.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ResolveToJava2.resolve")
|
||||
public void testResolveToJava2() throws Exception {
|
||||
runTest("compiler/testData/resolve/ResolveToJava2.resolve");
|
||||
@TestMetadata("delegationByObject.resolve")
|
||||
public void testDelegationByObject() {
|
||||
runTest("compiler/testData/resolve/delegatedProperty/delegationByObject.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ResolveToJava3.resolve")
|
||||
public void testResolveToJava3() throws Exception {
|
||||
runTest("compiler/testData/resolve/ResolveToJava3.resolve");
|
||||
@TestMetadata("delegationByProperty.resolve")
|
||||
public void testDelegationByProperty() {
|
||||
runTest("compiler/testData/resolve/delegatedProperty/delegationByProperty.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ResolveToJavaTypeTransform.resolve")
|
||||
public void testResolveToJavaTypeTransform() throws Exception {
|
||||
runTest("compiler/testData/resolve/ResolveToJavaTypeTransform.resolve");
|
||||
@TestMetadata("delegationInClass.resolve")
|
||||
public void testDelegationInClass() {
|
||||
runTest("compiler/testData/resolve/delegatedProperty/delegationInClass.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ScopeInteraction.resolve")
|
||||
public void testScopeInteraction() throws Exception {
|
||||
runTest("compiler/testData/resolve/ScopeInteraction.resolve");
|
||||
@TestMetadata("localDelegation.resolve")
|
||||
public void testLocalDelegation() {
|
||||
runTest("compiler/testData/resolve/delegatedProperty/localDelegation.resolve");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolve/imports")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Imports extends AbstractResolveTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("StringTemplates.resolve")
|
||||
public void testStringTemplates() throws Exception {
|
||||
runTest("compiler/testData/resolve/StringTemplates.resolve");
|
||||
public void testAllFilesPresentInImports() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolve/imports"), Pattern.compile("^(.+)\\.resolve$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("Super.resolve")
|
||||
public void testSuper() throws Exception {
|
||||
runTest("compiler/testData/resolve/Super.resolve");
|
||||
@TestMetadata("ImportConflictAllPackage.resolve")
|
||||
public void testImportConflictAllPackage() {
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictAllPackage.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("TryCatch.resolve")
|
||||
public void testTryCatch() throws Exception {
|
||||
runTest("compiler/testData/resolve/TryCatch.resolve");
|
||||
@TestMetadata("ImportConflictBetweenImportedAndRootPackage.resolve")
|
||||
public void testImportConflictBetweenImportedAndRootPackage() {
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictBetweenImportedAndRootPackage.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolve/candidatesPriority")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CandidatesPriority extends AbstractResolveTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCandidatesPriority() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolve/candidatesPriority"), Pattern.compile("^(.+)\\.resolve$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("classObjectOuterResolve.resolve")
|
||||
public void testClassObjectOuterResolve() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/classObjectOuterResolve.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("closerReceiver1.resolve")
|
||||
public void testCloserReceiver1() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/closerReceiver1.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("closerReceiver2.resolve")
|
||||
public void testCloserReceiver2() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/closerReceiver2.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("closerReceiver3.resolve")
|
||||
public void testCloserReceiver3() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/closerReceiver3.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("closerScope.resolve")
|
||||
public void testCloserScope() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/closerScope.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("dispatchReceiverVsExtensionReceiver.resolve")
|
||||
public void testDispatchReceiverVsExtensionReceiver() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/dispatchReceiverVsExtensionReceiver.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("dispatchReceiverVsExtensionReceiver2.resolve")
|
||||
public void testDispatchReceiverVsExtensionReceiver2() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/dispatchReceiverVsExtensionReceiver2.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionToCloserReceiverVsMember.resolve")
|
||||
public void testExtensionToCloserReceiverVsMember() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/extensionToCloserReceiverVsMember.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("implicitThisVsNoReceiver.resolve")
|
||||
public void testImplicitThisVsNoReceiver() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/implicitThisVsNoReceiver.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("implicitThisVsNoReceiver2.resolve")
|
||||
public void testImplicitThisVsNoReceiver2() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/implicitThisVsNoReceiver2.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("localVsImplicitThis.resolve")
|
||||
public void testLocalVsImplicitThis() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/localVsImplicitThis.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("memberVsExtension1.resolve")
|
||||
public void testMemberVsExtension1() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/memberVsExtension1.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("memberVsExtension2.resolve")
|
||||
public void testMemberVsExtension2() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/memberVsExtension2.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("memberVsExtension3.resolve")
|
||||
public void testMemberVsExtension3() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/memberVsExtension3.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("memberVsLocalExtension.resolve")
|
||||
public void testMemberVsLocalExtension() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/memberVsLocalExtension.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("memberWithInvokeVsNonLocal.resolve")
|
||||
public void testMemberWithInvokeVsNonLocal() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/memberWithInvokeVsNonLocal.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("wrongReceiverVsOtherError.resolve")
|
||||
public void testWrongReceiverVsOtherError() throws Exception {
|
||||
runTest("compiler/testData/resolve/candidatesPriority/wrongReceiverVsOtherError.resolve");
|
||||
}
|
||||
@TestMetadata("ImportConflictBetweenImportedAndSamePackage.resolve")
|
||||
public void testImportConflictBetweenImportedAndSamePackage() {
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictBetweenImportedAndSamePackage.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolve/delegatedProperty")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class DelegatedProperty extends AbstractResolveTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDelegatedProperty() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolve/delegatedProperty"), Pattern.compile("^(.+)\\.resolve$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("delegationByCall.resolve")
|
||||
public void testDelegationByCall() throws Exception {
|
||||
runTest("compiler/testData/resolve/delegatedProperty/delegationByCall.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("delegationByConstructor.resolve")
|
||||
public void testDelegationByConstructor() throws Exception {
|
||||
runTest("compiler/testData/resolve/delegatedProperty/delegationByConstructor.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("delegationByFun.resolve")
|
||||
public void testDelegationByFun() throws Exception {
|
||||
runTest("compiler/testData/resolve/delegatedProperty/delegationByFun.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("delegationByObject.resolve")
|
||||
public void testDelegationByObject() throws Exception {
|
||||
runTest("compiler/testData/resolve/delegatedProperty/delegationByObject.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("delegationByProperty.resolve")
|
||||
public void testDelegationByProperty() throws Exception {
|
||||
runTest("compiler/testData/resolve/delegatedProperty/delegationByProperty.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("delegationInClass.resolve")
|
||||
public void testDelegationInClass() throws Exception {
|
||||
runTest("compiler/testData/resolve/delegatedProperty/delegationInClass.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("localDelegation.resolve")
|
||||
public void testLocalDelegation() throws Exception {
|
||||
runTest("compiler/testData/resolve/delegatedProperty/localDelegation.resolve");
|
||||
}
|
||||
@TestMetadata("ImportConflictForFunctions.resolve")
|
||||
public void testImportConflictForFunctions() {
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictForFunctions.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolve/imports")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Imports extends AbstractResolveTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInImports() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolve/imports"), Pattern.compile("^(.+)\\.resolve$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("ImportConflictAllPackage.resolve")
|
||||
public void testImportConflictAllPackage() throws Exception {
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictAllPackage.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportConflictBetweenImportedAndRootPackage.resolve")
|
||||
public void testImportConflictBetweenImportedAndRootPackage() throws Exception {
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictBetweenImportedAndRootPackage.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportConflictBetweenImportedAndSamePackage.resolve")
|
||||
public void testImportConflictBetweenImportedAndSamePackage() throws Exception {
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictBetweenImportedAndSamePackage.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportConflictForFunctions.resolve")
|
||||
public void testImportConflictForFunctions() throws Exception {
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictForFunctions.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportConflictPackageAndClass.resolve")
|
||||
public void testImportConflictPackageAndClass() throws Exception {
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictPackageAndClass.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportConflictSameNameClass.resolve")
|
||||
public void testImportConflictSameNameClass() throws Exception {
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictSameNameClass.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportConflictWithClassObject.resolve")
|
||||
public void testImportConflictWithClassObject() throws Exception {
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictWithClassObject.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportConflictWithInFileClass.resolve")
|
||||
public void testImportConflictWithInFileClass() throws Exception {
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictWithInFileClass.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportConflictWithInnerClass.resolve")
|
||||
public void testImportConflictWithInnerClass() throws Exception {
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictWithInnerClass.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportConflictsWithMappedToJava.resolve")
|
||||
public void testImportConflictsWithMappedToJava() throws Exception {
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictsWithMappedToJava.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportNonBlockingAnalysis.resolve")
|
||||
public void testImportNonBlockingAnalysis() throws Exception {
|
||||
runTest("compiler/testData/resolve/imports/ImportNonBlockingAnalysis.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportResolveOrderStable.resolve")
|
||||
public void testImportResolveOrderStable() throws Exception {
|
||||
runTest("compiler/testData/resolve/imports/ImportResolveOrderStable.resolve");
|
||||
}
|
||||
@TestMetadata("ImportConflictPackageAndClass.resolve")
|
||||
public void testImportConflictPackageAndClass() {
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictPackageAndClass.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolve/labels")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Labels extends AbstractResolveTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInLabels() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolve/labels"), Pattern.compile("^(.+)\\.resolve$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("labelForPropertyInGetter.resolve")
|
||||
public void testLabelForPropertyInGetter() throws Exception {
|
||||
runTest("compiler/testData/resolve/labels/labelForPropertyInGetter.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("labelForPropertyInSetter.resolve")
|
||||
public void testLabelForPropertyInSetter() throws Exception {
|
||||
runTest("compiler/testData/resolve/labels/labelForPropertyInSetter.resolve");
|
||||
}
|
||||
@TestMetadata("ImportConflictSameNameClass.resolve")
|
||||
public void testImportConflictSameNameClass() {
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictSameNameClass.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolve/regressions")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Regressions extends AbstractResolveTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInRegressions() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolve/regressions"), Pattern.compile("^(.+)\\.resolve$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("kt300.resolve")
|
||||
public void testKt300() throws Exception {
|
||||
runTest("compiler/testData/resolve/regressions/kt300.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("kt45676.resolve")
|
||||
public void testKt45676() throws Exception {
|
||||
runTest("compiler/testData/resolve/regressions/kt45676.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("objectInsideFun.resolve")
|
||||
public void testObjectInsideFun() throws Exception {
|
||||
runTest("compiler/testData/resolve/regressions/objectInsideFun.resolve");
|
||||
}
|
||||
@TestMetadata("ImportConflictWithClassObject.resolve")
|
||||
public void testImportConflictWithClassObject() {
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictWithClassObject.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolve/varargs")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Varargs extends AbstractResolveTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInVarargs() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolve/varargs"), Pattern.compile("^(.+)\\.resolve$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("MoreSpecificVarargsOfEqualLength.resolve")
|
||||
public void testMoreSpecificVarargsOfEqualLength() throws Exception {
|
||||
runTest("compiler/testData/resolve/varargs/MoreSpecificVarargsOfEqualLength.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("NilaryVsVararg.resolve")
|
||||
public void testNilaryVsVararg() throws Exception {
|
||||
runTest("compiler/testData/resolve/varargs/NilaryVsVararg.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("UnaryVsVararg.resolve")
|
||||
public void testUnaryVsVararg() throws Exception {
|
||||
runTest("compiler/testData/resolve/varargs/UnaryVsVararg.resolve");
|
||||
}
|
||||
@TestMetadata("ImportConflictWithInFileClass.resolve")
|
||||
public void testImportConflictWithInFileClass() {
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictWithInFileClass.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportConflictWithInnerClass.resolve")
|
||||
public void testImportConflictWithInnerClass() {
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictWithInnerClass.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportConflictsWithMappedToJava.resolve")
|
||||
public void testImportConflictsWithMappedToJava() {
|
||||
runTest("compiler/testData/resolve/imports/ImportConflictsWithMappedToJava.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportNonBlockingAnalysis.resolve")
|
||||
public void testImportNonBlockingAnalysis() {
|
||||
runTest("compiler/testData/resolve/imports/ImportNonBlockingAnalysis.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("ImportResolveOrderStable.resolve")
|
||||
public void testImportResolveOrderStable() {
|
||||
runTest("compiler/testData/resolve/imports/ImportResolveOrderStable.resolve");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolve/labels")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Labels extends AbstractResolveTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInLabels() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolve/labels"), Pattern.compile("^(.+)\\.resolve$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("labelForPropertyInGetter.resolve")
|
||||
public void testLabelForPropertyInGetter() {
|
||||
runTest("compiler/testData/resolve/labels/labelForPropertyInGetter.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("labelForPropertyInSetter.resolve")
|
||||
public void testLabelForPropertyInSetter() {
|
||||
runTest("compiler/testData/resolve/labels/labelForPropertyInSetter.resolve");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolve/regressions")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Regressions extends AbstractResolveTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInRegressions() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolve/regressions"), Pattern.compile("^(.+)\\.resolve$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("kt300.resolve")
|
||||
public void testKt300() {
|
||||
runTest("compiler/testData/resolve/regressions/kt300.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("kt45676.resolve")
|
||||
public void testKt45676() {
|
||||
runTest("compiler/testData/resolve/regressions/kt45676.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("objectInsideFun.resolve")
|
||||
public void testObjectInsideFun() {
|
||||
runTest("compiler/testData/resolve/regressions/objectInsideFun.resolve");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolve/varargs")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Varargs extends AbstractResolveTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInVarargs() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolve/varargs"), Pattern.compile("^(.+)\\.resolve$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("MoreSpecificVarargsOfEqualLength.resolve")
|
||||
public void testMoreSpecificVarargsOfEqualLength() {
|
||||
runTest("compiler/testData/resolve/varargs/MoreSpecificVarargsOfEqualLength.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("NilaryVsVararg.resolve")
|
||||
public void testNilaryVsVararg() {
|
||||
runTest("compiler/testData/resolve/varargs/NilaryVsVararg.resolve");
|
||||
}
|
||||
|
||||
@TestMetadata("UnaryVsVararg.resolve")
|
||||
public void testUnaryVsVararg() {
|
||||
runTest("compiler/testData/resolve/varargs/UnaryVsVararg.resolve");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+555
-555
File diff suppressed because it is too large
Load Diff
+90
-90
@@ -21,116 +21,116 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class ResolvedConstructorDelegationCallsTestsGenerated extends AbstractResolvedConstructorDelegationCallsTests {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInResolveConstructorDelegationCalls() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolveConstructorDelegationCalls"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
public void testAllFilesPresentInResolveConstructorDelegationCalls() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolveConstructorDelegationCalls"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("classWithGenerics.kt")
|
||||
public void testClassWithGenerics() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/classWithGenerics.kt");
|
||||
}
|
||||
@TestMetadata("classWithGenerics.kt")
|
||||
public void testClassWithGenerics() {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/classWithGenerics.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("generics2.kt")
|
||||
public void testGenerics2() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/generics2.kt");
|
||||
}
|
||||
@TestMetadata("generics2.kt")
|
||||
public void testGenerics2() {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/generics2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("generics3.kt")
|
||||
public void testGenerics3() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/generics3.kt");
|
||||
}
|
||||
@TestMetadata("generics3.kt")
|
||||
public void testGenerics3() {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/generics3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("generics4.kt")
|
||||
public void testGenerics4() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/generics4.kt");
|
||||
}
|
||||
@TestMetadata("generics4.kt")
|
||||
public void testGenerics4() {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/generics4.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("generics5.kt")
|
||||
public void testGenerics5() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/generics5.kt");
|
||||
}
|
||||
@TestMetadata("generics5.kt")
|
||||
public void testGenerics5() {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/generics5.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inheritanceWithGeneric.kt")
|
||||
public void testInheritanceWithGeneric() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/inheritanceWithGeneric.kt");
|
||||
}
|
||||
@TestMetadata("inheritanceWithGeneric.kt")
|
||||
public void testInheritanceWithGeneric() {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/inheritanceWithGeneric.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClassDelegatingPrimary.kt")
|
||||
public void testInnerClassDelegatingPrimary() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/innerClassDelegatingPrimary.kt");
|
||||
}
|
||||
@TestMetadata("innerClassDelegatingPrimary.kt")
|
||||
public void testInnerClassDelegatingPrimary() {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/innerClassDelegatingPrimary.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClassDelegatingSecondary.kt")
|
||||
public void testInnerClassDelegatingSecondary() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/innerClassDelegatingSecondary.kt");
|
||||
}
|
||||
@TestMetadata("innerClassDelegatingSecondary.kt")
|
||||
public void testInnerClassDelegatingSecondary() {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/innerClassDelegatingSecondary.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superAnyEmpty.kt")
|
||||
public void testSuperAnyEmpty() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/superAnyEmpty.kt");
|
||||
}
|
||||
@TestMetadata("superAnyEmpty.kt")
|
||||
public void testSuperAnyEmpty() {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/superAnyEmpty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superAnyImplicit.kt")
|
||||
public void testSuperAnyImplicit() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/superAnyImplicit.kt");
|
||||
}
|
||||
@TestMetadata("superAnyImplicit.kt")
|
||||
public void testSuperAnyImplicit() {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/superAnyImplicit.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPrimary.kt")
|
||||
public void testSuperPrimary() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/superPrimary.kt");
|
||||
}
|
||||
@TestMetadata("superPrimary.kt")
|
||||
public void testSuperPrimary() {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/superPrimary.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPrimaryEmpty.kt")
|
||||
public void testSuperPrimaryEmpty() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/superPrimaryEmpty.kt");
|
||||
}
|
||||
@TestMetadata("superPrimaryEmpty.kt")
|
||||
public void testSuperPrimaryEmpty() {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/superPrimaryEmpty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPrimaryImplicit.kt")
|
||||
public void testSuperPrimaryImplicit() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/superPrimaryImplicit.kt");
|
||||
}
|
||||
@TestMetadata("superPrimaryImplicit.kt")
|
||||
public void testSuperPrimaryImplicit() {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/superPrimaryImplicit.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superSecondary.kt")
|
||||
public void testSuperSecondary() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/superSecondary.kt");
|
||||
}
|
||||
@TestMetadata("superSecondary.kt")
|
||||
public void testSuperSecondary() {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/superSecondary.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superSecondaryImplicit.kt")
|
||||
public void testSuperSecondaryImplicit() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/superSecondaryImplicit.kt");
|
||||
}
|
||||
@TestMetadata("superSecondaryImplicit.kt")
|
||||
public void testSuperSecondaryImplicit() {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/superSecondaryImplicit.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superSecondaryOverload.kt")
|
||||
public void testSuperSecondaryOverload() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/superSecondaryOverload.kt");
|
||||
}
|
||||
@TestMetadata("superSecondaryOverload.kt")
|
||||
public void testSuperSecondaryOverload() {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/superSecondaryOverload.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("thisPrimary.kt")
|
||||
public void testThisPrimary() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/thisPrimary.kt");
|
||||
}
|
||||
@TestMetadata("thisPrimary.kt")
|
||||
public void testThisPrimary() {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/thisPrimary.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("thisPrimaryEmpty.kt")
|
||||
public void testThisPrimaryEmpty() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/thisPrimaryEmpty.kt");
|
||||
}
|
||||
@TestMetadata("thisPrimaryEmpty.kt")
|
||||
public void testThisPrimaryEmpty() {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/thisPrimaryEmpty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("thisSecondary.kt")
|
||||
public void testThisSecondary() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/thisSecondary.kt");
|
||||
}
|
||||
@TestMetadata("thisSecondary.kt")
|
||||
public void testThisSecondary() {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/thisSecondary.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("thisSecondaryOverload.kt")
|
||||
public void testThisSecondaryOverload() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/thisSecondaryOverload.kt");
|
||||
}
|
||||
@TestMetadata("thisSecondaryOverload.kt")
|
||||
public void testThisSecondaryOverload() {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/thisSecondaryOverload.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("varargs.kt")
|
||||
public void testVarargs() throws Exception {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/varargs.kt");
|
||||
}
|
||||
@TestMetadata("varargs.kt")
|
||||
public void testVarargs() {
|
||||
runTest("compiler/testData/resolveConstructorDelegationCalls/varargs.kt");
|
||||
}
|
||||
}
|
||||
|
||||
+206
-206
@@ -21,217 +21,217 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class TypeBindingTestGenerated extends AbstractTypeBindingTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInBinding() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/type/binding"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/type/binding/explicit")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Explicit extends AbstractTypeBindingTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInBinding() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/type/binding"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
public void testAllFilesPresentInExplicit() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/type/binding/explicit"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/type/binding/explicit")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Explicit extends AbstractTypeBindingTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInExplicit() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/type/binding/explicit"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("conflictingProjection.kt")
|
||||
public void testConflictingProjection() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/conflictingProjection.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("conflictingProjection2.kt")
|
||||
public void testConflictingProjection2() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/conflictingProjection2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("errorPair.kt")
|
||||
public void testErrorPair() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/errorPair.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("errorWithProjection.kt")
|
||||
public void testErrorWithProjection() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/errorWithProjection.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionType.kt")
|
||||
public void testFunctionType() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/functionType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionType2.kt")
|
||||
public void testFunctionType2() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/functionType2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionType3.kt")
|
||||
public void testFunctionType3() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/functionType3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inProjection.kt")
|
||||
public void testInProjection() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/inProjection.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("int.kt")
|
||||
public void testInt() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/int.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("list0.kt")
|
||||
public void testList0() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/list0.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("list2.kt")
|
||||
public void testList2() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/list2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullableType.kt")
|
||||
public void testNullableType() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/nullableType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("outProjection.kt")
|
||||
public void testOutProjection() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/outProjection.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("pair.kt")
|
||||
public void testPair() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/pair.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("star.kt")
|
||||
public void testStar() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/star.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeWithBracket.kt")
|
||||
public void testTypeWithBracket() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/typeWithBracket.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unresolvedType.kt")
|
||||
public void testUnresolvedType() throws Exception {
|
||||
runTest("compiler/testData/type/binding/explicit/unresolvedType.kt");
|
||||
}
|
||||
@TestMetadata("conflictingProjection.kt")
|
||||
public void testConflictingProjection() {
|
||||
runTest("compiler/testData/type/binding/explicit/conflictingProjection.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/type/binding/implicit")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Implicit extends AbstractTypeBindingTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInImplicit() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/type/binding/implicit"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("conflictingProjection.kt")
|
||||
public void testConflictingProjection() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/conflictingProjection.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("conflictingProjection2.kt")
|
||||
public void testConflictingProjection2() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/conflictingProjection2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("errorPair.kt")
|
||||
public void testErrorPair() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/errorPair.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("errorWithProjection.kt")
|
||||
public void testErrorWithProjection() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/errorWithProjection.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionType.kt")
|
||||
public void testFunctionType() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/functionType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionType2.kt")
|
||||
public void testFunctionType2() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/functionType2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionType3.kt")
|
||||
public void testFunctionType3() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/functionType3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inProjection.kt")
|
||||
public void testInProjection() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/inProjection.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("int.kt")
|
||||
public void testInt() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/int.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("list0.kt")
|
||||
public void testList0() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/list0.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("list2.kt")
|
||||
public void testList2() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/list2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullableType.kt")
|
||||
public void testNullableType() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/nullableType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("outProjection.kt")
|
||||
public void testOutProjection() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/outProjection.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("pair.kt")
|
||||
public void testPair() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/pair.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("star.kt")
|
||||
public void testStar() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/star.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeWithBracket.kt")
|
||||
public void testTypeWithBracket() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/typeWithBracket.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unresolvedType.kt")
|
||||
public void testUnresolvedType() throws Exception {
|
||||
runTest("compiler/testData/type/binding/implicit/unresolvedType.kt");
|
||||
}
|
||||
@TestMetadata("conflictingProjection2.kt")
|
||||
public void testConflictingProjection2() {
|
||||
runTest("compiler/testData/type/binding/explicit/conflictingProjection2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("errorPair.kt")
|
||||
public void testErrorPair() {
|
||||
runTest("compiler/testData/type/binding/explicit/errorPair.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("errorWithProjection.kt")
|
||||
public void testErrorWithProjection() {
|
||||
runTest("compiler/testData/type/binding/explicit/errorWithProjection.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionType.kt")
|
||||
public void testFunctionType() {
|
||||
runTest("compiler/testData/type/binding/explicit/functionType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionType2.kt")
|
||||
public void testFunctionType2() {
|
||||
runTest("compiler/testData/type/binding/explicit/functionType2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionType3.kt")
|
||||
public void testFunctionType3() {
|
||||
runTest("compiler/testData/type/binding/explicit/functionType3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inProjection.kt")
|
||||
public void testInProjection() {
|
||||
runTest("compiler/testData/type/binding/explicit/inProjection.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("int.kt")
|
||||
public void testInt() {
|
||||
runTest("compiler/testData/type/binding/explicit/int.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("list0.kt")
|
||||
public void testList0() {
|
||||
runTest("compiler/testData/type/binding/explicit/list0.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("list2.kt")
|
||||
public void testList2() {
|
||||
runTest("compiler/testData/type/binding/explicit/list2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullableType.kt")
|
||||
public void testNullableType() {
|
||||
runTest("compiler/testData/type/binding/explicit/nullableType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("outProjection.kt")
|
||||
public void testOutProjection() {
|
||||
runTest("compiler/testData/type/binding/explicit/outProjection.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("pair.kt")
|
||||
public void testPair() {
|
||||
runTest("compiler/testData/type/binding/explicit/pair.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() {
|
||||
runTest("compiler/testData/type/binding/explicit/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("star.kt")
|
||||
public void testStar() {
|
||||
runTest("compiler/testData/type/binding/explicit/star.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeWithBracket.kt")
|
||||
public void testTypeWithBracket() {
|
||||
runTest("compiler/testData/type/binding/explicit/typeWithBracket.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unresolvedType.kt")
|
||||
public void testUnresolvedType() {
|
||||
runTest("compiler/testData/type/binding/explicit/unresolvedType.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/type/binding/implicit")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Implicit extends AbstractTypeBindingTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInImplicit() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/type/binding/implicit"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("conflictingProjection.kt")
|
||||
public void testConflictingProjection() {
|
||||
runTest("compiler/testData/type/binding/implicit/conflictingProjection.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("conflictingProjection2.kt")
|
||||
public void testConflictingProjection2() {
|
||||
runTest("compiler/testData/type/binding/implicit/conflictingProjection2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("errorPair.kt")
|
||||
public void testErrorPair() {
|
||||
runTest("compiler/testData/type/binding/implicit/errorPair.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("errorWithProjection.kt")
|
||||
public void testErrorWithProjection() {
|
||||
runTest("compiler/testData/type/binding/implicit/errorWithProjection.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionType.kt")
|
||||
public void testFunctionType() {
|
||||
runTest("compiler/testData/type/binding/implicit/functionType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionType2.kt")
|
||||
public void testFunctionType2() {
|
||||
runTest("compiler/testData/type/binding/implicit/functionType2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionType3.kt")
|
||||
public void testFunctionType3() {
|
||||
runTest("compiler/testData/type/binding/implicit/functionType3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inProjection.kt")
|
||||
public void testInProjection() {
|
||||
runTest("compiler/testData/type/binding/implicit/inProjection.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("int.kt")
|
||||
public void testInt() {
|
||||
runTest("compiler/testData/type/binding/implicit/int.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("list0.kt")
|
||||
public void testList0() {
|
||||
runTest("compiler/testData/type/binding/implicit/list0.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("list2.kt")
|
||||
public void testList2() {
|
||||
runTest("compiler/testData/type/binding/implicit/list2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullableType.kt")
|
||||
public void testNullableType() {
|
||||
runTest("compiler/testData/type/binding/implicit/nullableType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("outProjection.kt")
|
||||
public void testOutProjection() {
|
||||
runTest("compiler/testData/type/binding/implicit/outProjection.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("pair.kt")
|
||||
public void testPair() {
|
||||
runTest("compiler/testData/type/binding/implicit/pair.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() {
|
||||
runTest("compiler/testData/type/binding/implicit/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("star.kt")
|
||||
public void testStar() {
|
||||
runTest("compiler/testData/type/binding/implicit/star.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeWithBracket.kt")
|
||||
public void testTypeWithBracket() {
|
||||
runTest("compiler/testData/type/binding/implicit/typeWithBracket.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unresolvedType.kt")
|
||||
public void testUnresolvedType() {
|
||||
runTest("compiler/testData/type/binding/implicit/unresolvedType.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user