Tests: add some test cases for inheritor search

Refactor inheritor search tests to be generated
This commit is contained in:
Pavel V. Talanov
2017-04-28 17:34:11 +03:00
parent 178e59a6e8
commit 7ef18fe5ba
12 changed files with 145 additions and 23 deletions
+6
View File
@@ -0,0 +1,6 @@
package a.b
annotation class Anno
// CLASS: java.lang.annotation.Annotation
// SEARCH: class:Anno
+11
View File
@@ -0,0 +1,11 @@
enum class A {
E;
}
// CLASS: java.lang.Enum
// SEARCH: class:A
// IGNORE_CLASSES: java.
// IGNORE_CLASSES: javax.
// IGNORE_CLASSES: sun.
// IGNORE_CLASSES: org.
+12
View File
@@ -0,0 +1,12 @@
package a.b
interface I: J {
}
interface J {
}
// CLASS: a.b.J
// SEARCH: class:I
+7
View File
@@ -0,0 +1,7 @@
object A : B()
open class B {
}
// CLASS: B
// SEARCH: class:A
+9
View File
@@ -0,0 +1,9 @@
class A
// CLASS: java.lang.Object
// SEARCH: class:A
// IGNORE_CLASSES: java.
// IGNORE_CLASSES: javax.
// IGNORE_CLASSES: sun.
// IGNORE_CLASSES: org.