[Test] Add test for KT-58754

This commit is contained in:
Dmitriy Novozhilov
2023-06-19 12:05:23 +03:00
committed by Space Team
parent 5717b59f52
commit 8a1372e21c
7 changed files with 154 additions and 0 deletions
@@ -39149,6 +39149,22 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/testsWithStdLib/delegateInference")
@TestDataPath("$PROJECT_ROOT")
public class DelegateInference {
@Test
public void testAllFilesPresentInDelegateInference() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithStdLib/delegateInference"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
}
@Test
@TestMetadata("ifWithCallableReferenceInLazy.kt")
public void testIfWithCallableReferenceInLazy() throws Exception {
runTest("compiler/testData/diagnostics/testsWithStdLib/delegateInference/ifWithCallableReferenceInLazy.kt");
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/testsWithStdLib/deprecated")
@TestDataPath("$PROJECT_ROOT")
@@ -39149,6 +39149,22 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/testsWithStdLib/delegateInference")
@TestDataPath("$PROJECT_ROOT")
public class DelegateInference {
@Test
public void testAllFilesPresentInDelegateInference() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithStdLib/delegateInference"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
}
@Test
@TestMetadata("ifWithCallableReferenceInLazy.kt")
public void testIfWithCallableReferenceInLazy() throws Exception {
runTest("compiler/testData/diagnostics/testsWithStdLib/delegateInference/ifWithCallableReferenceInLazy.kt");
}
}
@Nested
@TestMetadata("compiler/testData/diagnostics/testsWithStdLib/deprecated")
@TestDataPath("$PROJECT_ROOT")