InOrder defines the order in which the calls should be made For example: InOrder( Mock.On("init").Return(nil), Mock.On("Do").Return(nil), )
(calls ...*Call)
| 289 | // Mock.On("Do").Return(nil), |
| 290 | // ) |
| 291 | func InOrder(calls ...*Call) { |
| 292 | for i := 1; i < len(calls); i++ { |
| 293 | calls[i].NotBefore(calls[i-1]) |
| 294 | } |
| 295 | } |
| 296 | |
| 297 | // Mock is the workhorse used to track activity on another object. |
| 298 | // For an example of its usage, refer to the "Example Usage" section at the top |