Inline iterator test

This commit is contained in:
Michael Bogdanov
2015-03-13 14:39:35 +03:00
parent 596c5b8d41
commit 0999cd99e3
6 changed files with 105 additions and 0 deletions
@@ -742,6 +742,7 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
@TestDataPath("$PROJECT_ROOT")
@InnerTestClasses({
Smap.Anonymous.class,
Smap.Resolve.class,
})
@RunWith(JUnit3RunnerWithInners.class)
public static class Smap extends AbstractBlackBoxInlineCodegenTest {
@@ -823,6 +824,27 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
doTestMultiFileWithInlineCheck(fileName);
}
}
@TestMetadata("compiler/testData/codegen/boxInline/smap/resolve")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Resolve extends AbstractBlackBoxInlineCodegenTest {
public void testAllFilesPresentInResolve() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/resolve"), Pattern.compile("^(.+)\\.1.kt$"), true);
}
@TestMetadata("inlineComponent.1.kt")
public void testInlineComponent() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/smap/resolve/inlineComponent.1.kt");
doTestMultiFileWithInlineCheck(fileName);
}
@TestMetadata("inlineIterator.1.kt")
public void testInlineIterator() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/smap/resolve/inlineIterator.1.kt");
doTestMultiFileWithInlineCheck(fileName);
}
}
}
@TestMetadata("compiler/testData/codegen/boxInline/special")
@@ -742,6 +742,7 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
@TestDataPath("$PROJECT_ROOT")
@InnerTestClasses({
Smap.Anonymous.class,
Smap.Resolve.class,
})
@RunWith(JUnit3RunnerWithInners.class)
public static class Smap extends AbstractCompileKotlinAgainstInlineKotlinTest {
@@ -823,6 +824,27 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
doBoxTestWithInlineCheck(fileName);
}
}
@TestMetadata("compiler/testData/codegen/boxInline/smap/resolve")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Resolve extends AbstractCompileKotlinAgainstInlineKotlinTest {
public void testAllFilesPresentInResolve() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/resolve"), Pattern.compile("^(.+)\\.1.kt$"), true);
}
@TestMetadata("inlineComponent.1.kt")
public void testInlineComponent() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/smap/resolve/inlineComponent.1.kt");
doBoxTestWithInlineCheck(fileName);
}
@TestMetadata("inlineIterator.1.kt")
public void testInlineIterator() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/smap/resolve/inlineIterator.1.kt");
doBoxTestWithInlineCheck(fileName);
}
}
}
@TestMetadata("compiler/testData/codegen/boxInline/special")