Allow kotlin extra files in parameter info tests
This commit is contained in:
@@ -226,7 +226,11 @@ fun main(args: Array<String>) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
testClass<AbstractParameterInfoTest> {
|
testClass<AbstractParameterInfoTest> {
|
||||||
model("parameterInfo", recursive = true, excludeDirs = listOf("withLib1/sharedLib", "withLib2/sharedLib", "withLib3/sharedLib"))
|
model(
|
||||||
|
"parameterInfo",
|
||||||
|
pattern = "^([\\w\\-_]+)\\.kt$", recursive = true,
|
||||||
|
excludeDirs = listOf("withLib1/sharedLib", "withLib2/sharedLib", "withLib3/sharedLib")
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
testClass<AbstractKotlinGotoTest> {
|
testClass<AbstractKotlinGotoTest> {
|
||||||
|
|||||||
@@ -225,7 +225,11 @@ fun main(args: Array<String>) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
testClass<AbstractParameterInfoTest> {
|
testClass<AbstractParameterInfoTest> {
|
||||||
model("parameterInfo", recursive = true, excludeDirs = listOf("withLib1/sharedLib", "withLib2/sharedLib", "withLib3/sharedLib"))
|
model(
|
||||||
|
"parameterInfo",
|
||||||
|
pattern = "^([\\w\\-_]+)\\.kt$", recursive = true,
|
||||||
|
excludeDirs = listOf("withLib1/sharedLib", "withLib2/sharedLib", "withLib3/sharedLib")
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
testClass<AbstractKotlinGotoTest> {
|
testClass<AbstractKotlinGotoTest> {
|
||||||
|
|||||||
@@ -225,7 +225,11 @@ fun main(args: Array<String>) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
testClass<AbstractParameterInfoTest> {
|
testClass<AbstractParameterInfoTest> {
|
||||||
model("parameterInfo", recursive = true, excludeDirs = listOf("withLib1/sharedLib", "withLib2/sharedLib", "withLib3/sharedLib"))
|
model(
|
||||||
|
"parameterInfo",
|
||||||
|
pattern = "^([\\w\\-_]+)\\.kt$", recursive = true,
|
||||||
|
excludeDirs = listOf("withLib1/sharedLib", "withLib2/sharedLib", "withLib3/sharedLib")
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
testClass<AbstractKotlinGotoTest> {
|
testClass<AbstractKotlinGotoTest> {
|
||||||
|
|||||||
@@ -217,7 +217,11 @@ fun main(args: Array<String>) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
testClass<AbstractParameterInfoTest> {
|
testClass<AbstractParameterInfoTest> {
|
||||||
model("parameterInfo", recursive = true, excludeDirs = listOf("withLib1/sharedLib", "withLib2/sharedLib", "withLib3/sharedLib"))
|
model(
|
||||||
|
"parameterInfo",
|
||||||
|
pattern = "^([\\w\\-_]+)\\.kt$", recursive = true,
|
||||||
|
excludeDirs = listOf("withLib1/sharedLib", "withLib2/sharedLib", "withLib3/sharedLib")
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
testClass<AbstractKotlinGotoTest> {
|
testClass<AbstractKotlinGotoTest> {
|
||||||
|
|||||||
+8
-8
@@ -26,7 +26,7 @@ public class ParameterInfoTestGenerated extends AbstractParameterInfoTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void testAllFilesPresentInParameterInfo() throws Exception {
|
public void testAllFilesPresentInParameterInfo() throws Exception {
|
||||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/parameterInfo"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true, "withLib1/sharedLib", "withLib2/sharedLib", "withLib3/sharedLib");
|
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/parameterInfo"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true, "withLib1/sharedLib", "withLib2/sharedLib", "withLib3/sharedLib");
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("idea/testData/parameterInfo/annotations")
|
@TestMetadata("idea/testData/parameterInfo/annotations")
|
||||||
@@ -38,7 +38,7 @@ public class ParameterInfoTestGenerated extends AbstractParameterInfoTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void testAllFilesPresentInAnnotations() throws Exception {
|
public void testAllFilesPresentInAnnotations() throws Exception {
|
||||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/parameterInfo/annotations"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/parameterInfo/annotations"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("ConstructorCall.kt")
|
@TestMetadata("ConstructorCall.kt")
|
||||||
@@ -66,7 +66,7 @@ public class ParameterInfoTestGenerated extends AbstractParameterInfoTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void testAllFilesPresentInArrayAccess() throws Exception {
|
public void testAllFilesPresentInArrayAccess() throws Exception {
|
||||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/parameterInfo/arrayAccess"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/parameterInfo/arrayAccess"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("Overloads.kt")
|
@TestMetadata("Overloads.kt")
|
||||||
@@ -104,7 +104,7 @@ public class ParameterInfoTestGenerated extends AbstractParameterInfoTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void testAllFilesPresentInFunctionCall() throws Exception {
|
public void testAllFilesPresentInFunctionCall() throws Exception {
|
||||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/parameterInfo/functionCall"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/parameterInfo/functionCall"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("DefaultValuesFromLib.kt")
|
@TestMetadata("DefaultValuesFromLib.kt")
|
||||||
@@ -352,7 +352,7 @@ public class ParameterInfoTestGenerated extends AbstractParameterInfoTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void testAllFilesPresentInTypeArguments() throws Exception {
|
public void testAllFilesPresentInTypeArguments() throws Exception {
|
||||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/parameterInfo/typeArguments"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/parameterInfo/typeArguments"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("BaseClass.kt")
|
@TestMetadata("BaseClass.kt")
|
||||||
@@ -405,7 +405,7 @@ public class ParameterInfoTestGenerated extends AbstractParameterInfoTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void testAllFilesPresentInWithLib1() throws Exception {
|
public void testAllFilesPresentInWithLib1() throws Exception {
|
||||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/parameterInfo/withLib1"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true, "sharedLib");
|
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/parameterInfo/withLib1"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true, "sharedLib");
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("useJavaFromLib.kt")
|
@TestMetadata("useJavaFromLib.kt")
|
||||||
@@ -423,7 +423,7 @@ public class ParameterInfoTestGenerated extends AbstractParameterInfoTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void testAllFilesPresentInWithLib2() throws Exception {
|
public void testAllFilesPresentInWithLib2() throws Exception {
|
||||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/parameterInfo/withLib2"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true, "sharedLib");
|
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/parameterInfo/withLib2"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true, "sharedLib");
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("useJavaSAMFromLib.kt")
|
@TestMetadata("useJavaSAMFromLib.kt")
|
||||||
@@ -441,7 +441,7 @@ public class ParameterInfoTestGenerated extends AbstractParameterInfoTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void testAllFilesPresentInWithLib3() throws Exception {
|
public void testAllFilesPresentInWithLib3() throws Exception {
|
||||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/parameterInfo/withLib3"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true, "sharedLib");
|
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/parameterInfo/withLib3"), Pattern.compile("^([\\w\\-_]+)\\.kt$"), TargetBackend.ANY, true, "sharedLib");
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("useJavaSAMFromLib.kt")
|
@TestMetadata("useJavaSAMFromLib.kt")
|
||||||
|
|||||||
Reference in New Issue
Block a user