// Code generated by mockery v2.53.4. DO NOT EDIT. // Regenerate this file using `make store-mocks`. package mocks import ( request "github.com/mattermost/mattermost/server/public/shared/request" mock "github.com/stretchr/testify/mock" ) // DeliveryTrackingStore is an autogenerated mock type for the DeliveryTrackingStore type type DeliveryTrackingStore struct { mock.Mock } // ClearCaches provides a mock function with no fields func (_m *DeliveryTrackingStore) ClearCaches() { _m.Called() } // GetTrackedChannelIDs provides a mock function with given fields: rctx func (_m *DeliveryTrackingStore) GetTrackedChannelIDs(rctx request.CTX) ([]string, error) { ret := _m.Called(rctx) if len(ret) == 0 { panic("no return value specified for GetTrackedChannelIDs") } var r0 []string var r1 error if rf, ok := ret.Get(0).(func(request.CTX) ([]string, error)); ok { return rf(rctx) } if rf, ok := ret.Get(0).(func(request.CTX) []string); ok { r0 = rf(rctx) } else { if ret.Get(0) != nil { r0 = ret.Get(0).([]string) } } if rf, ok := ret.Get(1).(func(request.CTX) error); ok { r1 = rf(rctx) } else { r1 = ret.Error(1) } return r0, r1 } // IsChannelTrackable provides a mock function with given fields: rctx, channelID func (_m *DeliveryTrackingStore) IsChannelTrackable(rctx request.CTX, channelID string) (bool, error) { ret := _m.Called(rctx, channelID) if len(ret) == 0 { panic("no return value specified for IsChannelTrackable") } var r0 bool var r1 error if rf, ok := ret.Get(0).(func(request.CTX, string) (bool, error)); ok { return rf(rctx, channelID) } if rf, ok := ret.Get(0).(func(request.CTX, string) bool); ok { r0 = rf(rctx, channelID) } else { r0 = ret.Get(0).(bool) } if rf, ok := ret.Get(1).(func(request.CTX, string) error); ok { r1 = rf(rctx, channelID) } else { r1 = ret.Error(1) } return r0, r1 } // IsChannelTracked provides a mock function with given fields: rctx, channelID func (_m *DeliveryTrackingStore) IsChannelTracked(rctx request.CTX, channelID string) (bool, error) { ret := _m.Called(rctx, channelID) if len(ret) == 0 { panic("no return value specified for IsChannelTracked") } var r0 bool var r1 error if rf, ok := ret.Get(0).(func(request.CTX, string) (bool, error)); ok { return rf(rctx, channelID) } if rf, ok := ret.Get(0).(func(request.CTX, string) bool); ok { r0 = rf(rctx, channelID) } else { r0 = ret.Get(0).(bool) } if rf, ok := ret.Get(1).(func(request.CTX, string) error); ok { r1 = rf(rctx, channelID) } else { r1 = ret.Error(1) } return r0, r1 } // SaveTrackedChannelIDs provides a mock function with given fields: rctx, channelIDs func (_m *DeliveryTrackingStore) SaveTrackedChannelIDs(rctx request.CTX, channelIDs []string) error { ret := _m.Called(rctx, channelIDs) if len(ret) == 0 { panic("no return value specified for SaveTrackedChannelIDs") } var r0 error if rf, ok := ret.Get(0).(func(request.CTX, []string) error); ok { r0 = rf(rctx, channelIDs) } else { r0 = ret.Error(0) } return r0 } // NewDeliveryTrackingStore creates a new instance of DeliveryTrackingStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. func NewDeliveryTrackingStore(t interface { mock.TestingT Cleanup(func()) }) *DeliveryTrackingStore { mock := &DeliveryTrackingStore{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock }