Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion mock/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ func (c *Call) Twice() *Call {
}

// Times indicates that the mock should only return the indicated number
// of times.
// of times. Calling with i=0 resets the call to the default behavior,
// return at least once. To return no times omit any call to [Mock.On].
//
// Mock.On("MyMethod", arg1, arg2).Return(returnArg1, returnArg2).Times(5)
func (c *Call) Times(i int) *Call {
Expand Down