EA-87284 - KNPE: KotlinTestRunLineMarkerContributor.getInfo
This commit is contained in:
committed by
Ilya Gorbunov
parent
8c3fcf69f2
commit
1144a5e136
+2
-1
@@ -65,8 +65,9 @@ class KotlinTestRunLineMarkerContributor : RunLineMarkerContributor() {
|
|||||||
val lightClass = declaration.toLightClass() ?: return null
|
val lightClass = declaration.toLightClass() ?: return null
|
||||||
val framework = TestFrameworks.detectFramework(lightClass) ?: return null
|
val framework = TestFrameworks.detectFramework(lightClass) ?: return null
|
||||||
if (!framework.isTestClass(lightClass)) return null
|
if (!framework.isTestClass(lightClass)) return null
|
||||||
|
val qualifiedName = lightClass.qualifiedName ?: return null
|
||||||
|
|
||||||
"java:suite://${lightClass.qualifiedName!!}" to framework
|
"java:suite://$qualifiedName" to framework
|
||||||
}
|
}
|
||||||
|
|
||||||
is KtNamedFunction -> {
|
is KtNamedFunction -> {
|
||||||
|
|||||||
Reference in New Issue
Block a user