// Code generated by mockery v2.53.4. DO NOT EDIT. // Regenerate this file using `make store-mocks`. package mocks import ( model "github.com/mattermost/mattermost/server/public/model" mock "github.com/stretchr/testify/mock" ) // PostPriorityStore is an autogenerated mock type for the PostPriorityStore type type PostPriorityStore struct { mock.Mock } // Delete provides a mock function with given fields: postID func (_m *PostPriorityStore) Delete(postID string) error { ret := _m.Called(postID) if len(ret) == 0 { panic("no return value specified for Delete") } var r0 error if rf, ok := ret.Get(0).(func(string) error); ok { r0 = rf(postID) } else { r0 = ret.Error(0) } return r0 } // GetForPost provides a mock function with given fields: postID func (_m *PostPriorityStore) GetForPost(postID string) (*model.PostPriority, error) { ret := _m.Called(postID) if len(ret) == 0 { panic("no return value specified for GetForPost") } var r0 *model.PostPriority var r1 error if rf, ok := ret.Get(0).(func(string) (*model.PostPriority, error)); ok { return rf(postID) } if rf, ok := ret.Get(0).(func(string) *model.PostPriority); ok { r0 = rf(postID) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*model.PostPriority) } } if rf, ok := ret.Get(1).(func(string) error); ok { r1 = rf(postID) } else { r1 = ret.Error(1) } return r0, r1 } // GetForPosts provides a mock function with given fields: ids func (_m *PostPriorityStore) GetForPosts(ids []string) ([]*model.PostPriority, error) { ret := _m.Called(ids) if len(ret) == 0 { panic("no return value specified for GetForPosts") } var r0 []*model.PostPriority var r1 error if rf, ok := ret.Get(0).(func([]string) ([]*model.PostPriority, error)); ok { return rf(ids) } if rf, ok := ret.Get(0).(func([]string) []*model.PostPriority); ok { r0 = rf(ids) } else { if ret.Get(0) != nil { r0 = ret.Get(0).([]*model.PostPriority) } } if rf, ok := ret.Get(1).(func([]string) error); ok { r1 = rf(ids) } else { r1 = ret.Error(1) } return r0, r1 } // Save provides a mock function with given fields: priority func (_m *PostPriorityStore) Save(priority *model.PostPriority) (*model.PostPriority, error) { ret := _m.Called(priority) if len(ret) == 0 { panic("no return value specified for Save") } var r0 *model.PostPriority var r1 error if rf, ok := ret.Get(0).(func(*model.PostPriority) (*model.PostPriority, error)); ok { return rf(priority) } if rf, ok := ret.Get(0).(func(*model.PostPriority) *model.PostPriority); ok { r0 = rf(priority) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*model.PostPriority) } } if rf, ok := ret.Get(1).(func(*model.PostPriority) error); ok { r1 = rf(priority) } else { r1 = ret.Error(1) } return r0, r1 } // NewPostPriorityStore creates a new instance of PostPriorityStore. 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 NewPostPriorityStore(t interface { mock.TestingT Cleanup(func()) }) *PostPriorityStore { mock := &PostPriorityStore{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock }