github.com/qichengzx/mattermost-server@v4.5.1-0.20180604164826-2c75247c97d0+incompatible/store/storetest/mocks/PluginStore.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 mock "github.com/stretchr/testify/mock" 8 import model "github.com/mattermost/mattermost-server/model" 9 import store "github.com/mattermost/mattermost-server/store" 10 11 // PluginStore is an autogenerated mock type for the PluginStore type 12 type PluginStore struct { 13 mock.Mock 14 } 15 16 // Delete provides a mock function with given fields: pluginId, key 17 func (_m *PluginStore) Delete(pluginId string, key string) store.StoreChannel { 18 ret := _m.Called(pluginId, key) 19 20 var r0 store.StoreChannel 21 if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok { 22 r0 = rf(pluginId, key) 23 } else { 24 if ret.Get(0) != nil { 25 r0 = ret.Get(0).(store.StoreChannel) 26 } 27 } 28 29 return r0 30 } 31 32 // Get provides a mock function with given fields: pluginId, key 33 func (_m *PluginStore) Get(pluginId string, key string) store.StoreChannel { 34 ret := _m.Called(pluginId, key) 35 36 var r0 store.StoreChannel 37 if rf, ok := ret.Get(0).(func(string, string) store.StoreChannel); ok { 38 r0 = rf(pluginId, key) 39 } else { 40 if ret.Get(0) != nil { 41 r0 = ret.Get(0).(store.StoreChannel) 42 } 43 } 44 45 return r0 46 } 47 48 // SaveOrUpdate provides a mock function with given fields: keyVal 49 func (_m *PluginStore) SaveOrUpdate(keyVal *model.PluginKeyValue) store.StoreChannel { 50 ret := _m.Called(keyVal) 51 52 var r0 store.StoreChannel 53 if rf, ok := ret.Get(0).(func(*model.PluginKeyValue) store.StoreChannel); ok { 54 r0 = rf(keyVal) 55 } else { 56 if ret.Get(0) != nil { 57 r0 = ret.Get(0).(store.StoreChannel) 58 } 59 } 60 61 return r0 62 }