KT-3189 Function invoke is called with no reason
prioritize tasks specially for invoke #KT-3189 Fixed #KT-3190 Fixed #KT-3297 Fixed
This commit is contained in:
@@ -4510,6 +4510,7 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/resolve")
|
||||
@InnerTestClasses({Resolve.Invoke.class})
|
||||
public static class Resolve extends AbstractDiagnosticsTestWithEagerResolve {
|
||||
public void testAllFilesPresentInResolve() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/diagnostics/tests/resolve"), Pattern.compile("^(.+)\\.kt$"), true);
|
||||
@@ -4545,6 +4546,40 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
|
||||
doTest("compiler/testData/diagnostics/tests/resolve/resolveWithoutGenerics.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/resolve/invoke")
|
||||
public static class Invoke extends AbstractDiagnosticsTestWithEagerResolve {
|
||||
public void testAllFilesPresentInInvoke() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/diagnostics/tests/resolve/invoke"), Pattern.compile("^(.+)\\.kt$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("invokeAsExtension.kt")
|
||||
public void testInvokeAsExtension() throws Exception {
|
||||
doTest("compiler/testData/diagnostics/tests/resolve/invoke/invokeAsExtension.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("invokeAsMember.kt")
|
||||
public void testInvokeAsMember() throws Exception {
|
||||
doTest("compiler/testData/diagnostics/tests/resolve/invoke/invokeAsMember.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("invokeAsMemberExtension.kt")
|
||||
public void testInvokeAsMemberExtension() throws Exception {
|
||||
doTest("compiler/testData/diagnostics/tests/resolve/invoke/invokeAsMemberExtension.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("invokeAsMemberExtensionToExplicitReceiver.kt")
|
||||
public void testInvokeAsMemberExtensionToExplicitReceiver() throws Exception {
|
||||
doTest("compiler/testData/diagnostics/tests/resolve/invoke/invokeAsMemberExtensionToExplicitReceiver.kt");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static Test innerSuite() {
|
||||
TestSuite suite = new TestSuite("Resolve");
|
||||
suite.addTestSuite(Resolve.class);
|
||||
suite.addTestSuite(Invoke.class);
|
||||
return suite;
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/scopes")
|
||||
@@ -5087,7 +5122,7 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
|
||||
suite.addTestSuite(Recovery.class);
|
||||
suite.addTestSuite(Redeclarations.class);
|
||||
suite.addTestSuite(Regressions.class);
|
||||
suite.addTestSuite(Resolve.class);
|
||||
suite.addTest(Resolve.innerSuite());
|
||||
suite.addTestSuite(Scopes.class);
|
||||
suite.addTestSuite(SenselessComparison.class);
|
||||
suite.addTestSuite(Shadowing.class);
|
||||
|
||||
+30
-6
@@ -2092,7 +2092,7 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/functions")
|
||||
@InnerTestClasses({Functions.LocalFunctions.class})
|
||||
@InnerTestClasses({Functions.Invoke.class, Functions.LocalFunctions.class})
|
||||
public static class Functions extends AbstractBlackBoxCodegenTest {
|
||||
public void testAllFilesPresentInFunctions() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/codegen/box/functions"), Pattern.compile("^(.+)\\.kt$"), true);
|
||||
@@ -2168,11 +2168,6 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
doTest("compiler/testData/codegen/box/functions/functionNtoString.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("invoke.kt")
|
||||
public void testInvoke() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/functions/invoke.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt1038.kt")
|
||||
public void testKt1038() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/functions/kt1038.kt");
|
||||
@@ -2268,6 +2263,34 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
doTest("compiler/testData/codegen/box/functions/nothisnoclosure.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/functions/invoke")
|
||||
public static class Invoke extends AbstractBlackBoxCodegenTest {
|
||||
public void testAllFilesPresentInInvoke() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/codegen/box/functions/invoke"), Pattern.compile("^(.+)\\.kt$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("invoke.kt")
|
||||
public void testInvoke() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/functions/invoke/invoke.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt3189.kt")
|
||||
public void testKt3189() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/functions/invoke/kt3189.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt3190.kt")
|
||||
public void testKt3190() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/functions/invoke/kt3190.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt3297.kt")
|
||||
public void testKt3297() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/functions/invoke/kt3297.kt");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/functions/localFunctions")
|
||||
public static class LocalFunctions extends AbstractBlackBoxCodegenTest {
|
||||
public void testAllFilesPresentInLocalFunctions() throws Exception {
|
||||
@@ -2284,6 +2307,7 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
public static Test innerSuite() {
|
||||
TestSuite suite = new TestSuite("Functions");
|
||||
suite.addTestSuite(Functions.class);
|
||||
suite.addTestSuite(Invoke.class);
|
||||
suite.addTestSuite(LocalFunctions.class);
|
||||
return suite;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user