Add intention to expand boolean expression
#KT-38597 Fixed
This commit is contained in:
committed by
igoriakovlev
parent
f005091dfb
commit
343af60cb4
@@ -8641,6 +8641,79 @@ public class IntentionTestGenerated extends AbstractIntentionTest {
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("idea/testData/intentions/expandBooleanExpression")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ExpandBooleanExpression extends AbstractIntentionTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInExpandBooleanExpression() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/testData/intentions/expandBooleanExpression"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("binary.kt")
|
||||
public void testBinary() throws Exception {
|
||||
runTest("idea/testData/intentions/expandBooleanExpression/binary.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("call.kt")
|
||||
public void testCall() throws Exception {
|
||||
runTest("idea/testData/intentions/expandBooleanExpression/call.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constant.kt")
|
||||
public void testConstant() throws Exception {
|
||||
runTest("idea/testData/intentions/expandBooleanExpression/constant.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inArgument.kt")
|
||||
public void testInArgument() throws Exception {
|
||||
runTest("idea/testData/intentions/expandBooleanExpression/inArgument.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inParameter.kt")
|
||||
public void testInParameter() throws Exception {
|
||||
runTest("idea/testData/intentions/expandBooleanExpression/inParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inStringTemplate.kt")
|
||||
public void testInStringTemplate() throws Exception {
|
||||
runTest("idea/testData/intentions/expandBooleanExpression/inStringTemplate.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("is.kt")
|
||||
public void testIs() throws Exception {
|
||||
runTest("idea/testData/intentions/expandBooleanExpression/is.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("parenthesized.kt")
|
||||
public void testParenthesized() throws Exception {
|
||||
runTest("idea/testData/intentions/expandBooleanExpression/parenthesized.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("postfix.kt")
|
||||
public void testPostfix() throws Exception {
|
||||
runTest("idea/testData/intentions/expandBooleanExpression/postfix.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("prefix.kt")
|
||||
public void testPrefix() throws Exception {
|
||||
runTest("idea/testData/intentions/expandBooleanExpression/prefix.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("qualified.kt")
|
||||
public void testQualified() throws Exception {
|
||||
runTest("idea/testData/intentions/expandBooleanExpression/qualified.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("variable.kt")
|
||||
public void testVariable() throws Exception {
|
||||
runTest("idea/testData/intentions/expandBooleanExpression/variable.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("idea/testData/intentions/implementAbstractMember")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
Reference in New Issue
Block a user