Do not mark kotlin.test.Test annotated declarations as unused

So #KT-20523 Fixed
This commit is contained in:
Mikhail Glukhikh
2018-06-25 15:31:16 +03:00
parent 7e0e7dc983
commit 30327aa9cc
12 changed files with 92 additions and 0 deletions
@@ -0,0 +1,6 @@
package kotlin.test
annotation class Test
fun assertEquals(expected: Any, actual: Any) {}
@@ -0,0 +1,10 @@
import kotlin.test.Test
import kotlin.test.assertEquals
class SomeTest {
@Test
fun testSomething() {
assertEquals(4, 2 + 2)
}
}
@@ -0,0 +1,6 @@
package kotlin.test
annotation class Test
fun assertEquals(expected: Any, actual: Any) {}
@@ -0,0 +1,10 @@
import kotlin.test.Test
import kotlin.test.assertEquals
class SomeTest {
@Test
fun <caret>testSomething() {
assertEquals(4, 2 + 2)
}
}
@@ -0,0 +1,5 @@
{
"inspectionClass": "org.jetbrains.kotlin.idea.inspections.UnusedSymbolInspection",
"problem": "none",
"mainFile": "test.kt"
}
@@ -0,0 +1,6 @@
package kotlin.test
annotation class Test
fun assertEquals(expected: Any, actual: Any) {}
@@ -0,0 +1,10 @@
import kotlin.test.Test
import kotlin.test.assertEquals
class SomeTest {
@Test
fun testSomething() {
assertEquals(4, 2 + 2)
}
}
@@ -0,0 +1,6 @@
package kotlin.test
annotation class Test
fun assertEquals(expected: Any, actual: Any) {}
@@ -0,0 +1,10 @@
import kotlin.test.Test
import kotlin.test.assertEquals
class <caret>SomeTest {
@Test
fun testSomething() {
assertEquals(4, 2 + 2)
}
}
@@ -0,0 +1,5 @@
{
"inspectionClass": "org.jetbrains.kotlin.idea.inspections.UnusedSymbolInspection",
"problem": "none",
"mainFile": "test.kt"
}