-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
49494f3
commit c03f11b
Showing
6 changed files
with
84 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
plugins { | ||
id("org.kodein.library.mpp") | ||
} | ||
|
||
val coroutinesVersion: String by rootProject.extra | ||
|
||
kodein { | ||
kotlin { | ||
common.main.dependencies { | ||
api(project(":mockmp-runtime")) | ||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutinesVersion") | ||
} | ||
add(kodeinTargets.jvm.jvm) | ||
add(kodeinTargets.native.all) | ||
add(kodeinTargets.js.js) | ||
} | ||
} | ||
|
||
kodeinUpload { | ||
name = "mockmp-coroutines" | ||
description = "MocKMP for coroutines" | ||
} |
11 changes: 11 additions & 0 deletions
11
mockmp-coroutines/src/commonMain/kotlin/org/kodein/mock/coroutines/coroutines.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.kodein.mock.coroutines | ||
|
||
import kotlinx.coroutines.CoroutineScope | ||
import kotlinx.coroutines.test.TestScope | ||
import org.kodein.mock.ArgConstraintsBuilder | ||
import org.kodein.mock.Mocker | ||
|
||
|
||
public suspend fun <T> Mocker.every(block: suspend ArgConstraintsBuilder.() -> T): Mocker.Every<T> { | ||
|
||
} |
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