summaryrefslogtreecommitdiff
path: root/internal/media/mock_MediaHandler.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/media/mock_MediaHandler.go')
-rw-r--r--internal/media/mock_MediaHandler.go59
1 files changed, 0 insertions, 59 deletions
diff --git a/internal/media/mock_MediaHandler.go b/internal/media/mock_MediaHandler.go
deleted file mode 100644
index 10fffbba4..000000000
--- a/internal/media/mock_MediaHandler.go
+++ /dev/null
@@ -1,59 +0,0 @@
-// Code generated by mockery v2.7.4. DO NOT EDIT.
-
-package media
-
-import (
- mock "github.com/stretchr/testify/mock"
- "github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
-)
-
-// MockMediaHandler is an autogenerated mock type for the MediaHandler type
-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)
-
- var r0 *gtsmodel.MediaAttachment
- if rf, ok := ret.Get(0).(func([]byte, string, string) *gtsmodel.MediaAttachment); ok {
- r0 = rf(img, accountID, headerOrAvi)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*gtsmodel.MediaAttachment)
- }
- }
-
- var r1 error
- if rf, ok := ret.Get(1).(func([]byte, string, string) error); ok {
- r1 = rf(img, accountID, headerOrAvi)
- } else {
- r1 = ret.Error(1)
- }
-
- return r0, r1
-}