github.com/coincircle/mattermost-server@v4.8.1-0.20180321182714-9d701c704416+incompatible/store/storetest/mocks/LayeredStoreSupplier.go (about) 1 // Code generated by mockery v1.0.0 2 3 // Regenerate this file using `make store-mocks`. 4 5 package mocks 6 7 import context "context" 8 import mock "github.com/stretchr/testify/mock" 9 import model "github.com/mattermost/mattermost-server/model" 10 import store "github.com/mattermost/mattermost-server/store" 11 12 // LayeredStoreSupplier is an autogenerated mock type for the LayeredStoreSupplier type 13 type LayeredStoreSupplier struct { 14 mock.Mock 15 } 16 17 // Next provides a mock function with given fields: 18 func (_m *LayeredStoreSupplier) Next() store.LayeredStoreSupplier { 19 ret := _m.Called() 20 21 var r0 store.LayeredStoreSupplier 22 if rf, ok := ret.Get(0).(func() store.LayeredStoreSupplier); ok { 23 r0 = rf() 24 } else { 25 if ret.Get(0) != nil { 26 r0 = ret.Get(0).(store.LayeredStoreSupplier) 27 } 28 } 29 30 return r0 31 } 32 33 // ReactionDelete provides a mock function with given fields: ctx, reaction, hints 34 func (_m *LayeredStoreSupplier) ReactionDelete(ctx context.Context, reaction *model.Reaction, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 35 _va := make([]interface{}, len(hints)) 36 for _i := range hints { 37 _va[_i] = hints[_i] 38 } 39 var _ca []interface{} 40 _ca = append(_ca, ctx, reaction) 41 _ca = append(_ca, _va...) 42 ret := _m.Called(_ca...) 43 44 var r0 *store.LayeredStoreSupplierResult 45 if rf, ok := ret.Get(0).(func(context.Context, *model.Reaction, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 46 r0 = rf(ctx, reaction, hints...) 47 } else { 48 if ret.Get(0) != nil { 49 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 50 } 51 } 52 53 return r0 54 } 55 56 // ReactionDeleteAllWithEmojiName provides a mock function with given fields: ctx, emojiName, hints 57 func (_m *LayeredStoreSupplier) ReactionDeleteAllWithEmojiName(ctx context.Context, emojiName string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 58 _va := make([]interface{}, len(hints)) 59 for _i := range hints { 60 _va[_i] = hints[_i] 61 } 62 var _ca []interface{} 63 _ca = append(_ca, ctx, emojiName) 64 _ca = append(_ca, _va...) 65 ret := _m.Called(_ca...) 66 67 var r0 *store.LayeredStoreSupplierResult 68 if rf, ok := ret.Get(0).(func(context.Context, string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 69 r0 = rf(ctx, emojiName, hints...) 70 } else { 71 if ret.Get(0) != nil { 72 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 73 } 74 } 75 76 return r0 77 } 78 79 // ReactionGetForPost provides a mock function with given fields: ctx, postId, hints 80 func (_m *LayeredStoreSupplier) ReactionGetForPost(ctx context.Context, postId string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 81 _va := make([]interface{}, len(hints)) 82 for _i := range hints { 83 _va[_i] = hints[_i] 84 } 85 var _ca []interface{} 86 _ca = append(_ca, ctx, postId) 87 _ca = append(_ca, _va...) 88 ret := _m.Called(_ca...) 89 90 var r0 *store.LayeredStoreSupplierResult 91 if rf, ok := ret.Get(0).(func(context.Context, string, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 92 r0 = rf(ctx, postId, hints...) 93 } else { 94 if ret.Get(0) != nil { 95 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 96 } 97 } 98 99 return r0 100 } 101 102 // ReactionPermanentDeleteBatch provides a mock function with given fields: ctx, endTime, limit, hints 103 func (_m *LayeredStoreSupplier) ReactionPermanentDeleteBatch(ctx context.Context, endTime int64, limit int64, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 104 _va := make([]interface{}, len(hints)) 105 for _i := range hints { 106 _va[_i] = hints[_i] 107 } 108 var _ca []interface{} 109 _ca = append(_ca, ctx, endTime, limit) 110 _ca = append(_ca, _va...) 111 ret := _m.Called(_ca...) 112 113 var r0 *store.LayeredStoreSupplierResult 114 if rf, ok := ret.Get(0).(func(context.Context, int64, int64, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 115 r0 = rf(ctx, endTime, limit, hints...) 116 } else { 117 if ret.Get(0) != nil { 118 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 119 } 120 } 121 122 return r0 123 } 124 125 // ReactionSave provides a mock function with given fields: ctx, reaction, hints 126 func (_m *LayeredStoreSupplier) ReactionSave(ctx context.Context, reaction *model.Reaction, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { 127 _va := make([]interface{}, len(hints)) 128 for _i := range hints { 129 _va[_i] = hints[_i] 130 } 131 var _ca []interface{} 132 _ca = append(_ca, ctx, reaction) 133 _ca = append(_ca, _va...) 134 ret := _m.Called(_ca...) 135 136 var r0 *store.LayeredStoreSupplierResult 137 if rf, ok := ret.Get(0).(func(context.Context, *model.Reaction, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { 138 r0 = rf(ctx, reaction, hints...) 139 } else { 140 if ret.Get(0) != nil { 141 r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) 142 } 143 } 144 145 return r0 146 } 147 148 // SetChainNext provides a mock function with given fields: _a0 149 func (_m *LayeredStoreSupplier) SetChainNext(_a0 store.LayeredStoreSupplier) { 150 _m.Called(_a0) 151 }