diff options
-rw-r--r-- | test/src/PackageTest.kt | 6 | ||||
-rw-r--r-- | test/src/TestAPI.kt | 2 | ||||
-rw-r--r-- | test/src/TopLevelFunctionTest.kt | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/test/src/PackageTest.kt b/test/src/PackageTest.kt index 411ea300..46e25c9f 100644 --- a/test/src/PackageTest.kt +++ b/test/src/PackageTest.kt @@ -6,7 +6,7 @@ import com.jetbrains.dokka.* public class PackageTest { Test fun rootPackage() { - verifyFiles("test/data/packages/rootPackage.kt") { model -> + verifyModel("test/data/packages/rootPackage.kt") { model -> val item = model.nodes.single() assertEquals(DocumentationNodeKind.Package, item.kind) assertEquals("", item.name) @@ -18,7 +18,7 @@ public class PackageTest { } Test fun simpleNamePackage() { - verifyFiles("test/data/packages/simpleNamePackage.kt") { model -> + verifyModel("test/data/packages/simpleNamePackage.kt") { model -> val item = model.nodes.single() assertEquals(DocumentationNodeKind.Package, item.kind) assertEquals("simple", item.name) @@ -30,7 +30,7 @@ public class PackageTest { } Test fun dottedNamePackage() { - verifyFiles("test/data/packages/dottedNamePackage.kt") { model -> + verifyModel("test/data/packages/dottedNamePackage.kt") { model -> val item = model.nodes.single() assertEquals(DocumentationNodeKind.Package, item.kind) assertEquals("dot.name", item.name) diff --git a/test/src/TestAPI.kt b/test/src/TestAPI.kt index 80dc47d5..6a385972 100644 --- a/test/src/TestAPI.kt +++ b/test/src/TestAPI.kt @@ -5,7 +5,7 @@ import com.intellij.openapi.util.* import com.jetbrains.dokka.* import kotlin.test.fail -public fun verifyFiles(vararg files: String, verifier: (DocumentationModel) -> Unit) { +public fun verifyModel(vararg files: String, verifier: (DocumentationModel) -> Unit) { val messageCollector = object : MessageCollector { override fun report(severity: CompilerMessageSeverity, message: String, location: CompilerMessageLocation) { when (severity) { diff --git a/test/src/TopLevelFunctionTest.kt b/test/src/TopLevelFunctionTest.kt index 02150784..342708f2 100644 --- a/test/src/TopLevelFunctionTest.kt +++ b/test/src/TopLevelFunctionTest.kt @@ -7,7 +7,7 @@ import com.jetbrains.dokka.* public class TopLevelFunctionTest { Test fun function() { - verifyFiles("test/data/functions/function.kt") { model -> + verifyModel("test/data/functions/function.kt") { model -> val item = model.nodes.single().members.single() assertEquals(DocumentationNodeKind.Function, item.kind) assertEquals("fn", item.name) @@ -19,7 +19,7 @@ public class TopLevelFunctionTest { } Test fun functionWithParams() { - verifyFiles("test/data/functions/functionWithParams.kt") { model -> + verifyModel("test/data/functions/functionWithParams.kt") { model -> val item = model.nodes.single().members.single() assertEquals(DocumentationNodeKind.Function, item.kind) assertEquals("function", item.name) |