mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[kotlin] test navigation: isPotentialTestClass should return true under test root only
^KTIJ-31722 fixed GitOrigin-RevId: 5fd47d86c90f3dc6acec03ac30338f93bb36b182
This commit is contained in:
committed by
intellij-monorepo-bot
parent
1893040bf2
commit
e757903e8c
@@ -54,4 +54,8 @@ class <lineMarker descr="Run Test">Go</lineMarker> {
|
||||
private class <lineMarker descr="Run Test">Simple</lineMarker> {
|
||||
@Test
|
||||
fun <lineMarker descr="Run Test">foo</lineMarker>() {}
|
||||
}
|
||||
|
||||
class NoTestInside {
|
||||
fun foo() {}
|
||||
}
|
||||
+2
-2
@@ -77,8 +77,8 @@ class KotlinJUnit5Framework: JUnit5Framework(), KotlinPsiBasedTestFramework {
|
||||
}
|
||||
|
||||
private fun checkIsJUnit5LikeTestClass(declaration: KtClassOrObject, isPotential: Boolean): ThreeState =
|
||||
if (isPotential && isUnderTestSources(declaration)) {
|
||||
UNSURE
|
||||
if (isPotential) {
|
||||
if (isUnderTestSources(declaration)) UNSURE else NO
|
||||
} else if (!isFrameworkAvailable(declaration)) {
|
||||
NO
|
||||
} else if (declaration is KtClass && declaration.isInner()) {
|
||||
|
||||
Reference in New Issue
Block a user