From aa3f05136ca743eac15a9f8deb939f69cff6eb70 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Fri, 13 Feb 2015 17:04:58 +0100 Subject: import Java type parameters into documentation model --- test/src/TestAPI.kt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/src/TestAPI.kt') 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() -- cgit