-
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.
Refactor Verification/Assertion methods for Chains
- Loading branch information
Showing
42 changed files
with
278 additions
and
221 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
11 changes: 11 additions & 0 deletions
11
kmock/src/androidMain/kotlin/tech/antibytes/kmock/util/ClassNameExtractor.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 @@ | ||
/* | ||
* Copyright (c) 2022 Matthias Geisler (bitPogo) / All rights reserved. | ||
* | ||
* Use of this source code is governed by Apache v2.0 | ||
*/ | ||
|
||
package tech.antibytes.kmock.util | ||
|
||
import kotlin.reflect.KClass | ||
|
||
actual fun extractKClassName(clazz: KClass<*>): String? = clazz.qualifiedName |
17 changes: 17 additions & 0 deletions
17
kmock/src/androidTest/kotlin/tech/antibytes/kmock/util/ClassNameExtractorSpec.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,17 @@ | ||
/* | ||
* Copyright (c) 2022 Matthias Geisler (bitPogo) / All rights reserved. | ||
* | ||
* Use of this source code is governed by Apache v2.0 | ||
*/ | ||
|
||
package tech.antibytes.kmock.util | ||
|
||
import org.junit.Test | ||
import tech.antibytes.util.test.mustBe | ||
|
||
actual class ClassNameExtractorSpec { | ||
@Test | ||
actual fun `Given extractKClassName is called it returns the of the class name`() { | ||
extractKClassName(Any::class) mustBe Any::class.qualifiedName | ||
} | ||
} |
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
11 changes: 11 additions & 0 deletions
11
kmock/src/commonMain/kotlin/tech/antibytes/kmock/util/ClassNameExtractor.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 @@ | ||
/* | ||
* Copyright (c) 2022 Matthias Geisler (bitPogo) / All rights reserved. | ||
* | ||
* Use of this source code is governed by Apache v2.0 | ||
*/ | ||
|
||
package tech.antibytes.kmock.util | ||
|
||
import kotlin.reflect.KClass | ||
|
||
expect fun extractKClassName(clazz: KClass<*>): String? |
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
Oops, something went wrong.