mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-04-26 21:44:44 +00:00
fix mock remote to conform to interface
This commit is contained in:
parent
90408f20a5
commit
d8617cb7f9
1 changed files with 5 additions and 5 deletions
|
@ -12,13 +12,13 @@ type Remote struct {
|
||||||
mock.Mock
|
mock.Mock
|
||||||
}
|
}
|
||||||
|
|
||||||
// Activate provides a mock function with given fields: u, r, k, link
|
// Activate provides a mock function with given fields: u, r, link
|
||||||
func (_m *Remote) Activate(u *model.User, r *model.Repo, k *model.Key, link string) error {
|
func (_m *Remote) Activate(u *model.User, r *model.Repo, link string) error {
|
||||||
ret := _m.Called(u, r, k, link)
|
ret := _m.Called(u, r, link)
|
||||||
|
|
||||||
var r0 error
|
var r0 error
|
||||||
if rf, ok := ret.Get(0).(func(*model.User, *model.Repo, *model.Key, string) error); ok {
|
if rf, ok := ret.Get(0).(func(*model.User, *model.Repo, string) error); ok {
|
||||||
r0 = rf(u, r, k, link)
|
r0 = rf(u, r, link)
|
||||||
} else {
|
} else {
|
||||||
r0 = ret.Error(0)
|
r0 = ret.Error(0)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue