github.com/haalcala/mattermost-server-change-repo/v5@v5.33.2/store/storetest/mocks/BotStore.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 // Regenerate this file using `make store-mocks`. 4 5 package mocks 6 7 import ( 8 model "github.com/mattermost/mattermost-server/v5/model" 9 mock "github.com/stretchr/testify/mock" 10 ) 11 12 // BotStore is an autogenerated mock type for the BotStore type 13 type BotStore struct { 14 mock.Mock 15 } 16 17 // Get provides a mock function with given fields: userId, includeDeleted 18 func (_m *BotStore) Get(userId string, includeDeleted bool) (*model.Bot, error) { 19 ret := _m.Called(userId, includeDeleted) 20 21 var r0 *model.Bot 22 if rf, ok := ret.Get(0).(func(string, bool) *model.Bot); ok { 23 r0 = rf(userId, includeDeleted) 24 } else { 25 if ret.Get(0) != nil { 26 r0 = ret.Get(0).(*model.Bot) 27 } 28 } 29 30 var r1 error 31 if rf, ok := ret.Get(1).(func(string, bool) error); ok { 32 r1 = rf(userId, includeDeleted) 33 } else { 34 r1 = ret.Error(1) 35 } 36 37 return r0, r1 38 } 39 40 // GetAll provides a mock function with given fields: options 41 func (_m *BotStore) GetAll(options *model.BotGetOptions) ([]*model.Bot, error) { 42 ret := _m.Called(options) 43 44 var r0 []*model.Bot 45 if rf, ok := ret.Get(0).(func(*model.BotGetOptions) []*model.Bot); ok { 46 r0 = rf(options) 47 } else { 48 if ret.Get(0) != nil { 49 r0 = ret.Get(0).([]*model.Bot) 50 } 51 } 52 53 var r1 error 54 if rf, ok := ret.Get(1).(func(*model.BotGetOptions) error); ok { 55 r1 = rf(options) 56 } else { 57 r1 = ret.Error(1) 58 } 59 60 return r0, r1 61 } 62 63 // PermanentDelete provides a mock function with given fields: userId 64 func (_m *BotStore) PermanentDelete(userId string) error { 65 ret := _m.Called(userId) 66 67 var r0 error 68 if rf, ok := ret.Get(0).(func(string) error); ok { 69 r0 = rf(userId) 70 } else { 71 r0 = ret.Error(0) 72 } 73 74 return r0 75 } 76 77 // Save provides a mock function with given fields: bot 78 func (_m *BotStore) Save(bot *model.Bot) (*model.Bot, error) { 79 ret := _m.Called(bot) 80 81 var r0 *model.Bot 82 if rf, ok := ret.Get(0).(func(*model.Bot) *model.Bot); ok { 83 r0 = rf(bot) 84 } else { 85 if ret.Get(0) != nil { 86 r0 = ret.Get(0).(*model.Bot) 87 } 88 } 89 90 var r1 error 91 if rf, ok := ret.Get(1).(func(*model.Bot) error); ok { 92 r1 = rf(bot) 93 } else { 94 r1 = ret.Error(1) 95 } 96 97 return r0, r1 98 } 99 100 // Update provides a mock function with given fields: bot 101 func (_m *BotStore) Update(bot *model.Bot) (*model.Bot, error) { 102 ret := _m.Called(bot) 103 104 var r0 *model.Bot 105 if rf, ok := ret.Get(0).(func(*model.Bot) *model.Bot); ok { 106 r0 = rf(bot) 107 } else { 108 if ret.Get(0) != nil { 109 r0 = ret.Get(0).(*model.Bot) 110 } 111 } 112 113 var r1 error 114 if rf, ok := ret.Get(1).(func(*model.Bot) error); ok { 115 r1 = rf(bot) 116 } else { 117 r1 = ret.Error(1) 118 } 119 120 return r0, r1 121 }