[FIR] Add regression test for KT-44392

Also related to KT-56615
This commit is contained in:
Dmitriy Novozhilov
2023-02-13 12:45:58 +02:00
committed by Space Team
parent 197f19c627
commit 019d7db737
6 changed files with 86 additions and 0 deletions
@@ -1338,6 +1338,22 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
}
}
@Nested
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/checkers")
@TestDataPath("$PROJECT_ROOT")
public class Checkers {
@Test
public void testAllFilesPresentInCheckers() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolve/checkers"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@Test
@TestMetadata("redundantNullCheckOnAsCast.kt")
public void testRedundantNullCheckOnAsCast() throws Exception {
runTest("compiler/fir/analysis-tests/testData/resolve/checkers/redundantNullCheckOnAsCast.kt");
}
}
@Nested
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/constVal")
@TestDataPath("$PROJECT_ROOT")