[Test] Delete obsolete descriptor renderer tests

This commit is contained in:
Dmitriy Novozhilov
2021-07-02 16:43:22 +03:00
parent eb94575c69
commit 11dfbd41ac
25 changed files with 0 additions and 879 deletions
@@ -1,101 +0,0 @@
/*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.renderer;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.util.KtTestUtil;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;
import java.io.File;
import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@TestMetadata("compiler/testData/renderer")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class DescriptorRendererTestGenerated extends AbstractDescriptorRendererTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInRenderer() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/renderer"), Pattern.compile("^(.+)\\.kt$"), null, true);
}
@TestMetadata("Classes.kt")
public void testClasses() throws Exception {
runTest("compiler/testData/renderer/Classes.kt");
}
@TestMetadata("Enum.kt")
public void testEnum() throws Exception {
runTest("compiler/testData/renderer/Enum.kt");
}
@TestMetadata("ErrorType.kt")
public void testErrorType() throws Exception {
runTest("compiler/testData/renderer/ErrorType.kt");
}
@TestMetadata("FunctionTypes.kt")
public void testFunctionTypes() throws Exception {
runTest("compiler/testData/renderer/FunctionTypes.kt");
}
@TestMetadata("FunctionTypesInSignature.kt")
public void testFunctionTypesInSignature() throws Exception {
runTest("compiler/testData/renderer/FunctionTypesInSignature.kt");
}
@TestMetadata("GlobalFunctions.kt")
public void testGlobalFunctions() throws Exception {
runTest("compiler/testData/renderer/GlobalFunctions.kt");
}
@TestMetadata("GlobalProperties.kt")
public void testGlobalProperties() throws Exception {
runTest("compiler/testData/renderer/GlobalProperties.kt");
}
@TestMetadata("InheritedMembersVisibility.kt")
public void testInheritedMembersVisibility() throws Exception {
runTest("compiler/testData/renderer/InheritedMembersVisibility.kt");
}
@TestMetadata("KeywordsInNames.kt")
public void testKeywordsInNames() throws Exception {
runTest("compiler/testData/renderer/KeywordsInNames.kt");
}
@TestMetadata("ObjectWithConstructor.kt")
public void testObjectWithConstructor() throws Exception {
runTest("compiler/testData/renderer/ObjectWithConstructor.kt");
}
@TestMetadata("StarProjection.kt")
public void testStarProjection() throws Exception {
runTest("compiler/testData/renderer/StarProjection.kt");
}
@TestMetadata("TraitWithConstructor.kt")
public void testTraitWithConstructor() throws Exception {
runTest("compiler/testData/renderer/TraitWithConstructor.kt");
}
@TestMetadata("TypeAnnotations.kt")
public void testTypeAnnotations() throws Exception {
runTest("compiler/testData/renderer/TypeAnnotations.kt");
}
@TestMetadata("UnitType.kt")
public void testUnitType() throws Exception {
runTest("compiler/testData/renderer/UnitType.kt");
}
}
@@ -1,61 +0,0 @@
/*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.renderer;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.util.KtTestUtil;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;
import java.io.File;
import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@TestMetadata("compiler/testData/renderFunctionDescriptorInExpression")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class FunctionDescriptorInExpressionRendererTestGenerated extends AbstractFunctionDescriptorInExpressionRendererTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
public void testAllFilesPresentInRenderFunctionDescriptorInExpression() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/renderFunctionDescriptorInExpression"), Pattern.compile("^(.+)\\.kt$"), null, true);
}
@TestMetadata("basicFunExpr.kt")
public void testBasicFunExpr() throws Exception {
runTest("compiler/testData/renderFunctionDescriptorInExpression/basicFunExpr.kt");
}
@TestMetadata("basicFunExprArgs.kt")
public void testBasicFunExprArgs() throws Exception {
runTest("compiler/testData/renderFunctionDescriptorInExpression/basicFunExprArgs.kt");
}
@TestMetadata("basicLambda.kt")
public void testBasicLambda() throws Exception {
runTest("compiler/testData/renderFunctionDescriptorInExpression/basicLambda.kt");
}
@TestMetadata("labeledLambda.kt")
public void testLabeledLambda() throws Exception {
runTest("compiler/testData/renderFunctionDescriptorInExpression/labeledLambda.kt");
}
@TestMetadata("parenthesizedFunExpr.kt")
public void testParenthesizedFunExpr() throws Exception {
runTest("compiler/testData/renderFunctionDescriptorInExpression/parenthesizedFunExpr.kt");
}
@TestMetadata("parenthesizedLambda.kt")
public void testParenthesizedLambda() throws Exception {
runTest("compiler/testData/renderFunctionDescriptorInExpression/parenthesizedLambda.kt");
}
}