aboutsummaryrefslogtreecommitdiff
path: root/test/src/TestAPI.kt
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-02-13 17:04:58 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-02-13 17:04:58 +0100
commitaa3f05136ca743eac15a9f8deb939f69cff6eb70 (patch)
treef29f96f66e4e275c809188e8633250bb9711b79a /test/src/TestAPI.kt
parent7d0e2ec29213906a9c4deb9db7f8d9131fb4c2e1 (diff)
downloaddokka-aa3f05136ca743eac15a9f8deb939f69cff6eb70.tar.gz
dokka-aa3f05136ca743eac15a9f8deb939f69cff6eb70.tar.bz2
dokka-aa3f05136ca743eac15a9f8deb939f69cff6eb70.zip
import Java type parameters into documentation model
Diffstat (limited to 'test/src/TestAPI.kt')
-rw-r--r--test/src/TestAPI.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/src/TestAPI.kt b/test/src/TestAPI.kt
index 5ba685f6..95fe655e 100644
--- a/test/src/TestAPI.kt
+++ b/test/src/TestAPI.kt
@@ -37,6 +37,13 @@ public fun verifyModel(vararg files: String, verifier: (DocumentationModule) ->
Disposer.dispose(environment)
}
+public fun verifyPackageMember(vararg files: String, verifier: (DocumentationNode) -> Unit) {
+ verifyModel(*files) { model ->
+ val pkg = model.members.single()
+ verifier(pkg.members.single())
+ }
+}
+
public fun verifyOutput(path: String, outputExtension: String, outputGenerator: (DocumentationModule, StringBuilder) -> Unit) {
verifyModel(path) {
val output = StringBuilder()