@@ -2054,10 +2054,10 @@ abstract class UtValueTestCaseChecker(
2054
2054
)
2055
2055
2056
2056
// checks mutations in this, parameters and statics
2057
- protected inline fun <reified T > checkAllMutationsWithThis (
2058
- method : KFunction1 <T , * >,
2057
+ protected inline fun <reified T , reified R > checkAllMutationsWithThis (
2058
+ method : KFunction1 <T , R >,
2059
2059
branches : ExecutionsNumberMatcher ,
2060
- vararg matchers : (T , StaticsType , T , StaticsType ) -> Boolean ,
2060
+ vararg matchers : (T , StaticsType , T , StaticsType , R ) -> Boolean ,
2061
2061
coverage : CoverageMatcher = Full ,
2062
2062
mockStrategy : MockStrategyApi = NO_MOCKS ,
2063
2063
additionalDependencies : Array <Class <* >> = emptyArray(),
@@ -2073,10 +2073,10 @@ abstract class UtValueTestCaseChecker(
2073
2073
summaryDisplayNameChecks = summaryDisplayNameChecks
2074
2074
)
2075
2075
2076
- protected inline fun <reified T , reified T1 > checkAllMutationsWithThis (
2076
+ protected inline fun <reified T , reified T1 , reified R > checkAllMutationsWithThis (
2077
2077
method : KFunction2 <T , T1 , * >,
2078
2078
branches : ExecutionsNumberMatcher ,
2079
- vararg matchers : (T , T1 , StaticsType , T , T1 , StaticsType ) -> Boolean ,
2079
+ vararg matchers : (T , T1 , StaticsType , T , T1 , StaticsType , R ) -> Boolean ,
2080
2080
coverage : CoverageMatcher = Full ,
2081
2081
mockStrategy : MockStrategyApi = NO_MOCKS ,
2082
2082
additionalDependencies : Array <Class <* >> = emptyArray(),
@@ -2092,10 +2092,10 @@ abstract class UtValueTestCaseChecker(
2092
2092
summaryDisplayNameChecks = summaryDisplayNameChecks
2093
2093
)
2094
2094
2095
- protected inline fun <reified T , reified T1 , reified T2 > checkAllMutationsWithThis (
2095
+ protected inline fun <reified T , reified T1 , reified T2 , reified R > checkAllMutationsWithThis (
2096
2096
method : KFunction3 <T , T1 , T2 , * >,
2097
2097
branches : ExecutionsNumberMatcher ,
2098
- vararg matchers : (T , T1 , T2 , StaticsType , T , T1 , T2 , StaticsType ) -> Boolean ,
2098
+ vararg matchers : (T , T1 , T2 , StaticsType , T , T1 , T2 , StaticsType , R ) -> Boolean ,
2099
2099
coverage : CoverageMatcher = Full ,
2100
2100
mockStrategy : MockStrategyApi = NO_MOCKS ,
2101
2101
additionalDependencies : Array <Class <* >> = emptyArray(),
@@ -2111,7 +2111,7 @@ abstract class UtValueTestCaseChecker(
2111
2111
summaryDisplayNameChecks = summaryDisplayNameChecks
2112
2112
)
2113
2113
2114
- protected inline fun <reified T , reified T1 , reified T2 , reified T3 > checkAllMutationsWithThis (
2114
+ protected inline fun <reified T , reified T1 , reified T2 , reified T3 , reified R > checkAllMutationsWithThis (
2115
2115
method : KFunction4 <T , T1 , T2 , T3 , * >,
2116
2116
branches : ExecutionsNumberMatcher ,
2117
2117
vararg matchers : (T , T1 , T2 , T3 , StaticsType , T , T1 , T2 , T3 , StaticsType ) -> Boolean ,
@@ -2130,7 +2130,7 @@ abstract class UtValueTestCaseChecker(
2130
2130
summaryDisplayNameChecks = summaryDisplayNameChecks
2131
2131
)
2132
2132
2133
- protected inline fun <reified T , reified T1 , reified T2 , reified T3 , reified T4 > checkAllMutationsWithThis (
2133
+ protected inline fun <reified T , reified T1 , reified T2 , reified T3 , reified T4 , reified R > checkAllMutationsWithThis (
2134
2134
method : KFunction5 <T , T1 , T2 , T3 , T4 , * >,
2135
2135
branches : ExecutionsNumberMatcher ,
2136
2136
vararg matchers : (T , T1 , T2 , T3 , T4 , StaticsType , T , T1 , T2 , T3 , T4 , StaticsType ) -> Boolean ,
@@ -2698,7 +2698,7 @@ fun withMutationsAndThis(ex: UtValueExecution<*>) =
2698
2698
addAll(ex.paramsAfter)
2699
2699
add(ex.staticsAfter)
2700
2700
2701
- add(ex.returnValue )
2701
+ add(ex.evaluatedResult )
2702
2702
}
2703
2703
2704
2704
private val UtValueExecution <* >.callerBefore get() = stateBefore.caller!! .value
0 commit comments