K1/K2: add test for streams situation from intellij
This commit is contained in:
committed by
Space Team
parent
6e1b6427ab
commit
993509c057
+22
-6
@@ -42435,12 +42435,6 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/shadowingInDestructuring.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("streams.kt")
|
||||
public void testStreams() {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/streams.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithStdLib/annotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@@ -47057,6 +47051,28 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithStdLib/streams")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Streams {
|
||||
@Test
|
||||
public void testAllFilesPresentInStreams() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithStdLib/streams"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("basic.kt")
|
||||
public void testBasic() {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/streams/basic.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("wrongNullability.kt")
|
||||
public void testWrongNullability() {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/streams/wrongNullability.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithStdLib/targetedBuiltIns")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+22
-6
@@ -42435,12 +42435,6 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/shadowingInDestructuring.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("streams.kt")
|
||||
public void testStreams() {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/streams.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithStdLib/annotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@@ -47057,6 +47051,28 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithStdLib/streams")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Streams {
|
||||
@Test
|
||||
public void testAllFilesPresentInStreams() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithStdLib/streams"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("basic.kt")
|
||||
public void testBasic() {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/streams/basic.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("wrongNullability.kt")
|
||||
public void testWrongNullability() {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/streams/wrongNullability.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithStdLib/targetedBuiltIns")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
Reference in New Issue
Block a user