Skip to content
This repository was archived by the owner on Jan 20, 2023. It is now read-only.

Commit 5ce093c

Browse files
committed
一旦ここでは完全初期化時呼び出しをしない形に修正
1 parent c06b8af commit 5ce093c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/test/kotlin/com/mapk/core/KFunctionForCallTest.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ class KFunctionForCallTest {
5151
fun fromCompanionObject() {
5252
val function = Companion::class.functions
5353
.first { it.name == (KFunctionForCallTest)::declaredOnCompanionObject.name }
54-
.let { spyk(it) }
5554

5655
val kFunctionForCall = KFunctionForCall(function, { it }, Companion)
5756

@@ -60,7 +59,6 @@ class KFunctionForCallTest {
6059
adaptor.putIfAbsent("arg2", 2)
6160
val result = kFunctionForCall.call(adaptor)
6261
assertEquals("12", result)
63-
verify(exactly = 1) { function.call(*anyVararg()) }
6462
}
6563

6664
private fun func(key: String, value: String = "default"): Pair<String, String> = key to value
@@ -84,7 +82,6 @@ class KFunctionForCallTest {
8482
fun multipleCall() {
8583
val function = Companion::class.functions
8684
.first { it.name == (KFunctionForCallTest)::declaredOnCompanionObject.name }
87-
.let { spyk(it) }
8885

8986
val kFunctionForCall = KFunctionForCall(function, { it }, Companion)
9087

@@ -101,8 +98,6 @@ class KFunctionForCallTest {
10198
.forEach { adaptor2.putIfAbsent(it.name!!, it.index + 1) }
10299
val result2 = kFunctionForCall.call(adaptor2)
103100
assertEquals("23", result2)
104-
105-
verify(exactly = 2) { function.call(*anyVararg()) }
106101
}
107102
}
108103

0 commit comments

Comments
 (0)