[FIR] Add test for KT-55286

This commit is contained in:
Dmitriy Novozhilov
2022-12-06 10:48:02 +02:00
committed by Space Team
parent a86bc425e5
commit 2aad466d00
6 changed files with 111 additions and 0 deletions
@@ -674,6 +674,22 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
runTest("compiler/fir/analysis-tests/testData/resolve/whenWithWhenAsStatement.kt");
}
@Nested
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/annotations")
@TestDataPath("$PROJECT_ROOT")
public class Annotations {
@Test
public void testAllFilesPresentInAnnotations() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/annotations"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@Test
@TestMetadata("kt55286.kt")
public void testKt55286() throws Exception {
runTest("compiler/fir/analysis-tests/testData/resolve/annotations/kt55286.kt");
}
}
@Nested
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/arguments")
@TestDataPath("$PROJECT_ROOT")