K1/K2: add test for streams situation from intellij

This commit is contained in:
Mikhail Glukhikh
2024-02-22 11:35:35 +01:00
committed by Space Team
parent 6e1b6427ab
commit 993509c057
9 changed files with 158 additions and 33 deletions
@@ -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")
@@ -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")