Remove KotlinSirOrigin hierarchy in favour of direct AA usage #KT-65335 Fixed
Merge-request: KT-MR-14229 Merged-by: Artem Olkov <artem.olkov@jetbrains.com>
This commit is contained in:
+72
-36
@@ -24,6 +24,78 @@ public class TypeCheckSwiftExportGoldenData extends SwiftTypeCheckBaseTest {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/swift/swift-export-standalone/testData"), Pattern.compile("^(.+)\\.swift$"), null, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("native/swift/swift-export-standalone/testData/documentation")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Documentation {
|
||||
@Test
|
||||
public void testAllFilesPresentInDocumentation() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/swift/swift-export-standalone/testData/documentation"), Pattern.compile("^(.+)\\.swift$"), null, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("native/swift/swift-export-standalone/testData/documentation/golden_result")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Golden_result {
|
||||
@Test
|
||||
public void testAllFilesPresentInGolden_result() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/swift/swift-export-standalone/testData/documentation/golden_result"), Pattern.compile("^(.+)\\.swift$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("result.swift")
|
||||
public void testResult() throws Exception {
|
||||
runTest("native/swift/swift-export-standalone/testData/documentation/golden_result/result.swift");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("native/swift/swift-export-standalone/testData/documentation/input_root")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Input_root {
|
||||
@Test
|
||||
public void testAllFilesPresentInInput_root() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/swift/swift-export-standalone/testData/documentation/input_root"), Pattern.compile("^(.+)\\.swift$"), null, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("native/swift/swift-export-standalone/testData/functions")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Functions {
|
||||
@Test
|
||||
public void testAllFilesPresentInFunctions() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/swift/swift-export-standalone/testData/functions"), Pattern.compile("^(.+)\\.swift$"), null, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("native/swift/swift-export-standalone/testData/functions/golden_result")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Golden_result {
|
||||
@Test
|
||||
public void testAllFilesPresentInGolden_result() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/swift/swift-export-standalone/testData/functions/golden_result"), Pattern.compile("^(.+)\\.swift$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("result.swift")
|
||||
public void testResult() throws Exception {
|
||||
runTest("native/swift/swift-export-standalone/testData/functions/golden_result/result.swift");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("native/swift/swift-export-standalone/testData/functions/input_root")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Input_root {
|
||||
@Test
|
||||
public void testAllFilesPresentInInput_root() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/swift/swift-export-standalone/testData/functions/input_root"), Pattern.compile("^(.+)\\.swift$"), null, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("native/swift/swift-export-standalone/testData/no_package")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@@ -60,42 +132,6 @@ public class TypeCheckSwiftExportGoldenData extends SwiftTypeCheckBaseTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("native/swift/swift-export-standalone/testData/simple")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Simple {
|
||||
@Test
|
||||
public void testAllFilesPresentInSimple() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/swift/swift-export-standalone/testData/simple"), Pattern.compile("^(.+)\\.swift$"), null, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("native/swift/swift-export-standalone/testData/simple/golden_result")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Golden_result {
|
||||
@Test
|
||||
public void testAllFilesPresentInGolden_result() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/swift/swift-export-standalone/testData/simple/golden_result"), Pattern.compile("^(.+)\\.swift$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("result.swift")
|
||||
public void testResult() throws Exception {
|
||||
runTest("native/swift/swift-export-standalone/testData/simple/golden_result/result.swift");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("native/swift/swift-export-standalone/testData/simple/input_root")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Input_root {
|
||||
@Test
|
||||
public void testAllFilesPresentInInput_root() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/swift/swift-export-standalone/testData/simple/input_root"), Pattern.compile("^(.+)\\.swift$"), null, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("native/swift/swift-export-standalone/testData/variables")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
Reference in New Issue
Block a user