-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename MokkeryTestsScope to MokkerySuiteScope
- Loading branch information
Showing
15 changed files
with
72 additions
and
72 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
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
4 changes: 2 additions & 2 deletions
4
mokkery-runtime/src/commonMain/kotlin/dev/mokkery/internal/GlobalMokkeryScope.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,11 +1,11 @@ | ||
package dev.mokkery.internal | ||
|
||
import dev.mokkery.MokkeryTestsScope | ||
import dev.mokkery.MokkerySuiteScope | ||
import dev.mokkery.context.MokkeryContext | ||
import dev.mokkery.internal.context.IgnoringMocksRegistry | ||
import dev.mokkery.internal.context.MokkeryTools | ||
|
||
internal object GlobalMokkeryScope : MokkeryTestsScope { | ||
internal object GlobalMokkeryScope : MokkerySuiteScope { | ||
|
||
override val mokkeryContext: MokkeryContext = MokkeryTools.default() + IgnoringMocksRegistry | ||
} |
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
4 changes: 2 additions & 2 deletions
4
mokkery-runtime/src/commonMain/kotlin/dev/mokkery/internal/context/MocksRegistry.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
14 changes: 14 additions & 0 deletions
14
mokkery-runtime/src/commonMain/kotlin/dev/mokkery/internal/context/SuteName.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,14 @@ | ||
package dev.mokkery.internal.context | ||
|
||
import dev.mokkery.MokkeryScope | ||
import dev.mokkery.context.MokkeryContext | ||
|
||
internal val MokkeryScope.suiteName: String? | ||
get() = mokkeryContext[SuteName]?.name | ||
|
||
internal data class SuteName(val name: String) : MokkeryContext.Element { | ||
|
||
override val key = Key | ||
|
||
companion object Key : MokkeryContext.Key<SuteName> | ||
} |
14 changes: 0 additions & 14 deletions
14
mokkery-runtime/src/commonMain/kotlin/dev/mokkery/internal/context/TestsScopeName.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.