MCPcopy
hub / github.com/stretchr/testify / InOrder

Function InOrder

mock/mock.go:291–295  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

289// Mock.On("Do").Return(nil),
290// )
291func 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

Calls 1

NotBeforeMethod · 0.80