New source mapping

This commit is contained in:
Michael Bogdanov
2016-04-18 17:56:08 +03:00
parent cb615c557a
commit ff820bddc0
18 changed files with 575 additions and 18 deletions
@@ -1930,6 +1930,39 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
}
}
@TestMetadata("compiler/testData/codegen/boxInline/smap/newsmap")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Newsmap extends AbstractBlackBoxInlineCodegenTest {
public void testAllFilesPresentInNewsmap() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/boxInline/smap/newsmap"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("differentMapping.kt")
public void testDifferentMapping() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/smap/newsmap/differentMapping.kt");
doTest(fileName);
}
@TestMetadata("mappingInInlineFunLambda.kt")
public void testMappingInInlineFunLambda() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/smap/newsmap/mappingInInlineFunLambda.kt");
doTest(fileName);
}
@TestMetadata("mappingInSubInlineLambda.kt")
public void testMappingInSubInlineLambda() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/smap/newsmap/mappingInSubInlineLambda.kt");
doTest(fileName);
}
@TestMetadata("mappingInSubInlineLambdaSameFileInline.kt")
public void testMappingInSubInlineLambdaSameFileInline() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/smap/newsmap/mappingInSubInlineLambdaSameFileInline.kt");
doTest(fileName);
}
}
@TestMetadata("compiler/testData/codegen/boxInline/smap/resolve")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)