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