[K/N] Tests for volatile

^KT-54944
This commit is contained in:
Pavel Kunyavskiy
2022-11-30 18:28:47 +01:00
committed by Space Team
parent a11f6fd9cb
commit fc95b88eef
22 changed files with 1029 additions and 0 deletions
@@ -36336,6 +36336,70 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/volatile")
@TestDataPath("$PROJECT_ROOT")
public class Volatile {
@Test
public void testAllFilesPresentInVolatile() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/volatile"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
}
@Test
@TestMetadata("volatileBool.kt")
public void testVolatileBool() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileBool.kt");
}
@Test
@TestMetadata("volatileByte.kt")
public void testVolatileByte() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileByte.kt");
}
@Test
@TestMetadata("volatileDouble.kt")
public void testVolatileDouble() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileDouble.kt");
}
@Test
@TestMetadata("volatileFloat.kt")
public void testVolatileFloat() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileFloat.kt");
}
@Test
@TestMetadata("volatileGeneric.kt")
public void testVolatileGeneric() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileGeneric.kt");
}
@Test
@TestMetadata("volatileInt.kt")
public void testVolatileInt() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileInt.kt");
}
@Test
@TestMetadata("volatileLong.kt")
public void testVolatileLong() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileLong.kt");
}
@Test
@TestMetadata("volatileShort.kt")
public void testVolatileShort() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileShort.kt");
}
@Test
@TestMetadata("volatileString.kt")
public void testVolatileString() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileString.kt");
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/when")
@TestDataPath("$PROJECT_ROOT")
@@ -36516,6 +36516,70 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/volatile")
@TestDataPath("$PROJECT_ROOT")
public class Volatile {
@Test
public void testAllFilesPresentInVolatile() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/volatile"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("volatileBool.kt")
public void testVolatileBool() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileBool.kt");
}
@Test
@TestMetadata("volatileByte.kt")
public void testVolatileByte() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileByte.kt");
}
@Test
@TestMetadata("volatileDouble.kt")
public void testVolatileDouble() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileDouble.kt");
}
@Test
@TestMetadata("volatileFloat.kt")
public void testVolatileFloat() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileFloat.kt");
}
@Test
@TestMetadata("volatileGeneric.kt")
public void testVolatileGeneric() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileGeneric.kt");
}
@Test
@TestMetadata("volatileInt.kt")
public void testVolatileInt() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileInt.kt");
}
@Test
@TestMetadata("volatileLong.kt")
public void testVolatileLong() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileLong.kt");
}
@Test
@TestMetadata("volatileShort.kt")
public void testVolatileShort() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileShort.kt");
}
@Test
@TestMetadata("volatileString.kt")
public void testVolatileString() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileString.kt");
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/when")
@TestDataPath("$PROJECT_ROOT")
@@ -36516,6 +36516,70 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/volatile")
@TestDataPath("$PROJECT_ROOT")
public class Volatile {
@Test
public void testAllFilesPresentInVolatile() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/volatile"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("volatileBool.kt")
public void testVolatileBool() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileBool.kt");
}
@Test
@TestMetadata("volatileByte.kt")
public void testVolatileByte() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileByte.kt");
}
@Test
@TestMetadata("volatileDouble.kt")
public void testVolatileDouble() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileDouble.kt");
}
@Test
@TestMetadata("volatileFloat.kt")
public void testVolatileFloat() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileFloat.kt");
}
@Test
@TestMetadata("volatileGeneric.kt")
public void testVolatileGeneric() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileGeneric.kt");
}
@Test
@TestMetadata("volatileInt.kt")
public void testVolatileInt() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileInt.kt");
}
@Test
@TestMetadata("volatileLong.kt")
public void testVolatileLong() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileLong.kt");
}
@Test
@TestMetadata("volatileShort.kt")
public void testVolatileShort() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileShort.kt");
}
@Test
@TestMetadata("volatileString.kt")
public void testVolatileString() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileString.kt");
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/when")
@TestDataPath("$PROJECT_ROOT")
@@ -32701,6 +32701,64 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
}
}
@TestMetadata("compiler/testData/codegen/box/volatile")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Volatile extends AbstractIrCodegenBoxWasmTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest0(this::doTest, TargetBackend.WASM, testDataFilePath);
}
public void testAllFilesPresentInVolatile() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/volatile"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
}
@TestMetadata("volatileBool.kt")
public void testVolatileBool() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileBool.kt");
}
@TestMetadata("volatileByte.kt")
public void testVolatileByte() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileByte.kt");
}
@TestMetadata("volatileDouble.kt")
public void testVolatileDouble() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileDouble.kt");
}
@TestMetadata("volatileFloat.kt")
public void testVolatileFloat() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileFloat.kt");
}
@TestMetadata("volatileGeneric.kt")
public void testVolatileGeneric() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileGeneric.kt");
}
@TestMetadata("volatileInt.kt")
public void testVolatileInt() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileInt.kt");
}
@TestMetadata("volatileLong.kt")
public void testVolatileLong() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileLong.kt");
}
@TestMetadata("volatileShort.kt")
public void testVolatileShort() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileShort.kt");
}
@TestMetadata("volatileString.kt")
public void testVolatileString() throws Exception {
runTest("compiler/testData/codegen/box/volatile/volatileString.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/when")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)