1616@ TestMetadata ("src/testData/codegen" )
1717@ TestDataPath ("$PROJECT_ROOT" )
1818public class FirLightTreeCodegenTestGenerated extends AbstractFirLightTreeCodegenTest {
19+ private void run (String fileName ) {
20+ runTest ("src/testData/codegen/" + fileName );
21+ }
22+
1923 @ Test
2024 public void testAllFilesPresentInCodegen () {
2125 KtTestUtil .assertAllTestsPresentByMetadataWithExcluded (this .getClass (), new File ("src/testData/codegen" ), Pattern .compile ("^(.+)\\ .kt$" ), Pattern .compile ("^(.+)\\ .fir\\ .kt$" ), true );
@@ -24,37 +28,41 @@ public void testAllFilesPresentInCodegen() {
2428 @ Test
2529 @ TestMetadata ("annotations.kt" )
2630 public void testAnnotations () {
27- runTest ( "src/testData/codegen/ annotations.kt" );
31+ run ( " annotations.kt" );
2832 }
2933
3034 @ Test
3135 @ TestMetadata ("coroutinescope.kt" )
3236 public void testCoroutinescope () {
33- runTest ( "src/testData/codegen/ coroutinescope.kt" );
37+ run ( " coroutinescope.kt" );
3438 }
3539
3640 @ Test
3741 @ TestMetadata ("functions.kt" )
3842 public void testFunctions () {
39- runTest ( "src/testData/codegen/ functions.kt" );
43+ run ( " functions.kt" );
4044 }
4145
4246 @ Test
4347 @ TestMetadata ("properties.kt" )
4448 public void testProperties () {
45- runTest ( "src/testData/codegen/ properties.kt" );
49+ run ( " properties.kt" );
4650 }
4751
4852 @ Test
4953 @ TestMetadata ("viewmodelscope.kt" )
5054 public void testViewmodelscope () {
51- runTest ( "src/testData/codegen/ viewmodelscope.kt" );
55+ run ( " viewmodelscope.kt" );
5256 }
5357
5458 @ Nested
5559 @ TestMetadata ("src/testData/codegen/swift1" )
5660 @ TestDataPath ("$PROJECT_ROOT" )
5761 public class Swift1 {
62+ private void run (String fileName ) {
63+ runTest ("src/testData/codegen/swift1/" + fileName );
64+ }
65+
5866 @ Test
5967 public void testAllFilesPresentInSwift1 () {
6068 KtTestUtil .assertAllTestsPresentByMetadataWithExcluded (this .getClass (), new File ("src/testData/codegen/swift1" ), Pattern .compile ("^(.+)\\ .kt$" ), Pattern .compile ("^(.+)\\ .fir\\ .kt$" ), true );
@@ -63,38 +71,42 @@ public void testAllFilesPresentInSwift1() {
6371 @ Test
6472 @ TestMetadata ("annotations.kt" )
6573 public void testAnnotations () {
66- runTest ( "src/testData/codegen/swift1/ annotations.kt" );
74+ run ( " annotations.kt" );
6775 }
6876
6977 @ Test
7078 @ TestMetadata ("coroutinescope.kt" )
7179 public void testCoroutinescope () {
72- runTest ( "src/testData/codegen/swift1/ coroutinescope.kt" );
80+ run ( " coroutinescope.kt" );
7381 }
7482
7583 @ Test
7684 @ TestMetadata ("functions.kt" )
7785 public void testFunctions () {
78- runTest ( "src/testData/codegen/swift1/ functions.kt" );
86+ run ( " functions.kt" );
7987 }
8088
8189 @ Test
8290 @ TestMetadata ("properties.kt" )
8391 public void testProperties () {
84- runTest ( "src/testData/codegen/swift1/ properties.kt" );
92+ run ( " properties.kt" );
8593 }
8694
8795 @ Test
8896 @ TestMetadata ("viewmodelscope.kt" )
8997 public void testViewmodelscope () {
90- runTest ( "src/testData/codegen/swift1/ viewmodelscope.kt" );
98+ run ( " viewmodelscope.kt" );
9199 }
92100 }
93101
94102 @ Nested
95103 @ TestMetadata ("src/testData/codegen/swift3" )
96104 @ TestDataPath ("$PROJECT_ROOT" )
97105 public class Swift3 {
106+ private void run (String fileName ) {
107+ runTest ("src/testData/codegen/swift3/" + fileName );
108+ }
109+
98110 @ Test
99111 public void testAllFilesPresentInSwift3 () {
100112 KtTestUtil .assertAllTestsPresentByMetadataWithExcluded (this .getClass (), new File ("src/testData/codegen/swift3" ), Pattern .compile ("^(.+)\\ .kt$" ), Pattern .compile ("^(.+)\\ .fir\\ .kt$" ), true );
@@ -103,38 +115,42 @@ public void testAllFilesPresentInSwift3() {
103115 @ Test
104116 @ TestMetadata ("annotations.kt" )
105117 public void testAnnotations () {
106- runTest ( "src/testData/codegen/swift3/ annotations.kt" );
118+ run ( " annotations.kt" );
107119 }
108120
109121 @ Test
110122 @ TestMetadata ("coroutinescope.kt" )
111123 public void testCoroutinescope () {
112- runTest ( "src/testData/codegen/swift3/ coroutinescope.kt" );
124+ run ( " coroutinescope.kt" );
113125 }
114126
115127 @ Test
116128 @ TestMetadata ("functions.kt" )
117129 public void testFunctions () {
118- runTest ( "src/testData/codegen/swift3/ functions.kt" );
130+ run ( " functions.kt" );
119131 }
120132
121133 @ Test
122134 @ TestMetadata ("properties.kt" )
123135 public void testProperties () {
124- runTest ( "src/testData/codegen/swift3/ properties.kt" );
136+ run ( " properties.kt" );
125137 }
126138
127139 @ Test
128140 @ TestMetadata ("viewmodelscope.kt" )
129141 public void testViewmodelscope () {
130- runTest ( "src/testData/codegen/swift3/ viewmodelscope.kt" );
142+ run ( " viewmodelscope.kt" );
131143 }
132144 }
133145
134146 @ Nested
135147 @ TestMetadata ("src/testData/codegen/swift5" )
136148 @ TestDataPath ("$PROJECT_ROOT" )
137149 public class Swift5 {
150+ private void run (String fileName ) {
151+ runTest ("src/testData/codegen/swift5/" + fileName );
152+ }
153+
138154 @ Test
139155 public void testAllFilesPresentInSwift5 () {
140156 KtTestUtil .assertAllTestsPresentByMetadataWithExcluded (this .getClass (), new File ("src/testData/codegen/swift5" ), Pattern .compile ("^(.+)\\ .kt$" ), Pattern .compile ("^(.+)\\ .fir\\ .kt$" ), true );
@@ -143,31 +159,31 @@ public void testAllFilesPresentInSwift5() {
143159 @ Test
144160 @ TestMetadata ("annotations.kt" )
145161 public void testAnnotations () {
146- runTest ( "src/testData/codegen/swift5/ annotations.kt" );
162+ run ( " annotations.kt" );
147163 }
148164
149165 @ Test
150166 @ TestMetadata ("coroutinescope.kt" )
151167 public void testCoroutinescope () {
152- runTest ( "src/testData/codegen/swift5/ coroutinescope.kt" );
168+ run ( " coroutinescope.kt" );
153169 }
154170
155171 @ Test
156172 @ TestMetadata ("functions.kt" )
157173 public void testFunctions () {
158- runTest ( "src/testData/codegen/swift5/ functions.kt" );
174+ run ( " functions.kt" );
159175 }
160176
161177 @ Test
162178 @ TestMetadata ("properties.kt" )
163179 public void testProperties () {
164- runTest ( "src/testData/codegen/swift5/ properties.kt" );
180+ run ( " properties.kt" );
165181 }
166182
167183 @ Test
168184 @ TestMetadata ("viewmodelscope.kt" )
169185 public void testViewmodelscope () {
170- runTest ( "src/testData/codegen/swift5/ viewmodelscope.kt" );
186+ run ( " viewmodelscope.kt" );
171187 }
172188 }
173189}
0 commit comments