[FIR-TEST] Add fir diagnostics test based on diagnostics tests from old frontend

This commit is contained in:
Dmitriy Novozhilov
2019-12-11 16:15:13 +03:00
parent e7f8c8e155
commit e9c02a1cca
16 changed files with 3962 additions and 1140 deletions
@@ -131,8 +131,13 @@ public abstract class KotlinMultiFileTestWithJava<M, F> extends KtUsefulTestCase
return false;
}
@NotNull
protected File createTestFileFromPath(@NotNull String filePath) {
return new File(filePath);
}
protected void doTest(String filePath) throws Exception {
File file = new File(filePath);
File file = createTestFileFromPath(filePath);
String expectedText = KotlinTestUtils.doLoadFile(file);
if (InTextDirectivesUtils.isDirectiveDefined(expectedText, "// SKIP_JAVAC")) return;