[FIR-TEST] Move existing contract tests to fromLibrary directory
This commit is contained in:
+24
-11
@@ -486,19 +486,32 @@ public class FirDiagnosticsWithStdlibTestGenerated extends AbstractFirDiagnostic
|
|||||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("callsInPlace.kt")
|
@TestMetadata("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromLibrary")
|
||||||
public void testCallsInPlace() throws Exception {
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/callsInPlace.kt");
|
@RunWith(JUnit3RunnerWithInners.class)
|
||||||
}
|
public static class FromLibrary extends AbstractFirDiagnosticsWithStdlibTest {
|
||||||
|
private void runTest(String testDataFilePath) throws Exception {
|
||||||
|
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("conditionalEffects.kt")
|
public void testAllFilesPresentInFromLibrary() throws Exception {
|
||||||
public void testConditionalEffects() throws Exception {
|
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromLibrary"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||||
runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/conditionalEffects.kt");
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@TestMetadata("notIsNullOrEmpty.kt")
|
@TestMetadata("callsInPlace.kt")
|
||||||
public void testNotIsNullOrEmpty() throws Exception {
|
public void testCallsInPlace() throws Exception {
|
||||||
runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/notIsNullOrEmpty.kt");
|
runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromLibrary/callsInPlace.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("conditionalEffects.kt")
|
||||||
|
public void testConditionalEffects() throws Exception {
|
||||||
|
runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromLibrary/conditionalEffects.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("notIsNullOrEmpty.kt")
|
||||||
|
public void testNotIsNullOrEmpty() throws Exception {
|
||||||
|
runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/contracts/fromLibrary/notIsNullOrEmpty.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user