github.com/haalcala/mattermost-server-change-repo/v5@v5.33.2/store/storetest/mocks/StatusStore.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 ( 8 model "github.com/mattermost/mattermost-server/v5/model" 9 mock "github.com/stretchr/testify/mock" 10 ) 11 12 // StatusStore is an autogenerated mock type for the StatusStore type 13 type StatusStore struct { 14 mock.Mock 15 } 16 17 // Get provides a mock function with given fields: userId 18 func (_m *StatusStore) Get(userId string) (*model.Status, error) { 19 ret := _m.Called(userId) 20 21 var r0 *model.Status 22 if rf, ok := ret.Get(0).(func(string) *model.Status); ok { 23 r0 = rf(userId) 24 } else { 25 if ret.Get(0) != nil { 26 r0 = ret.Get(0).(*model.Status) 27 } 28 } 29 30 var r1 error 31 if rf, ok := ret.Get(1).(func(string) error); ok { 32 r1 = rf(userId) 33 } else { 34 r1 = ret.Error(1) 35 } 36 37 return r0, r1 38 } 39 40 // GetByIds provides a mock function with given fields: userIds 41 func (_m *StatusStore) GetByIds(userIds []string) ([]*model.Status, error) { 42 ret := _m.Called(userIds) 43 44 var r0 []*model.Status 45 if rf, ok := ret.Get(0).(func([]string) []*model.Status); ok { 46 r0 = rf(userIds) 47 } else { 48 if ret.Get(0) != nil { 49 r0 = ret.Get(0).([]*model.Status) 50 } 51 } 52 53 var r1 error 54 if rf, ok := ret.Get(1).(func([]string) error); ok { 55 r1 = rf(userIds) 56 } else { 57 r1 = ret.Error(1) 58 } 59 60 return r0, r1 61 } 62 63 // GetTotalActiveUsersCount provides a mock function with given fields: 64 func (_m *StatusStore) GetTotalActiveUsersCount() (int64, error) { 65 ret := _m.Called() 66 67 var r0 int64 68 if rf, ok := ret.Get(0).(func() int64); ok { 69 r0 = rf() 70 } else { 71 r0 = ret.Get(0).(int64) 72 } 73 74 var r1 error 75 if rf, ok := ret.Get(1).(func() error); ok { 76 r1 = rf() 77 } else { 78 r1 = ret.Error(1) 79 } 80 81 return r0, r1 82 } 83 84 // ResetAll provides a mock function with given fields: 85 func (_m *StatusStore) ResetAll() error { 86 ret := _m.Called() 87 88 var r0 error 89 if rf, ok := ret.Get(0).(func() error); ok { 90 r0 = rf() 91 } else { 92 r0 = ret.Error(0) 93 } 94 95 return r0 96 } 97 98 // SaveOrUpdate provides a mock function with given fields: status 99 func (_m *StatusStore) SaveOrUpdate(status *model.Status) error { 100 ret := _m.Called(status) 101 102 var r0 error 103 if rf, ok := ret.Get(0).(func(*model.Status) error); ok { 104 r0 = rf(status) 105 } else { 106 r0 = ret.Error(0) 107 } 108 109 return r0 110 } 111 112 // UpdateLastActivityAt provides a mock function with given fields: userId, lastActivityAt 113 func (_m *StatusStore) UpdateLastActivityAt(userId string, lastActivityAt int64) error { 114 ret := _m.Called(userId, lastActivityAt) 115 116 var r0 error 117 if rf, ok := ret.Get(0).(func(string, int64) error); ok { 118 r0 = rf(userId, lastActivityAt) 119 } else { 120 r0 = ret.Error(0) 121 } 122 123 return r0 124 }