From ee13af00483887fb6cfdde10a58cbb43542cf2d7 Mon Sep 17 00:00:00 2001 From: "sebastian.sellmair" Date: Wed, 26 Aug 2020 11:47:49 +0200 Subject: Implement tests for ModuleAndPackageDocumentationReader --- core/src/main/kotlin/model/Documentable.kt | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'core/src/main') diff --git a/core/src/main/kotlin/model/Documentable.kt b/core/src/main/kotlin/model/Documentable.kt index adc46d2a..293b8a30 100644 --- a/core/src/main/kotlin/model/Documentable.kt +++ b/core/src/main/kotlin/model/Documentable.kt @@ -87,10 +87,10 @@ sealed class DClasslike : Documentable(), WithScope, WithVisibility, WithExpectA data class DModule( override val name: String, - val packages: List, - override val documentation: SourceSetDependent, + val packages: List = emptyList(), + override val documentation: SourceSetDependent = emptyMap(), override val expectPresentInSet: DokkaSourceSet? = null, - override val sourceSets: Set, + override val sourceSets: Set = emptySet(), override val extra: PropertyContainer = PropertyContainer.empty() ) : Documentable(), WithExtraProperties { override val dri: DRI = DRI.topLevel @@ -102,13 +102,13 @@ data class DModule( data class DPackage( override val dri: DRI, - override val functions: List, - override val properties: List, - override val classlikes: List, - val typealiases: List, - override val documentation: SourceSetDependent, + override val functions: List = emptyList(), + override val properties: List = emptyList(), + override val classlikes: List = emptyList(), + val typealiases: List = emptyList(), + override val documentation: SourceSetDependent = emptyMap(), override val expectPresentInSet: DokkaSourceSet? = null, - override val sourceSets: Set, + override val sourceSets: Set = emptySet(), override val extra: PropertyContainer = PropertyContainer.empty() ) : Documentable(), WithScope, WithExtraProperties { override val name = dri.packageName.orEmpty() -- cgit