aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test
diff options
context:
space:
mode:
authorSzymon Świstun <sswistun@virtuslab.com>2020-03-11 15:07:56 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-03-17 16:03:36 +0100
commit7cfdd8a512adb6b8589328610efb5bd56c3c0dd7 (patch)
tree2044eac2a4b5bc860e31c11a5a6a2063fd16fbf9 /plugins/base/src/test
parent14f0d36f6ec9d192a5c46c2b8267dcb2f1d21aa1 (diff)
downloaddokka-7cfdd8a512adb6b8589328610efb5bd56c3c0dd7.tar.gz
dokka-7cfdd8a512adb6b8589328610efb5bd56c3c0dd7.tar.bz2
dokka-7cfdd8a512adb6b8589328610efb5bd56c3c0dd7.zip
Add annotations to extra properties
Diffstat (limited to 'plugins/base/src/test')
-rw-r--r--plugins/base/src/test/kotlin/model/ClassesTest.kt18
1 files changed, 16 insertions, 2 deletions
diff --git a/plugins/base/src/test/kotlin/model/ClassesTest.kt b/plugins/base/src/test/kotlin/model/ClassesTest.kt
index 2f83d8c0..166a72e3 100644
--- a/plugins/base/src/test/kotlin/model/ClassesTest.kt
+++ b/plugins/base/src/test/kotlin/model/ClassesTest.kt
@@ -402,9 +402,23 @@ class ClassesTest : AbstractModelTest("/src/main/kotlin/classes/Test.kt", "class
}
}
+ @Test fun annotatedClass() {
+ inlineModelTest(
+ """@Suppress("abc") class Foo() {}"""
+ ) {
+ with((this / "classes" / "Foo").cast<Class>()) {
+ with(extra[Annotations]?.content?.firstOrNull().assertNotNull("annotations")) {
+ dri.toString() equals "kotlin/Suppress////"
+ with(params["names"].assertNotNull("param")) {
+ this equals "[\"abc\"]"
+ }
+ }
+ }
+ }
+ }
+
// TODO annotations
-// @Test
-// fun annotatedClass() {
+// @Test fun annotatedClass() {
// verifyPackageMember("testdata/classes/annotatedClass.kt", ModelConfig(
// analysisPlatform = analysisPlatform,
// withKotlinRuntime = true