mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 09:03:31 +07:00
[groovy] move testVeryLongDfaWithComplexGenerics() from highlighting test to stress performance test
This commit is contained in:
+16
-2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2015 JetBrains s.r.o.
|
||||
* Copyright 2000-2016 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -29,18 +29,23 @@ import groovy.transform.CompileStatic
|
||||
import org.jetbrains.annotations.NotNull
|
||||
import org.jetbrains.plugins.groovy.GroovyLightProjectDescriptor
|
||||
import org.jetbrains.plugins.groovy.LightGroovyTestCase
|
||||
import org.jetbrains.plugins.groovy.codeInspection.assignment.GroovyAssignabilityCheckInspection
|
||||
import org.jetbrains.plugins.groovy.codeInspection.confusing.GrUnusedIncDecInspection
|
||||
import org.jetbrains.plugins.groovy.codeInspection.noReturnMethod.MissingReturnInspection
|
||||
import org.jetbrains.plugins.groovy.codeInspection.unusedDef.UnusedDefInspection
|
||||
import org.jetbrains.plugins.groovy.dsl.GroovyDslFileIndex
|
||||
import org.jetbrains.plugins.groovy.lang.psi.GrReferenceElement
|
||||
import org.jetbrains.plugins.groovy.lang.psi.GroovyFile
|
||||
import org.jetbrains.plugins.groovy.lang.psi.api.statements.typedef.members.GrMethod
|
||||
import org.jetbrains.plugins.groovy.lang.psi.impl.GroovyPsiManager
|
||||
import org.jetbrains.plugins.groovy.util.TestUtils
|
||||
|
||||
/**
|
||||
* @author peter
|
||||
*/
|
||||
class GroovyStressPerformanceTest extends LightGroovyTestCase {
|
||||
|
||||
final String basePath = ''
|
||||
final String basePath = TestUtils.testDataPath + 'highlighting/'
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
@@ -487,4 +492,13 @@ ${(1..classMethodCount).collect({"void foo${it}() {}"}).join("\n")}
|
||||
}).cpuBound().attempts(2).assertTiming()
|
||||
}
|
||||
|
||||
public void testVeryLongDfaWithComplexGenerics() {
|
||||
IdeaTestUtil.assertTiming("", 10000, 1, new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
myFixture.enableInspections(new GroovyAssignabilityCheckInspection(), new UnusedDefInspection(), new GrUnusedIncDecInspection());
|
||||
myFixture.testHighlighting(true, false, false, getTestName(false) + '.groovy');
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
+1
-12
@@ -15,13 +15,11 @@
|
||||
*/
|
||||
package org.jetbrains.plugins.groovy.lang.highlighting
|
||||
|
||||
import com.intellij.testFramework.IdeaTestUtil
|
||||
import com.siyeh.ig.junit.JUnitAbstractTestClassNamingConventionInspection
|
||||
import com.siyeh.ig.junit.JUnitTestClassNamingConventionInspection
|
||||
import org.jetbrains.plugins.groovy.codeInspection.assignment.GroovyAssignabilityCheckInspection
|
||||
import org.jetbrains.plugins.groovy.codeInspection.confusing.GrUnusedIncDecInspection
|
||||
import org.jetbrains.plugins.groovy.codeInspection.untypedUnresolvedAccess.GrUnresolvedAccessInspection
|
||||
import org.jetbrains.plugins.groovy.codeInspection.unusedDef.UnusedDefInspection
|
||||
|
||||
/**
|
||||
* @author peter
|
||||
*/
|
||||
@@ -184,15 +182,6 @@ class A {
|
||||
|
||||
public void testSOEInFieldDeclarations() { doTest(); }
|
||||
|
||||
public void testVeryLongDfaWithComplexGenerics() {
|
||||
IdeaTestUtil.assertTiming("", 10000, 1, new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
doTest(new GroovyAssignabilityCheckInspection(), new UnusedDefInspection(), new GrUnusedIncDecInspection());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void testWrongAnnotation() { doTest(); }
|
||||
|
||||
public void testAmbiguousMethods() {
|
||||
|
||||
Reference in New Issue
Block a user