Skip to content

Commit

Permalink
Update Changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
bitPogo committed Mar 26, 2022
1 parent 15e80f6 commit a4d4cf3
Show file tree
Hide file tree
Showing 20 changed files with 60 additions and 58 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ toc::[]

=== Fixed

* Warnings for unused expression and unused parameter in MockFactory

=== Security

=== Bumped
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import tech.antibytes.kmock.KMockContract.Collector
import tech.antibytes.kmock.proxy.NoopCollector

internal expect inline fun <reified Mock> kmock(
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
relaxed: Boolean = false,
relaxUnitFun: Boolean = false,
freeze: Boolean = true
): Mock

internal expect inline fun <reified Mock : SpyOn, reified SpyOn> kspy(
spyOn: SpyOn,
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
freeze: Boolean = true
): Mock
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import tech.antibytes.kmock.KMockContract.Collector
import tech.antibytes.kmock.proxy.NoopCollector

internal inline fun <reified Mock> kmock(
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
relaxed: Boolean = false,
relaxUnitFun: Boolean = false,
freeze: Boolean = true
Expand All @@ -22,14 +22,14 @@ internal inline fun <reified Mock> kmock(

internal inline fun <reified Mock : SpyOn, reified SpyOn> 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 <reified Mock : Generic<K, L>, K : Any, L> kmock(
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
relaxed: Boolean = false,
relaxUnitFun: Boolean = false,
freeze: Boolean = true,
Expand All @@ -42,7 +42,7 @@ internal inline fun <reified Mock : Generic<K, L>, K : Any, L> kmock(

internal inline fun <reified Mock : SpyOn, reified SpyOn : Generic<K, L>, K : Any, L> kspy(
spyOn: SpyOn,
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
freeze: Boolean = true,
templateType: kotlin.reflect.KClass<factory.template.alias.Generic<*, *>>
): Mock where L : Any, L : Comparable<L> = when (Mock::class) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import tech.antibytes.kmock.KMockContract.Collector
import tech.antibytes.kmock.proxy.NoopCollector

internal inline fun <reified Mock> kmock(
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
relaxed: Boolean = false,
relaxUnitFun: Boolean = false,
freeze: Boolean = true
Expand All @@ -22,7 +22,7 @@ internal inline fun <reified Mock> kmock(

internal inline fun <reified Mock : SpyOn, reified SpyOn> 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}.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ import tech.antibytes.kmock.KMockContract.Collector
import tech.antibytes.kmock.proxy.NoopCollector

internal expect inline fun <reified Mock> kmock(
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
relaxed: Boolean = false,
relaxUnitFun: Boolean = false,
freeze: Boolean = true
): Mock

internal expect inline fun <reified Mock : SpyOn, reified SpyOn> kspy(
spyOn: SpyOn,
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
freeze: Boolean = true
): Mock

internal expect inline fun <reified Mock : Common<K, L>, K : Any, L> kmock(
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
relaxed: Boolean = false,
relaxUnitFun: Boolean = false,
freeze: Boolean = true,
Expand All @@ -34,7 +34,7 @@ internal expect inline fun <reified Mock : Common<K, L>, K : Any, L> kmock(

internal expect inline fun <reified Mock : SpyOn, reified SpyOn : Common<K, L>, K : Any, L> kspy(
spyOn: SpyOn,
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
freeze: Boolean = true,
templateType: kotlin.reflect.KClass<factory.template.generic.Common<*, *>>
): Mock where L : Any, L : Comparable<L>
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import tech.antibytes.kmock.KMockContract.Collector
import tech.antibytes.kmock.proxy.NoopCollector

internal inline fun <reified Mock> kmock(
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
relaxed: Boolean = false,
relaxUnitFun: Boolean = false,
freeze: Boolean = true
Expand All @@ -22,14 +22,14 @@ internal inline fun <reified Mock> kmock(

internal inline fun <reified Mock : SpyOn, reified SpyOn> 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 <reified Mock : Platform<K, L>, K : Any, L> kmock(
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
relaxed: Boolean = false,
relaxUnitFun: Boolean = false,
freeze: Boolean = true,
Expand All @@ -42,7 +42,7 @@ internal inline fun <reified Mock : Platform<K, L>, K : Any, L> kmock(

internal inline fun <reified Mock : SpyOn, reified SpyOn : Platform<K, L>, K : Any, L> kspy(
spyOn: SpyOn,
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
freeze: Boolean = true,
templateType: kotlin.reflect.KClass<factory.template.generic.Platform<*, *>>
): Mock where L : Any, L : Comparable<L> = when (Mock::class) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import tech.antibytes.kmock.KMockContract.Collector
import tech.antibytes.kmock.proxy.NoopCollector

internal expect inline fun <reified Mock : Shared1<K, L>, K : Any, L> kmock(
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
relaxed: Boolean = false,
relaxUnitFun: Boolean = false,
freeze: Boolean = true,
Expand All @@ -22,13 +22,13 @@ internal expect inline fun <reified Mock : Shared1<K, L>, K : Any, L> kmock(

internal expect inline fun <reified Mock : SpyOn, reified SpyOn : Shared1<K, L>, K : Any, L> kspy(
spyOn: SpyOn,
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
freeze: Boolean = true,
templateType: kotlin.reflect.KClass<factory.template.generic.Shared1<*, *>>
): Mock where L : Any, L : Comparable<L>

internal expect inline fun <reified Mock : Shared2<K, L>, K : Any, L> kmock(
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
relaxed: Boolean = false,
relaxUnitFun: Boolean = false,
freeze: Boolean = true,
Expand All @@ -37,7 +37,7 @@ internal expect inline fun <reified Mock : Shared2<K, L>, K : Any, L> kmock(

internal expect inline fun <reified Mock : SpyOn, reified SpyOn : Shared2<K, L>, K : Any, L> kspy(
spyOn: SpyOn,
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
freeze: Boolean = true,
templateType: kotlin.reflect.KClass<factory.template.generic.Shared2<*, *>>
): Mock where L : Any, L : Comparable<L>
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import tech.antibytes.kmock.KMockContract.Collector
import tech.antibytes.kmock.proxy.NoopCollector

internal expect inline fun <reified Mock : Shared3<K, L>, K : Any, L> kmock(
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
relaxed: Boolean = false,
relaxUnitFun: Boolean = false,
freeze: Boolean = true,
Expand All @@ -21,7 +21,7 @@ internal expect inline fun <reified Mock : Shared3<K, L>, K : Any, L> kmock(

internal expect inline fun <reified Mock : SpyOn, reified SpyOn : Shared3<K, L>, K : Any, L> kspy(
spyOn: SpyOn,
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
freeze: Boolean = true,
templateType: kotlin.reflect.KClass<factory.template.generic.Shared3<*, *>>
): Mock where L : Any, L : Comparable<L>
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import tech.antibytes.kmock.KMockContract.Collector
import tech.antibytes.kmock.proxy.NoopCollector

internal inline fun <reified Mock> kmock(
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
relaxed: Boolean = false,
relaxUnitFun: Boolean = false,
freeze: Boolean = true
Expand All @@ -32,7 +32,7 @@ internal inline fun <reified Mock> kmock(

internal inline fun <reified Mock : SpyOn, reified SpyOn> 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 =
Expand All @@ -44,7 +44,7 @@ internal inline fun <reified Mock : SpyOn, reified SpyOn> kspy(
}

internal inline fun <reified Mock : Platform1<K, L>, K : Any, L> kmock(
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
relaxed: Boolean = false,
relaxUnitFun: Boolean = false,
freeze: Boolean = true,
Expand All @@ -60,7 +60,7 @@ internal inline fun <reified Mock : Platform1<K, L>, K : Any, L> kmock(

internal inline fun <reified Mock : SpyOn, reified SpyOn : Platform1<K, L>, K : Any, L> kspy(
spyOn: SpyOn,
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
freeze: Boolean = true,
templateType: kotlin.reflect.KClass<factory.template.interfaze.Platform1<*, *>>
): Mock where L : Any, L : Comparable<L> = when (Mock::class) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ import tech.antibytes.kmock.KMockContract.Collector
import tech.antibytes.kmock.proxy.NoopCollector

internal expect inline fun <reified Mock> kmock(
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
relaxed: Boolean = false,
relaxUnitFun: Boolean = false,
freeze: Boolean = true
): Mock

internal expect inline fun <reified Mock : SpyOn, reified SpyOn> kspy(
spyOn: SpyOn,
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
freeze: Boolean = true
): Mock

internal expect inline fun <reified Mock : Common1<K, L>, K : Any, L> kmock(
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
relaxed: Boolean = false,
relaxUnitFun: Boolean = false,
freeze: Boolean = true,
Expand All @@ -34,7 +34,7 @@ internal expect inline fun <reified Mock : Common1<K, L>, K : Any, L> kmock(

internal expect inline fun <reified Mock : SpyOn, reified SpyOn : Common1<K, L>, K : Any, L> kspy(
spyOn: SpyOn,
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
freeze: Boolean = true,
templateType: kotlin.reflect.KClass<factory.template.interfaze.Common1<*, *>>
): Mock where L : Any, L : Comparable<L>
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import tech.antibytes.kmock.KMockContract.Collector
import tech.antibytes.kmock.proxy.NoopCollector

internal inline fun <reified Mock> kmock(
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
relaxed: Boolean = false,
relaxUnitFun: Boolean = false,
freeze: Boolean = true
Expand All @@ -32,14 +32,14 @@ internal inline fun <reified Mock> kmock(

internal inline fun <reified Mock : SpyOn, reified SpyOn> 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 <reified Mock : Platform1<K, L>, K : Any, L> kmock(
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
relaxed: Boolean = false,
relaxUnitFun: Boolean = false,
freeze: Boolean = true,
Expand All @@ -54,7 +54,7 @@ internal inline fun <reified Mock : Platform1<K, L>, K : Any, L> kmock(

internal inline fun <reified Mock : SpyOn, reified SpyOn : Platform1<K, L>, K : Any, L> kspy(
spyOn: SpyOn,
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
freeze: Boolean = true,
templateType: kotlin.reflect.KClass<factory.template.interfaze.Platform1<*, *>>
): Mock where L : Any, L : Comparable<L> = when (Mock::class) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import tech.antibytes.kmock.KMockContract.Collector
import tech.antibytes.kmock.proxy.NoopCollector

internal inline fun <reified Mock> kmock(
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
relaxed: Boolean = false,
relaxUnitFun: Boolean = false,
freeze: Boolean = true
Expand All @@ -32,7 +32,7 @@ internal inline fun <reified Mock> kmock(

internal inline fun <reified Mock : SpyOn, reified SpyOn> 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 =
Expand All @@ -44,7 +44,7 @@ internal inline fun <reified Mock : SpyOn, reified SpyOn> kspy(
}

internal inline fun <reified Mock : Platform1<K, L>, K : Any, L> kmock(
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
relaxed: Boolean = false,
relaxUnitFun: Boolean = false,
freeze: Boolean = true,
Expand All @@ -59,7 +59,7 @@ internal inline fun <reified Mock : Platform1<K, L>, K : Any, L> kmock(

internal inline fun <reified Mock : SpyOn, reified SpyOn : Platform1<K, L>, K : Any, L> kspy(
spyOn: SpyOn,
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
freeze: Boolean = true,
templateType: kotlin.reflect.KClass<factory.template.interfaze.Platform1<*, *>>
): Mock where L : Any, L : Comparable<L> = when (Mock::class) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import tech.antibytes.kmock.KMockContract.Collector
import tech.antibytes.kmock.proxy.NoopCollector

internal expect inline fun <reified Mock : Shared1<K, L>, K : Any, L> kmock(
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
relaxed: Boolean = false,
relaxUnitFun: Boolean = false,
freeze: Boolean = true,
Expand All @@ -21,7 +21,7 @@ internal expect inline fun <reified Mock : Shared1<K, L>, K : Any, L> kmock(

internal expect inline fun <reified Mock : SpyOn, reified SpyOn : Shared1<K, L>, K : Any, L> kspy(
spyOn: SpyOn,
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
freeze: Boolean = true,
templateType: kotlin.reflect.KClass<factory.template.interfaze.Shared1<*, *>>
): Mock where L : Any, L : Comparable<L>
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import tech.antibytes.kmock.KMockContract.Collector
import tech.antibytes.kmock.proxy.NoopCollector

internal expect inline fun <reified Mock> kmock(
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
relaxed: Boolean = false,
relaxUnitFun: Boolean = false,
freeze: Boolean = true
): Mock

internal expect inline fun <reified Mock : SpyOn, reified SpyOn> kspy(
spyOn: SpyOn,
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
freeze: Boolean = true
): Mock
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import tech.antibytes.kmock.KMockContract.Collector
import tech.antibytes.kmock.proxy.NoopCollector

internal inline fun <reified Mock> kmock(
verifier:KMockContract.Collector = NoopCollector,
verifier: KMockContract.Collector = NoopCollector,
relaxed: Boolean = false,
relaxUnitFun: Boolean = false,
freeze: Boolean = true
Expand All @@ -21,7 +21,7 @@ internal inline fun <reified Mock> kmock(

internal inline fun <reified Mock : SpyOn, reified SpyOn> 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}.")
Expand Down
Loading

0 comments on commit a4d4cf3

Please sign in to comment.