mattermost-community-enterp.../channels/store/storetest/mocks/PostPriorityStore.go
Claude ec1f89217a Merge: Complete Mattermost Server with Community Enterprise
Full Mattermost server source with integrated Community Enterprise features.
Includes vendor directory for offline/air-gapped builds.

Structure:
- enterprise-impl/: Enterprise feature implementations
- enterprise-community/: Init files that register implementations
- enterprise/: Bridge imports (community_imports.go)
- vendor/: All dependencies for offline builds

Build (online):
  go build ./cmd/mattermost

Build (offline/air-gapped):
  go build -mod=vendor ./cmd/mattermost

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-17 23:59:07 +09:00

138 lines
3.2 KiB
Go

// 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
}