summaryrefslogtreecommitdiff
path: root/internal/mastotypes/mock_Converter.go
diff options
context:
space:
mode:
authorLibravatar Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com>2021-04-19 19:42:19 +0200
committerLibravatar GitHub <noreply@github.com>2021-04-19 19:42:19 +0200
commit32c5fd987a06e11b14a4247d13187657c14adedd (patch)
treef5b787ca0f020bea5fd020925e52d3592a77a6ad /internal/mastotypes/mock_Converter.go
parentApi/v1/accounts (#8) (diff)
downloadgotosocial-32c5fd987a06e11b14a4247d13187657c14adedd.tar.xz
Api/v1/statuses (#11)
This PR adds: Statuses New status creation. View existing status Delete a status Fave a status Unfave a status See who's faved a status Media Upload media attachment and store/retrieve it Upload custom emoji and store/retrieve it Fileserver Serve files from storage Testing Test models, testrig -- run a GTS test instance and play around with it.
Diffstat (limited to 'internal/mastotypes/mock_Converter.go')
-rw-r--r--internal/mastotypes/mock_Converter.go148
1 files changed, 148 insertions, 0 deletions
diff --git a/internal/mastotypes/mock_Converter.go b/internal/mastotypes/mock_Converter.go
new file mode 100644
index 000000000..732d933ae
--- /dev/null
+++ b/internal/mastotypes/mock_Converter.go
@@ -0,0 +1,148 @@
+// Code generated by mockery v2.7.4. DO NOT EDIT.
+
+package mastotypes
+
+import (
+ mock "github.com/stretchr/testify/mock"
+ gtsmodel "github.com/superseriousbusiness/gotosocial/internal/db/gtsmodel"
+ mastotypes "github.com/superseriousbusiness/gotosocial/internal/mastotypes/mastomodel"
+)
+
+// MockConverter is an autogenerated mock type for the Converter type
+type MockConverter struct {
+ mock.Mock
+}
+
+// AccountToMastoPublic provides a mock function with given fields: account
+func (_m *MockConverter) AccountToMastoPublic(account *gtsmodel.Account) (*mastotypes.Account, error) {
+ ret := _m.Called(account)
+
+ var r0 *mastotypes.Account
+ if rf, ok := ret.Get(0).(func(*gtsmodel.Account) *mastotypes.Account); ok {
+ r0 = rf(account)
+ } else {
+ if ret.Get(0) != nil {
+ r0 = ret.Get(0).(*mastotypes.Account)
+ }
+ }
+
+ var r1 error
+ if rf, ok := ret.Get(1).(func(*gtsmodel.Account) error); ok {
+ r1 = rf(account)
+ } else {
+ r1 = ret.Error(1)
+ }
+
+ return r0, r1
+}
+
+// AccountToMastoSensitive provides a mock function with given fields: account
+func (_m *MockConverter) AccountToMastoSensitive(account *gtsmodel.Account) (*mastotypes.Account, error) {
+ ret := _m.Called(account)
+
+ var r0 *mastotypes.Account
+ if rf, ok := ret.Get(0).(func(*gtsmodel.Account) *mastotypes.Account); ok {
+ r0 = rf(account)
+ } else {
+ if ret.Get(0) != nil {
+ r0 = ret.Get(0).(*mastotypes.Account)
+ }
+ }
+
+ var r1 error
+ if rf, ok := ret.Get(1).(func(*gtsmodel.Account) error); ok {
+ r1 = rf(account)
+ } else {
+ r1 = ret.Error(1)
+ }
+
+ return r0, r1
+}
+
+// AppToMastoPublic provides a mock function with given fields: application
+func (_m *MockConverter) AppToMastoPublic(application *gtsmodel.Application) (*mastotypes.Application, error) {
+ ret := _m.Called(application)
+
+ var r0 *mastotypes.Application
+ if rf, ok := ret.Get(0).(func(*gtsmodel.Application) *mastotypes.Application); ok {
+ r0 = rf(application)
+ } else {
+ if ret.Get(0) != nil {
+ r0 = ret.Get(0).(*mastotypes.Application)
+ }
+ }
+
+ var r1 error
+ if rf, ok := ret.Get(1).(func(*gtsmodel.Application) error); ok {
+ r1 = rf(application)
+ } else {
+ r1 = ret.Error(1)
+ }
+
+ return r0, r1
+}
+
+// AppToMastoSensitive provides a mock function with given fields: application
+func (_m *MockConverter) AppToMastoSensitive(application *gtsmodel.Application) (*mastotypes.Application, error) {
+ ret := _m.Called(application)
+
+ var r0 *mastotypes.Application
+ if rf, ok := ret.Get(0).(func(*gtsmodel.Application) *mastotypes.Application); ok {
+ r0 = rf(application)
+ } else {
+ if ret.Get(0) != nil {
+ r0 = ret.Get(0).(*mastotypes.Application)
+ }
+ }
+
+ var r1 error
+ if rf, ok := ret.Get(1).(func(*gtsmodel.Application) error); ok {
+ r1 = rf(application)
+ } else {
+ r1 = ret.Error(1)
+ }
+
+ return r0, r1
+}
+
+// AttachmentToMasto provides a mock function with given fields: attachment
+func (_m *MockConverter) AttachmentToMasto(attachment *gtsmodel.MediaAttachment) (mastotypes.Attachment, error) {
+ ret := _m.Called(attachment)
+
+ var r0 mastotypes.Attachment
+ if rf, ok := ret.Get(0).(func(*gtsmodel.MediaAttachment) mastotypes.Attachment); ok {
+ r0 = rf(attachment)
+ } else {
+ r0 = ret.Get(0).(mastotypes.Attachment)
+ }
+
+ var r1 error
+ if rf, ok := ret.Get(1).(func(*gtsmodel.MediaAttachment) error); ok {
+ r1 = rf(attachment)
+ } else {
+ r1 = ret.Error(1)
+ }
+
+ return r0, r1
+}
+
+// MentionToMasto provides a mock function with given fields: m
+func (_m *MockConverter) MentionToMasto(m *gtsmodel.Mention) (mastotypes.Mention, error) {
+ ret := _m.Called(m)
+
+ var r0 mastotypes.Mention
+ if rf, ok := ret.Get(0).(func(*gtsmodel.Mention) mastotypes.Mention); ok {
+ r0 = rf(m)
+ } else {
+ r0 = ret.Get(0).(mastotypes.Mention)
+ }
+
+ var r1 error
+ if rf, ok := ret.Get(1).(func(*gtsmodel.Mention) error); ok {
+ r1 = rf(m)
+ } else {
+ r1 = ret.Error(1)
+ }
+
+ return r0, r1
+}