diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-13 17:04:58 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-13 17:04:58 +0100 |
commit | aa3f05136ca743eac15a9f8deb939f69cff6eb70 (patch) | |
tree | f29f96f66e4e275c809188e8633250bb9711b79a /test/src/TestAPI.kt | |
parent | 7d0e2ec29213906a9c4deb9db7f8d9131fb4c2e1 (diff) | |
download | dokka-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.kt | 7 |
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() |