File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 33 testSuccessHandlerDidReturn = successHandler(testSuccessHandlerParam0, testSuccessHandlerParam1)
44 }
55 testFuncMockWasCalled = true
6+ testFuncMockWasCalledTimes += 1
67 return testFuncMockShouldReturn
Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ struct FuncMocker {
4545 var bodyLines = paramMockers. flatMap { $0. lines }
4646 let wasCalledBodyLine = " \( indentation) \( indentation) \( wasCalledVariable. name) = true "
4747 bodyLines. append ( wasCalledBodyLine)
48+ let wasCalledTimesBodyLine = " \( indentation) \( indentation) \( wasCalledTimesVariable. name) += 1 "
49+ bodyLines. append ( wasCalledTimesBodyLine)
4850 if let returnVariable = returnVariable {
4951 let returnLine = " \( indentation) \( indentation) return \( returnVariable. name) "
5052 bodyLines. append ( returnLine)
You can’t perform that action at this time.
0 commit comments