mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-10 18:28:06 -06:00
more work on test rig
This commit is contained in:
parent
9a57dac5a1
commit
7ab9e78b44
18 changed files with 514 additions and 47 deletions
|
|
@ -12,6 +12,29 @@ type MockMediaHandler struct {
|
|||
mock.Mock
|
||||
}
|
||||
|
||||
// ProcessAttachment provides a mock function with given fields: img, accountID
|
||||
func (_m *MockMediaHandler) ProcessAttachment(img []byte, accountID string) (*gtsmodel.MediaAttachment, error) {
|
||||
ret := _m.Called(img, accountID)
|
||||
|
||||
var r0 *gtsmodel.MediaAttachment
|
||||
if rf, ok := ret.Get(0).(func([]byte, string) *gtsmodel.MediaAttachment); ok {
|
||||
r0 = rf(img, accountID)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(*gtsmodel.MediaAttachment)
|
||||
}
|
||||
}
|
||||
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(1).(func([]byte, string) error); ok {
|
||||
r1 = rf(img, accountID)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// SetHeaderOrAvatarForAccountID provides a mock function with given fields: img, accountID, headerOrAvi
|
||||
func (_m *MockMediaHandler) SetHeaderOrAvatarForAccountID(img []byte, accountID string, headerOrAvi string) (*gtsmodel.MediaAttachment, error) {
|
||||
ret := _m.Called(img, accountID, headerOrAvi)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue