mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
test [kotlin]: IJ-CR-188375 add comment
Space-RevId: a2be4b1cd91493f2a172b20e2276242d0dcb470c GitOrigin-RevId: a23516396aa281b4ec3882a13637b1328a6da492
This commit is contained in:
committed by
intellij-monorepo-bot
parent
417f6457e3
commit
35f5419082
+9
-3
@@ -31,7 +31,9 @@ abstract class KotlinJUnit5ImplicitUsageProviderTest : JUnit5ImplicitUsageProvid
|
||||
}
|
||||
|
||||
fun `test implicit usage of parameter in parameterized test`() {
|
||||
if (pluginMode == K1) return // KotlinHighlightVisitor ignores parameter checking for EntryPoints.
|
||||
// KotlinHighlightVisitor ignores parameter checking for EntryPoints.
|
||||
// @see org.jetbrains.kotlin.checkers.KotlinHighlightVisitorCustomTest#testNoUnusedParameterWhenCustom()
|
||||
if (pluginMode == K1) return
|
||||
myFixture.testHighlighting(JvmLanguage.KOTLIN, """
|
||||
class MyTest {
|
||||
@org.junit.jupiter.params.ParameterizedTest(name = "{0}")
|
||||
@@ -41,7 +43,9 @@ abstract class KotlinJUnit5ImplicitUsageProviderTest : JUnit5ImplicitUsageProvid
|
||||
}
|
||||
|
||||
fun `test implicit usage of multiple parameters in parameterized test`() {
|
||||
if (pluginMode == K1) return // KotlinHighlightVisitor ignores parameter checking for EntryPoints.
|
||||
// KotlinHighlightVisitor ignores parameter checking for EntryPoints.
|
||||
// @see org.jetbrains.kotlin.checkers.KotlinHighlightVisitorCustomTest#testNoUnusedParameterWhenCustom()
|
||||
if (pluginMode == K1) return
|
||||
myFixture.testHighlighting(JvmLanguage.KOTLIN, """
|
||||
import org.junit.jupiter.params.provider.Arguments
|
||||
import java.util.stream.Stream
|
||||
@@ -64,7 +68,9 @@ abstract class KotlinJUnit5ImplicitUsageProviderTest : JUnit5ImplicitUsageProvid
|
||||
}
|
||||
|
||||
fun `test unused parameter when not in display name`() {
|
||||
if (pluginMode == K1) return // KotlinHighlightVisitor ignores parameter checking for EntryPoints.
|
||||
// KotlinHighlightVisitor ignores parameter checking for EntryPoints.
|
||||
// @see org.jetbrains.kotlin.checkers.KotlinHighlightVisitorCustomTest#testNoUnusedParameterWhenCustom()
|
||||
if (pluginMode == K1) return
|
||||
myFixture.testHighlighting(JvmLanguage.KOTLIN, """
|
||||
class MyTest {
|
||||
@org.junit.jupiter.params.ParameterizedTest
|
||||
|
||||
Reference in New Issue
Block a user