@@ -2150,10 +2150,10 @@ abstract class UtValueTestCaseChecker(
2150
2150
)
2151
2151
2152
2152
// checks mutations in this, parameters and statics
2153
- protected inline fun <reified T > checkAllMutationsWithThis (
2154
- method : KFunction1 <T , * >,
2153
+ protected inline fun <reified T , reified R > checkAllMutationsWithThis (
2154
+ method : KFunction1 <T , R >,
2155
2155
branches : ExecutionsNumberMatcher ,
2156
- vararg matchers : (T , StaticsType , T , StaticsType ) -> Boolean ,
2156
+ vararg matchers : (T , StaticsType , T , StaticsType , R ) -> Boolean ,
2157
2157
coverage : CoverageMatcher = Full ,
2158
2158
mockStrategy : MockStrategyApi = NO_MOCKS ,
2159
2159
additionalDependencies : Array <Class <* >> = emptyArray(),
@@ -2169,10 +2169,10 @@ abstract class UtValueTestCaseChecker(
2169
2169
summaryDisplayNameChecks = summaryDisplayNameChecks
2170
2170
)
2171
2171
2172
- protected inline fun <reified T , reified T1 > checkAllMutationsWithThis (
2172
+ protected inline fun <reified T , reified T1 , reified R > checkAllMutationsWithThis (
2173
2173
method : KFunction2 <T , T1 , * >,
2174
2174
branches : ExecutionsNumberMatcher ,
2175
- vararg matchers : (T , T1 , StaticsType , T , T1 , StaticsType ) -> Boolean ,
2175
+ vararg matchers : (T , T1 , StaticsType , T , T1 , StaticsType , R ) -> Boolean ,
2176
2176
coverage : CoverageMatcher = Full ,
2177
2177
mockStrategy : MockStrategyApi = NO_MOCKS ,
2178
2178
additionalDependencies : Array <Class <* >> = emptyArray(),
@@ -2188,10 +2188,10 @@ abstract class UtValueTestCaseChecker(
2188
2188
summaryDisplayNameChecks = summaryDisplayNameChecks
2189
2189
)
2190
2190
2191
- protected inline fun <reified T , reified T1 , reified T2 > checkAllMutationsWithThis (
2191
+ protected inline fun <reified T , reified T1 , reified T2 , reified R > checkAllMutationsWithThis (
2192
2192
method : KFunction3 <T , T1 , T2 , * >,
2193
2193
branches : ExecutionsNumberMatcher ,
2194
- vararg matchers : (T , T1 , T2 , StaticsType , T , T1 , T2 , StaticsType ) -> Boolean ,
2194
+ vararg matchers : (T , T1 , T2 , StaticsType , T , T1 , T2 , StaticsType , R ) -> Boolean ,
2195
2195
coverage : CoverageMatcher = Full ,
2196
2196
mockStrategy : MockStrategyApi = NO_MOCKS ,
2197
2197
additionalDependencies : Array <Class <* >> = emptyArray(),
@@ -2207,7 +2207,7 @@ abstract class UtValueTestCaseChecker(
2207
2207
summaryDisplayNameChecks = summaryDisplayNameChecks
2208
2208
)
2209
2209
2210
- protected inline fun <reified T , reified T1 , reified T2 , reified T3 > checkAllMutationsWithThis (
2210
+ protected inline fun <reified T , reified T1 , reified T2 , reified T3 , reified R > checkAllMutationsWithThis (
2211
2211
method : KFunction4 <T , T1 , T2 , T3 , * >,
2212
2212
branches : ExecutionsNumberMatcher ,
2213
2213
vararg matchers : (T , T1 , T2 , T3 , StaticsType , T , T1 , T2 , T3 , StaticsType ) -> Boolean ,
@@ -2226,7 +2226,7 @@ abstract class UtValueTestCaseChecker(
2226
2226
summaryDisplayNameChecks = summaryDisplayNameChecks
2227
2227
)
2228
2228
2229
- protected inline fun <reified T , reified T1 , reified T2 , reified T3 , reified T4 > checkAllMutationsWithThis (
2229
+ protected inline fun <reified T , reified T1 , reified T2 , reified T3 , reified T4 , reified R > checkAllMutationsWithThis (
2230
2230
method : KFunction5 <T , T1 , T2 , T3 , T4 , * >,
2231
2231
branches : ExecutionsNumberMatcher ,
2232
2232
vararg matchers : (T , T1 , T2 , T3 , T4 , StaticsType , T , T1 , T2 , T3 , T4 , StaticsType ) -> Boolean ,
@@ -2795,7 +2795,7 @@ fun withMutationsAndThis(ex: UtValueExecution<*>) =
2795
2795
addAll(ex.paramsAfter)
2796
2796
add(ex.staticsAfter)
2797
2797
2798
- add(ex.returnValue )
2798
+ add(ex.evaluatedResult )
2799
2799
}
2800
2800
2801
2801
private val UtValueExecution <* >.callerBefore get() = stateBefore.caller!! .value
0 commit comments