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