diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 9ea92172..6bd5a79c 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -37,6 +37,8 @@ toc::[] === Fixed +* Warnings for unused expression and unused parameter in MockFactory + === Security === Bumped diff --git a/kmock-processor/src/test/resources/factory/expected/alias/CommonExpect.kt b/kmock-processor/src/test/resources/factory/expected/alias/CommonExpect.kt index 3fd1d857..5d597298 100644 --- a/kmock-processor/src/test/resources/factory/expected/alias/CommonExpect.kt +++ b/kmock-processor/src/test/resources/factory/expected/alias/CommonExpect.kt @@ -9,7 +9,7 @@ import tech.antibytes.kmock.KMockContract.Collector import tech.antibytes.kmock.proxy.NoopCollector internal expect inline fun kmock( - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, relaxed: Boolean = false, relaxUnitFun: Boolean = false, freeze: Boolean = true @@ -17,6 +17,6 @@ internal expect inline fun kmock( internal expect inline fun kspy( spyOn: SpyOn, - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, freeze: Boolean = true ): Mock diff --git a/kmock-processor/src/test/resources/factory/expected/alias/Generic.kt b/kmock-processor/src/test/resources/factory/expected/alias/Generic.kt index ae84216c..40c397c0 100644 --- a/kmock-processor/src/test/resources/factory/expected/alias/Generic.kt +++ b/kmock-processor/src/test/resources/factory/expected/alias/Generic.kt @@ -12,7 +12,7 @@ import tech.antibytes.kmock.KMockContract.Collector import tech.antibytes.kmock.proxy.NoopCollector internal inline fun kmock( - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, relaxed: Boolean = false, relaxUnitFun: Boolean = false, freeze: Boolean = true @@ -22,14 +22,14 @@ internal inline fun kmock( internal inline fun kspy( spyOn: SpyOn, - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, freeze: Boolean = true ): Mock = when (Mock::class) { else -> throw RuntimeException("Unknown Interface ${Mock::class.simpleName}.") } internal inline fun , K : Any, L> kmock( - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, relaxed: Boolean = false, relaxUnitFun: Boolean = false, freeze: Boolean = true, @@ -42,7 +42,7 @@ internal inline fun , K : Any, L> kmock( internal inline fun , K : Any, L> kspy( spyOn: SpyOn, - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, freeze: Boolean = true, templateType: kotlin.reflect.KClass> ): Mock where L : Any, L : Comparable = when (Mock::class) { diff --git a/kmock-processor/src/test/resources/factory/expected/alias/Platform.kt b/kmock-processor/src/test/resources/factory/expected/alias/Platform.kt index 5cfb8567..c5cae254 100644 --- a/kmock-processor/src/test/resources/factory/expected/alias/Platform.kt +++ b/kmock-processor/src/test/resources/factory/expected/alias/Platform.kt @@ -9,7 +9,7 @@ import tech.antibytes.kmock.KMockContract.Collector import tech.antibytes.kmock.proxy.NoopCollector internal inline fun kmock( - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, relaxed: Boolean = false, relaxUnitFun: Boolean = false, freeze: Boolean = true @@ -22,7 +22,7 @@ internal inline fun kmock( internal inline fun kspy( spyOn: SpyOn, - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, freeze: Boolean = true ): Mock = when (Mock::class) { else -> throw RuntimeException("Unknown Interface ${Mock::class.simpleName}.") diff --git a/kmock-processor/src/test/resources/factory/expected/generic/CommonExpect.kt b/kmock-processor/src/test/resources/factory/expected/generic/CommonExpect.kt index db506612..a85479e9 100644 --- a/kmock-processor/src/test/resources/factory/expected/generic/CommonExpect.kt +++ b/kmock-processor/src/test/resources/factory/expected/generic/CommonExpect.kt @@ -12,7 +12,7 @@ import tech.antibytes.kmock.KMockContract.Collector import tech.antibytes.kmock.proxy.NoopCollector internal expect inline fun kmock( - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, relaxed: Boolean = false, relaxUnitFun: Boolean = false, freeze: Boolean = true @@ -20,12 +20,12 @@ internal expect inline fun kmock( internal expect inline fun kspy( spyOn: SpyOn, - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, freeze: Boolean = true ): Mock internal expect inline fun , K : Any, L> kmock( - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, relaxed: Boolean = false, relaxUnitFun: Boolean = false, freeze: Boolean = true, @@ -34,7 +34,7 @@ internal expect inline fun , K : Any, L> kmock( internal expect inline fun , K : Any, L> kspy( spyOn: SpyOn, - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, freeze: Boolean = true, templateType: kotlin.reflect.KClass> ): Mock where L : Any, L : Comparable diff --git a/kmock-processor/src/test/resources/factory/expected/generic/Platform.kt b/kmock-processor/src/test/resources/factory/expected/generic/Platform.kt index 2a190491..a651547b 100644 --- a/kmock-processor/src/test/resources/factory/expected/generic/Platform.kt +++ b/kmock-processor/src/test/resources/factory/expected/generic/Platform.kt @@ -12,7 +12,7 @@ import tech.antibytes.kmock.KMockContract.Collector import tech.antibytes.kmock.proxy.NoopCollector internal inline fun kmock( - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, relaxed: Boolean = false, relaxUnitFun: Boolean = false, freeze: Boolean = true @@ -22,14 +22,14 @@ internal inline fun kmock( internal inline fun kspy( spyOn: SpyOn, - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, freeze: Boolean = true ): Mock = when (Mock::class) { else -> throw RuntimeException("Unknown Interface ${Mock::class.simpleName}.") } internal inline fun , K : Any, L> kmock( - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, relaxed: Boolean = false, relaxUnitFun: Boolean = false, freeze: Boolean = true, @@ -42,7 +42,7 @@ internal inline fun , K : Any, L> kmock( internal inline fun , K : Any, L> kspy( spyOn: SpyOn, - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, freeze: Boolean = true, templateType: kotlin.reflect.KClass> ): Mock where L : Any, L : Comparable = when (Mock::class) { diff --git a/kmock-processor/src/test/resources/factory/expected/generic/Shared1Expect.kt b/kmock-processor/src/test/resources/factory/expected/generic/Shared1Expect.kt index 8f2b72bb..8915b89c 100644 --- a/kmock-processor/src/test/resources/factory/expected/generic/Shared1Expect.kt +++ b/kmock-processor/src/test/resources/factory/expected/generic/Shared1Expect.kt @@ -13,7 +13,7 @@ import tech.antibytes.kmock.KMockContract.Collector import tech.antibytes.kmock.proxy.NoopCollector internal expect inline fun , K : Any, L> kmock( - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, relaxed: Boolean = false, relaxUnitFun: Boolean = false, freeze: Boolean = true, @@ -22,13 +22,13 @@ internal expect inline fun , K : Any, L> kmock( internal expect inline fun , K : Any, L> kspy( spyOn: SpyOn, - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, freeze: Boolean = true, templateType: kotlin.reflect.KClass> ): Mock where L : Any, L : Comparable internal expect inline fun , K : Any, L> kmock( - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, relaxed: Boolean = false, relaxUnitFun: Boolean = false, freeze: Boolean = true, @@ -37,7 +37,7 @@ internal expect inline fun , K : Any, L> kmock( internal expect inline fun , K : Any, L> kspy( spyOn: SpyOn, - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, freeze: Boolean = true, templateType: kotlin.reflect.KClass> ): Mock where L : Any, L : Comparable diff --git a/kmock-processor/src/test/resources/factory/expected/generic/Shared2Expect.kt b/kmock-processor/src/test/resources/factory/expected/generic/Shared2Expect.kt index a592fe8c..dcbbff34 100644 --- a/kmock-processor/src/test/resources/factory/expected/generic/Shared2Expect.kt +++ b/kmock-processor/src/test/resources/factory/expected/generic/Shared2Expect.kt @@ -12,7 +12,7 @@ import tech.antibytes.kmock.KMockContract.Collector import tech.antibytes.kmock.proxy.NoopCollector internal expect inline fun , K : Any, L> kmock( - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, relaxed: Boolean = false, relaxUnitFun: Boolean = false, freeze: Boolean = true, @@ -21,7 +21,7 @@ internal expect inline fun , K : Any, L> kmock( internal expect inline fun , K : Any, L> kspy( spyOn: SpyOn, - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, freeze: Boolean = true, templateType: kotlin.reflect.KClass> ): Mock where L : Any, L : Comparable diff --git a/kmock-processor/src/test/resources/factory/expected/interfaze/Alias.kt b/kmock-processor/src/test/resources/factory/expected/interfaze/Alias.kt index 1e70cbdc..298f6500 100644 --- a/kmock-processor/src/test/resources/factory/expected/interfaze/Alias.kt +++ b/kmock-processor/src/test/resources/factory/expected/interfaze/Alias.kt @@ -12,7 +12,7 @@ import tech.antibytes.kmock.KMockContract.Collector import tech.antibytes.kmock.proxy.NoopCollector internal inline fun kmock( - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, relaxed: Boolean = false, relaxUnitFun: Boolean = false, freeze: Boolean = true @@ -32,7 +32,7 @@ internal inline fun kmock( internal inline fun kspy( spyOn: SpyOn, - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, freeze: Boolean = true ): Mock = when (Mock::class) { factory.template.interfaze.Platform2::class -> factory.template.interfaze.Platform2Mock(verifier = @@ -44,7 +44,7 @@ internal inline fun kspy( } internal inline fun , K : Any, L> kmock( - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, relaxed: Boolean = false, relaxUnitFun: Boolean = false, freeze: Boolean = true, @@ -60,7 +60,7 @@ internal inline fun , K : Any, L> kmock( internal inline fun , K : Any, L> kspy( spyOn: SpyOn, - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, freeze: Boolean = true, templateType: kotlin.reflect.KClass> ): Mock where L : Any, L : Comparable = when (Mock::class) { diff --git a/kmock-processor/src/test/resources/factory/expected/interfaze/CommonExpect.kt b/kmock-processor/src/test/resources/factory/expected/interfaze/CommonExpect.kt index 2f456945..c8227764 100644 --- a/kmock-processor/src/test/resources/factory/expected/interfaze/CommonExpect.kt +++ b/kmock-processor/src/test/resources/factory/expected/interfaze/CommonExpect.kt @@ -12,7 +12,7 @@ import tech.antibytes.kmock.KMockContract.Collector import tech.antibytes.kmock.proxy.NoopCollector internal expect inline fun kmock( - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, relaxed: Boolean = false, relaxUnitFun: Boolean = false, freeze: Boolean = true @@ -20,12 +20,12 @@ internal expect inline fun kmock( internal expect inline fun kspy( spyOn: SpyOn, - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, freeze: Boolean = true ): Mock internal expect inline fun , K : Any, L> kmock( - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, relaxed: Boolean = false, relaxUnitFun: Boolean = false, freeze: Boolean = true, @@ -34,7 +34,7 @@ internal expect inline fun , K : Any, L> kmock( internal expect inline fun , K : Any, L> kspy( spyOn: SpyOn, - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, freeze: Boolean = true, templateType: kotlin.reflect.KClass> ): Mock where L : Any, L : Comparable diff --git a/kmock-processor/src/test/resources/factory/expected/interfaze/NoSpy.kt b/kmock-processor/src/test/resources/factory/expected/interfaze/NoSpy.kt index b696bda9..7f2a32c6 100644 --- a/kmock-processor/src/test/resources/factory/expected/interfaze/NoSpy.kt +++ b/kmock-processor/src/test/resources/factory/expected/interfaze/NoSpy.kt @@ -12,7 +12,7 @@ import tech.antibytes.kmock.KMockContract.Collector import tech.antibytes.kmock.proxy.NoopCollector internal inline fun kmock( - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, relaxed: Boolean = false, relaxUnitFun: Boolean = false, freeze: Boolean = true @@ -32,14 +32,14 @@ internal inline fun kmock( internal inline fun kspy( spyOn: SpyOn, - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, freeze: Boolean = true ): Mock = when (Mock::class) { else -> throw RuntimeException("Unknown Interface ${Mock::class.simpleName}.") } internal inline fun , K : Any, L> kmock( - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, relaxed: Boolean = false, relaxUnitFun: Boolean = false, freeze: Boolean = true, @@ -54,7 +54,7 @@ internal inline fun , K : Any, L> kmock( internal inline fun , K : Any, L> kspy( spyOn: SpyOn, - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, freeze: Boolean = true, templateType: kotlin.reflect.KClass> ): Mock where L : Any, L : Comparable = when (Mock::class) { diff --git a/kmock-processor/src/test/resources/factory/expected/interfaze/Platform.kt b/kmock-processor/src/test/resources/factory/expected/interfaze/Platform.kt index d67b42d9..4234cabb 100644 --- a/kmock-processor/src/test/resources/factory/expected/interfaze/Platform.kt +++ b/kmock-processor/src/test/resources/factory/expected/interfaze/Platform.kt @@ -12,7 +12,7 @@ import tech.antibytes.kmock.KMockContract.Collector import tech.antibytes.kmock.proxy.NoopCollector internal inline fun kmock( - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, relaxed: Boolean = false, relaxUnitFun: Boolean = false, freeze: Boolean = true @@ -32,7 +32,7 @@ internal inline fun kmock( internal inline fun kspy( spyOn: SpyOn, - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, freeze: Boolean = true ): Mock = when (Mock::class) { factory.template.interfaze.Platform2::class -> factory.template.interfaze.Platform2Mock(verifier = @@ -44,7 +44,7 @@ internal inline fun kspy( } internal inline fun , K : Any, L> kmock( - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, relaxed: Boolean = false, relaxUnitFun: Boolean = false, freeze: Boolean = true, @@ -59,7 +59,7 @@ internal inline fun , K : Any, L> kmock( internal inline fun , K : Any, L> kspy( spyOn: SpyOn, - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, freeze: Boolean = true, templateType: kotlin.reflect.KClass> ): Mock where L : Any, L : Comparable = when (Mock::class) { diff --git a/kmock-processor/src/test/resources/factory/expected/interfaze/SharedExpect.kt b/kmock-processor/src/test/resources/factory/expected/interfaze/SharedExpect.kt index 80723b0a..14c40f11 100644 --- a/kmock-processor/src/test/resources/factory/expected/interfaze/SharedExpect.kt +++ b/kmock-processor/src/test/resources/factory/expected/interfaze/SharedExpect.kt @@ -12,7 +12,7 @@ import tech.antibytes.kmock.KMockContract.Collector import tech.antibytes.kmock.proxy.NoopCollector internal expect inline fun , K : Any, L> kmock( - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, relaxed: Boolean = false, relaxUnitFun: Boolean = false, freeze: Boolean = true, @@ -21,7 +21,7 @@ internal expect inline fun , K : Any, L> kmock( internal expect inline fun , K : Any, L> kspy( spyOn: SpyOn, - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, freeze: Boolean = true, templateType: kotlin.reflect.KClass> ): Mock where L : Any, L : Comparable diff --git a/kmock-processor/src/test/resources/factory/expected/regular/CommonExpect.kt b/kmock-processor/src/test/resources/factory/expected/regular/CommonExpect.kt index 3fd1d857..5d597298 100644 --- a/kmock-processor/src/test/resources/factory/expected/regular/CommonExpect.kt +++ b/kmock-processor/src/test/resources/factory/expected/regular/CommonExpect.kt @@ -9,7 +9,7 @@ import tech.antibytes.kmock.KMockContract.Collector import tech.antibytes.kmock.proxy.NoopCollector internal expect inline fun kmock( - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, relaxed: Boolean = false, relaxUnitFun: Boolean = false, freeze: Boolean = true @@ -17,6 +17,6 @@ internal expect inline fun kmock( internal expect inline fun kspy( spyOn: SpyOn, - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, freeze: Boolean = true ): Mock diff --git a/kmock-processor/src/test/resources/factory/expected/regular/Platform.kt b/kmock-processor/src/test/resources/factory/expected/regular/Platform.kt index 00289504..65ffdfb6 100644 --- a/kmock-processor/src/test/resources/factory/expected/regular/Platform.kt +++ b/kmock-processor/src/test/resources/factory/expected/regular/Platform.kt @@ -9,7 +9,7 @@ import tech.antibytes.kmock.KMockContract.Collector import tech.antibytes.kmock.proxy.NoopCollector internal inline fun kmock( - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, relaxed: Boolean = false, relaxUnitFun: Boolean = false, freeze: Boolean = true @@ -21,7 +21,7 @@ internal inline fun kmock( internal inline fun kspy( spyOn: SpyOn, - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, freeze: Boolean = true ): Mock = when (Mock::class) { else -> throw RuntimeException("Unknown Interface ${Mock::class.simpleName}.") diff --git a/kmock-processor/src/test/resources/factory/expected/relaxed/CommonExpect.kt b/kmock-processor/src/test/resources/factory/expected/relaxed/CommonExpect.kt index 3fd1d857..5d597298 100644 --- a/kmock-processor/src/test/resources/factory/expected/relaxed/CommonExpect.kt +++ b/kmock-processor/src/test/resources/factory/expected/relaxed/CommonExpect.kt @@ -9,7 +9,7 @@ import tech.antibytes.kmock.KMockContract.Collector import tech.antibytes.kmock.proxy.NoopCollector internal expect inline fun kmock( - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, relaxed: Boolean = false, relaxUnitFun: Boolean = false, freeze: Boolean = true @@ -17,6 +17,6 @@ internal expect inline fun kmock( internal expect inline fun kspy( spyOn: SpyOn, - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, freeze: Boolean = true ): Mock diff --git a/kmock-processor/src/test/resources/factory/expected/relaxed/Platform.kt b/kmock-processor/src/test/resources/factory/expected/relaxed/Platform.kt index 02bfe6ab..5fdb4404 100644 --- a/kmock-processor/src/test/resources/factory/expected/relaxed/Platform.kt +++ b/kmock-processor/src/test/resources/factory/expected/relaxed/Platform.kt @@ -9,7 +9,7 @@ import tech.antibytes.kmock.KMockContract.Collector import tech.antibytes.kmock.proxy.NoopCollector internal inline fun kmock( - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, relaxed: Boolean = false, relaxUnitFun: Boolean = false, freeze: Boolean = true @@ -21,7 +21,7 @@ internal inline fun kmock( internal inline fun kspy( spyOn: SpyOn, - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, freeze: Boolean = true ): Mock = when (Mock::class) { else -> throw RuntimeException("Unknown Interface ${Mock::class.simpleName}.") diff --git a/kmock-processor/src/test/resources/factory/expected/spy/CommonExpect.kt b/kmock-processor/src/test/resources/factory/expected/spy/CommonExpect.kt index 441c9b8e..c8f249a8 100644 --- a/kmock-processor/src/test/resources/factory/expected/spy/CommonExpect.kt +++ b/kmock-processor/src/test/resources/factory/expected/spy/CommonExpect.kt @@ -12,7 +12,7 @@ import tech.antibytes.kmock.KMockContract.Collector import tech.antibytes.kmock.proxy.NoopCollector internal expect inline fun kmock( - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, relaxed: Boolean = false, relaxUnitFun: Boolean = false, freeze: Boolean = true @@ -20,12 +20,12 @@ internal expect inline fun kmock( internal expect inline fun kspy( spyOn: SpyOn, - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, freeze: Boolean = true ): Mock internal expect inline fun , K : Any, L> kmock( - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, relaxed: Boolean = false, relaxUnitFun: Boolean = false, freeze: Boolean = true, @@ -34,7 +34,7 @@ internal expect inline fun , K : Any, L> kmock( internal expect inline fun , K : Any, L> kspy( spyOn: SpyOn, - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, freeze: Boolean = true, templateType: kotlin.reflect.KClass> ): Mock where L : Any, L : Comparable diff --git a/kmock-processor/src/test/resources/factory/expected/spy/Platform.kt b/kmock-processor/src/test/resources/factory/expected/spy/Platform.kt index 15fc71b0..8b99be1f 100644 --- a/kmock-processor/src/test/resources/factory/expected/spy/Platform.kt +++ b/kmock-processor/src/test/resources/factory/expected/spy/Platform.kt @@ -12,7 +12,7 @@ import tech.antibytes.kmock.KMockContract.Collector import tech.antibytes.kmock.proxy.NoopCollector internal inline fun kmock( - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, relaxed: Boolean = false, relaxUnitFun: Boolean = false, freeze: Boolean = true @@ -26,7 +26,7 @@ internal inline fun kmock( internal inline fun kspy( spyOn: SpyOn, - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, freeze: Boolean = true ): Mock = when (Mock::class) { factory.template.spy.Platform2Mock::class -> factory.template.spy.Platform2Mock(verifier = @@ -35,7 +35,7 @@ internal inline fun kspy( } internal inline fun , K : Any, L> kmock( - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, relaxed: Boolean = false, relaxUnitFun: Boolean = false, freeze: Boolean = true, @@ -48,7 +48,7 @@ internal inline fun , K : Any, L> kmock( internal inline fun , K : Any, L> kspy( spyOn: SpyOn, - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, freeze: Boolean = true, templateType: kotlin.reflect.KClass> ): Mock where L : Any, L : Comparable = when (Mock::class) { diff --git a/kmock-processor/src/test/resources/factory/expected/spy/SharedExpect.kt b/kmock-processor/src/test/resources/factory/expected/spy/SharedExpect.kt index bef6e337..23d31a54 100644 --- a/kmock-processor/src/test/resources/factory/expected/spy/SharedExpect.kt +++ b/kmock-processor/src/test/resources/factory/expected/spy/SharedExpect.kt @@ -12,7 +12,7 @@ import tech.antibytes.kmock.KMockContract.Collector import tech.antibytes.kmock.proxy.NoopCollector internal expect inline fun , K : Any, L> kmock( - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, relaxed: Boolean = false, relaxUnitFun: Boolean = false, freeze: Boolean = true, @@ -21,7 +21,7 @@ internal expect inline fun , K : Any, L> kmock( internal expect inline fun , K : Any, L> kspy( spyOn: SpyOn, - verifier:KMockContract.Collector = NoopCollector, + verifier: KMockContract.Collector = NoopCollector, freeze: Boolean = true, templateType: kotlin.reflect.KClass> ): Mock where L : Any, L : Comparable