Do not mark kotlin.test.Test annotated declarations as unused
So #KT-20523 Fixed
This commit is contained in:
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
package kotlin.test
|
||||
|
||||
annotation class Test
|
||||
|
||||
fun assertEquals(expected: Any, actual: Any) {}
|
||||
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
class SomeTest {
|
||||
|
||||
@Test
|
||||
fun testSomething() {
|
||||
assertEquals(4, 2 + 2)
|
||||
}
|
||||
}
|
||||
idea/testData/multiFileLocalInspections/unusedSymbol/fromKotlinTest/before/kotlin/test/KotlinTest.kt
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
package kotlin.test
|
||||
|
||||
annotation class Test
|
||||
|
||||
fun assertEquals(expected: Any, actual: Any) {}
|
||||
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
class SomeTest {
|
||||
|
||||
@Test
|
||||
fun <caret>testSomething() {
|
||||
assertEquals(4, 2 + 2)
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"inspectionClass": "org.jetbrains.kotlin.idea.inspections.UnusedSymbolInspection",
|
||||
"problem": "none",
|
||||
"mainFile": "test.kt"
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package kotlin.test
|
||||
|
||||
annotation class Test
|
||||
|
||||
fun assertEquals(expected: Any, actual: Any) {}
|
||||
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
class SomeTest {
|
||||
|
||||
@Test
|
||||
fun testSomething() {
|
||||
assertEquals(4, 2 + 2)
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package kotlin.test
|
||||
|
||||
annotation class Test
|
||||
|
||||
fun assertEquals(expected: Any, actual: Any) {}
|
||||
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
class <caret>SomeTest {
|
||||
|
||||
@Test
|
||||
fun testSomething() {
|
||||
assertEquals(4, 2 + 2)
|
||||
}
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"inspectionClass": "org.jetbrains.kotlin.idea.inspections.UnusedSymbolInspection",
|
||||
"problem": "none",
|
||||
"mainFile": "test.kt"
|
||||
}
|
||||
Reference in New Issue
Block a user