mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-20 14:58:10 +00:00
Regenerate mocks after changing queue interface (#5522)
This commit is contained in:
@@ -73,24 +73,6 @@ func (_m *Queue) ErrorAtOnce(c context.Context, ids []string, err error) error {
|
|||||||
return r0
|
return r0
|
||||||
}
|
}
|
||||||
|
|
||||||
// Evict provides a mock function with given fields: c, id
|
|
||||||
func (_m *Queue) Evict(c context.Context, id string) error {
|
|
||||||
ret := _m.Called(c, id)
|
|
||||||
|
|
||||||
if len(ret) == 0 {
|
|
||||||
panic("no return value specified for Evict")
|
|
||||||
}
|
|
||||||
|
|
||||||
var r0 error
|
|
||||||
if rf, ok := ret.Get(0).(func(context.Context, string) error); ok {
|
|
||||||
r0 = rf(c, id)
|
|
||||||
} else {
|
|
||||||
r0 = ret.Error(0)
|
|
||||||
}
|
|
||||||
|
|
||||||
return r0
|
|
||||||
}
|
|
||||||
|
|
||||||
// EvictAtOnce provides a mock function with given fields: c, ids
|
// EvictAtOnce provides a mock function with given fields: c, ids
|
||||||
func (_m *Queue) EvictAtOnce(c context.Context, ids []string) error {
|
func (_m *Queue) EvictAtOnce(c context.Context, ids []string) error {
|
||||||
ret := _m.Called(c, ids)
|
ret := _m.Called(c, ids)
|
||||||
@@ -185,24 +167,6 @@ func (_m *Queue) Poll(c context.Context, agentID int64, f queue.FilterFn) (*mode
|
|||||||
return r0, r1
|
return r0, r1
|
||||||
}
|
}
|
||||||
|
|
||||||
// Push provides a mock function with given fields: c, task
|
|
||||||
func (_m *Queue) Push(c context.Context, task *model.Task) error {
|
|
||||||
ret := _m.Called(c, task)
|
|
||||||
|
|
||||||
if len(ret) == 0 {
|
|
||||||
panic("no return value specified for Push")
|
|
||||||
}
|
|
||||||
|
|
||||||
var r0 error
|
|
||||||
if rf, ok := ret.Get(0).(func(context.Context, *model.Task) error); ok {
|
|
||||||
r0 = rf(c, task)
|
|
||||||
} else {
|
|
||||||
r0 = ret.Error(0)
|
|
||||||
}
|
|
||||||
|
|
||||||
return r0
|
|
||||||
}
|
|
||||||
|
|
||||||
// PushAtOnce provides a mock function with given fields: c, tasks
|
// PushAtOnce provides a mock function with given fields: c, tasks
|
||||||
func (_m *Queue) PushAtOnce(c context.Context, tasks []*model.Task) error {
|
func (_m *Queue) PushAtOnce(c context.Context, tasks []*model.Task) error {
|
||||||
ret := _m.Called(c, tasks)
|
ret := _m.Called(c, tasks)
|
||||||
|
Reference in New Issue
Block a user