github.com/mad-app/mattermost-server@v5.11.1+incompatible/store/storetest/mocks/TokenStore.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 // TokenStore is an autogenerated mock type for the TokenStore type 12 type TokenStore struct { 13 mock.Mock 14 } 15 16 // Cleanup provides a mock function with given fields: 17 func (_m *TokenStore) Cleanup() { 18 _m.Called() 19 } 20 21 // Delete provides a mock function with given fields: token 22 func (_m *TokenStore) Delete(token string) store.StoreChannel { 23 ret := _m.Called(token) 24 25 var r0 store.StoreChannel 26 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 27 r0 = rf(token) 28 } else { 29 if ret.Get(0) != nil { 30 r0 = ret.Get(0).(store.StoreChannel) 31 } 32 } 33 34 return r0 35 } 36 37 // GetByToken provides a mock function with given fields: token 38 func (_m *TokenStore) GetByToken(token string) store.StoreChannel { 39 ret := _m.Called(token) 40 41 var r0 store.StoreChannel 42 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 43 r0 = rf(token) 44 } else { 45 if ret.Get(0) != nil { 46 r0 = ret.Get(0).(store.StoreChannel) 47 } 48 } 49 50 return r0 51 } 52 53 // RemoveAllTokensByType provides a mock function with given fields: tokenType 54 func (_m *TokenStore) RemoveAllTokensByType(tokenType string) store.StoreChannel { 55 ret := _m.Called(tokenType) 56 57 var r0 store.StoreChannel 58 if rf, ok := ret.Get(0).(func(string) store.StoreChannel); ok { 59 r0 = rf(tokenType) 60 } else { 61 if ret.Get(0) != nil { 62 r0 = ret.Get(0).(store.StoreChannel) 63 } 64 } 65 66 return r0 67 } 68 69 // Save provides a mock function with given fields: recovery 70 func (_m *TokenStore) Save(recovery *model.Token) store.StoreChannel { 71 ret := _m.Called(recovery) 72 73 var r0 store.StoreChannel 74 if rf, ok := ret.Get(0).(func(*model.Token) store.StoreChannel); ok { 75 r0 = rf(recovery) 76 } else { 77 if ret.Get(0) != nil { 78 r0 = ret.Get(0).(store.StoreChannel) 79 } 80 } 81 82 return r0 83 }