1// Code generated by mockery v1.0.0. DO NOT EDIT. 2 3// Regenerate this file using `make store-mocks`. 4 5package mocks 6 7import ( 8 context "context" 9 10 model "github.com/mattermost/mattermost-server/v6/model" 11 mock "github.com/stretchr/testify/mock" 12) 13 14// EmojiStore is an autogenerated mock type for the EmojiStore type 15type EmojiStore struct { 16 mock.Mock 17} 18 19// Delete provides a mock function with given fields: emoji, time 20func (_m *EmojiStore) Delete(emoji *model.Emoji, time int64) error { 21 ret := _m.Called(emoji, time) 22 23 var r0 error 24 if rf, ok := ret.Get(0).(func(*model.Emoji, int64) error); ok { 25 r0 = rf(emoji, time) 26 } else { 27 r0 = ret.Error(0) 28 } 29 30 return r0 31} 32 33// Get provides a mock function with given fields: ctx, id, allowFromCache 34func (_m *EmojiStore) Get(ctx context.Context, id string, allowFromCache bool) (*model.Emoji, error) { 35 ret := _m.Called(ctx, id, allowFromCache) 36 37 var r0 *model.Emoji 38 if rf, ok := ret.Get(0).(func(context.Context, string, bool) *model.Emoji); ok { 39 r0 = rf(ctx, id, allowFromCache) 40 } else { 41 if ret.Get(0) != nil { 42 r0 = ret.Get(0).(*model.Emoji) 43 } 44 } 45 46 var r1 error 47 if rf, ok := ret.Get(1).(func(context.Context, string, bool) error); ok { 48 r1 = rf(ctx, id, allowFromCache) 49 } else { 50 r1 = ret.Error(1) 51 } 52 53 return r0, r1 54} 55 56// GetByName provides a mock function with given fields: ctx, name, allowFromCache 57func (_m *EmojiStore) GetByName(ctx context.Context, name string, allowFromCache bool) (*model.Emoji, error) { 58 ret := _m.Called(ctx, name, allowFromCache) 59 60 var r0 *model.Emoji 61 if rf, ok := ret.Get(0).(func(context.Context, string, bool) *model.Emoji); ok { 62 r0 = rf(ctx, name, allowFromCache) 63 } else { 64 if ret.Get(0) != nil { 65 r0 = ret.Get(0).(*model.Emoji) 66 } 67 } 68 69 var r1 error 70 if rf, ok := ret.Get(1).(func(context.Context, string, bool) error); ok { 71 r1 = rf(ctx, name, allowFromCache) 72 } else { 73 r1 = ret.Error(1) 74 } 75 76 return r0, r1 77} 78 79// GetList provides a mock function with given fields: offset, limit, sort 80func (_m *EmojiStore) GetList(offset int, limit int, sort string) ([]*model.Emoji, error) { 81 ret := _m.Called(offset, limit, sort) 82 83 var r0 []*model.Emoji 84 if rf, ok := ret.Get(0).(func(int, int, string) []*model.Emoji); ok { 85 r0 = rf(offset, limit, sort) 86 } else { 87 if ret.Get(0) != nil { 88 r0 = ret.Get(0).([]*model.Emoji) 89 } 90 } 91 92 var r1 error 93 if rf, ok := ret.Get(1).(func(int, int, string) error); ok { 94 r1 = rf(offset, limit, sort) 95 } else { 96 r1 = ret.Error(1) 97 } 98 99 return r0, r1 100} 101 102// GetMultipleByName provides a mock function with given fields: names 103func (_m *EmojiStore) GetMultipleByName(names []string) ([]*model.Emoji, error) { 104 ret := _m.Called(names) 105 106 var r0 []*model.Emoji 107 if rf, ok := ret.Get(0).(func([]string) []*model.Emoji); ok { 108 r0 = rf(names) 109 } else { 110 if ret.Get(0) != nil { 111 r0 = ret.Get(0).([]*model.Emoji) 112 } 113 } 114 115 var r1 error 116 if rf, ok := ret.Get(1).(func([]string) error); ok { 117 r1 = rf(names) 118 } else { 119 r1 = ret.Error(1) 120 } 121 122 return r0, r1 123} 124 125// Save provides a mock function with given fields: emoji 126func (_m *EmojiStore) Save(emoji *model.Emoji) (*model.Emoji, error) { 127 ret := _m.Called(emoji) 128 129 var r0 *model.Emoji 130 if rf, ok := ret.Get(0).(func(*model.Emoji) *model.Emoji); ok { 131 r0 = rf(emoji) 132 } else { 133 if ret.Get(0) != nil { 134 r0 = ret.Get(0).(*model.Emoji) 135 } 136 } 137 138 var r1 error 139 if rf, ok := ret.Get(1).(func(*model.Emoji) error); ok { 140 r1 = rf(emoji) 141 } else { 142 r1 = ret.Error(1) 143 } 144 145 return r0, r1 146} 147 148// Search provides a mock function with given fields: name, prefixOnly, limit 149func (_m *EmojiStore) Search(name string, prefixOnly bool, limit int) ([]*model.Emoji, error) { 150 ret := _m.Called(name, prefixOnly, limit) 151 152 var r0 []*model.Emoji 153 if rf, ok := ret.Get(0).(func(string, bool, int) []*model.Emoji); ok { 154 r0 = rf(name, prefixOnly, limit) 155 } else { 156 if ret.Get(0) != nil { 157 r0 = ret.Get(0).([]*model.Emoji) 158 } 159 } 160 161 var r1 error 162 if rf, ok := ret.Get(1).(func(string, bool, int) error); ok { 163 r1 = rf(name, prefixOnly, limit) 164 } else { 165 r1 = ret.Error(1) 166 } 167 168 return r0, r1 169} 170