code: func (_m *Marathon) AllTasks(opts *marathon.AllTasksOpts) (*marathon.Tasks, error) {
  	ret := _m.Called(opts)
  
  	var r0 *marathon.Tasks
  	if rf, ok := ret.Get(0).(func(*marathon.AllTasksOpts) *marathon.Tasks); ok {
  		r0 = rf(opts)
  	} else {
  		if ret.Get(0) != nil {
  			r0 = ret.Get(0).(*marathon.Tasks)
  		}
  	}
  
  	var r1 error
  	if rf, ok := ret.Get(1).(func(*marathon.AllTasksOpts) error); ok {
  		r1 = rf(opts)
  	} else {
  		r1 = ret.Error(1)
  	}
  
  	return r0, r1
  }
docs: // AllTasks provides a mock function with given fields: opts