[IR] Drop ir.ir2cfg module
#KTI-952 Fixed #KT-65773 Related
This commit is contained in:
committed by
Space Team
parent
6fb6f04509
commit
cbabfc0fe2
@@ -1,127 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2024 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.ir;
|
||||
|
||||
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.test.generators.GenerateCompilerTestsKt}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/ir/irCfg")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class IrCfgTestCaseGenerated extends AbstractIrCfgTestCase {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInIrCfg() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irCfg"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("expressionFun.kt")
|
||||
public void testExpressionFun() {
|
||||
runTest("compiler/testData/ir/irCfg/expressionFun.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expressionUnit.kt")
|
||||
public void testExpressionUnit() {
|
||||
runTest("compiler/testData/ir/irCfg/expressionUnit.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("returnUnit.kt")
|
||||
public void testReturnUnit() {
|
||||
runTest("compiler/testData/ir/irCfg/returnUnit.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("sequentialFun.kt")
|
||||
public void testSequentialFun() {
|
||||
runTest("compiler/testData/ir/irCfg/sequentialFun.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleFun.kt")
|
||||
public void testSimpleFun() {
|
||||
runTest("compiler/testData/ir/irCfg/simpleFun.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleReturn.kt")
|
||||
public void testSimpleReturn() {
|
||||
runTest("compiler/testData/ir/irCfg/simpleReturn.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/ir/irCfg/loop")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Loop extends AbstractIrCfgTestCase {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInLoop() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irCfg/loop"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("digitCount.kt")
|
||||
public void testDigitCount() {
|
||||
runTest("compiler/testData/ir/irCfg/loop/digitCount.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("factorial.kt")
|
||||
public void testFactorial() {
|
||||
runTest("compiler/testData/ir/irCfg/loop/factorial.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("isPerfect.kt")
|
||||
public void testIsPerfect() {
|
||||
runTest("compiler/testData/ir/irCfg/loop/isPerfect.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/ir/irCfg/when")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class When extends AbstractIrCfgTestCase {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInWhen() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irCfg/when"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("cascadeIf.kt")
|
||||
public void testCascadeIf() {
|
||||
runTest("compiler/testData/ir/irCfg/when/cascadeIf.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("emptyWhen.kt")
|
||||
public void testEmptyWhen() {
|
||||
runTest("compiler/testData/ir/irCfg/when/emptyWhen.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expressionIf.kt")
|
||||
public void testExpressionIf() {
|
||||
runTest("compiler/testData/ir/irCfg/when/expressionIf.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ifChain.kt")
|
||||
public void testIfChain() {
|
||||
runTest("compiler/testData/ir/irCfg/when/ifChain.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("whenReturn.kt")
|
||||
public void testWhenReturn() {
|
||||
runTest("compiler/testData/ir/irCfg/when/whenReturn.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user