-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from bitPogo/feature/fix-warnings
Fix warnings
- Loading branch information
Showing
32 changed files
with
322 additions
and
268 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 8 additions & 5 deletions
13
kmock-processor/src/test/resources/factory/expected/alias/CommonExpect.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
@file:Suppress("UNUSED_PARAMETER", "UNUSED_EXPRESSION") | ||
|
||
package generatorTest | ||
|
||
import kotlin.Boolean | ||
import kotlin.Suppress | ||
import tech.antibytes.kmock.KMockContract | ||
import tech.antibytes.kmock.KMockContract.Collector | ||
import tech.antibytes.kmock.proxy.NoopCollector | ||
|
||
internal expect inline fun <reified Mock> kmock( | ||
verifier: KMockContract.Collector = Collector { _, _ -> Unit }, | ||
@Suppress("UNUSED_PARAMETER") relaxed: Boolean = false, | ||
@Suppress("UNUSED_PARAMETER") relaxUnitFun: Boolean = false, | ||
verifier: KMockContract.Collector = NoopCollector, | ||
relaxed: Boolean = false, | ||
relaxUnitFun: Boolean = false, | ||
freeze: Boolean = true | ||
): Mock | ||
|
||
internal expect inline fun <reified Mock : SpyOn, reified SpyOn> kspy( | ||
@Suppress("UNUSED_PARAMETER") spyOn: SpyOn, | ||
verifier: KMockContract.Collector = Collector { _, _ -> Unit }, | ||
spyOn: SpyOn, | ||
verifier: KMockContract.Collector = NoopCollector, | ||
freeze: Boolean = true | ||
): Mock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.