[Analysis API] Support non-JVM platforms in code fragments

The 'evalJs' test is not available, as there is no proper support for
klib loading in non-standalone Analysis API yet.

^KT-64197 Fixed
This commit is contained in:
Yan Zhulanow
2023-12-22 15:49:10 +09:00
committed by Space Team
parent 75abae23d8
commit 5179462632
20 changed files with 212 additions and 23 deletions
@@ -46,6 +46,18 @@ public class FirStandaloneNormalAnalysisSourceModuleCodeFragmentCollectDiagnosti
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/analysis-api/testData/components/diagnosticsProvider/codeFragmentDiagnostics"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@Test
@TestMetadata("evalJvm.kt")
public void testEvalJvm() throws Exception {
runTest("analysis/analysis-api/testData/components/diagnosticsProvider/codeFragmentDiagnostics/evalJvm.kt");
}
@Test
@TestMetadata("evalJvmJs.kt")
public void testEvalJvmJs() throws Exception {
runTest("analysis/analysis-api/testData/components/diagnosticsProvider/codeFragmentDiagnostics/evalJvmJs.kt");
}
@Test
@TestMetadata("localClass.kt")
public void testLocalClass() throws Exception {