From 732d181e4908ed0ddc513e305addc71560c0e109 Mon Sep 17 00:00:00 2001 From: "sebastian.sellmair" Date: Wed, 26 Aug 2020 16:56:39 +0200 Subject: Let root package be represented as [root] to the user --- .../main/kotlin/org/jetbrains/dokka/it/AbstractIntegrationTest.kt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'integration-tests/src/main/kotlin') diff --git a/integration-tests/src/main/kotlin/org/jetbrains/dokka/it/AbstractIntegrationTest.kt b/integration-tests/src/main/kotlin/org/jetbrains/dokka/it/AbstractIntegrationTest.kt index 04ae4a88..2a01993e 100644 --- a/integration-tests/src/main/kotlin/org/jetbrains/dokka/it/AbstractIntegrationTest.kt +++ b/integration-tests/src/main/kotlin/org/jetbrains/dokka/it/AbstractIntegrationTest.kt @@ -90,4 +90,12 @@ abstract class AbstractIntegrationTest { "Unexpected `§SUPPRESSED§` in file ${file.path}" ) } + + protected fun assertNoEmptySpans(file: File) { + val fileText = file.readText() + assertFalse( + fileText.contains(Regex("""\s*""")), + "Unexpected empty in file ${file.path}" + ) + } } -- cgit