* model -> public/model * plugin -> public/plugin * public/model/utils -> public/utils * platform/shared/mlog -> public/shared/mlog * platform/shared/i18n -> public/shared/i18n * platform/shared/markdown -> public/shared/markdown * platform/services/timezones -> public/shared/timezones * channels/einterfaces -> einterfaces * expose public/ submodule * go mod tidy * .github: cache-dependency-path, setup-go-work * modules-tidy for public/ too * remove old gomodtidy
36 строки
1.0 KiB
Go
36 строки
1.0 KiB
Go
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
|
|
|
// Regenerate this file using `make einterfaces-mocks`.
|
|
|
|
package mocks
|
|
|
|
import (
|
|
model "github.com/mattermost/mattermost-server/server/public/model"
|
|
mock "github.com/stretchr/testify/mock"
|
|
)
|
|
|
|
// ClusterMessageHandler is an autogenerated mock type for the ClusterMessageHandler type
|
|
type ClusterMessageHandler struct {
|
|
mock.Mock
|
|
}
|
|
|
|
// Execute provides a mock function with given fields: msg
|
|
func (_m *ClusterMessageHandler) Execute(msg *model.ClusterMessage) {
|
|
_m.Called(msg)
|
|
}
|
|
|
|
type mockConstructorTestingTNewClusterMessageHandler interface {
|
|
mock.TestingT
|
|
Cleanup(func())
|
|
}
|
|
|
|
// NewClusterMessageHandler creates a new instance of ClusterMessageHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
|
func NewClusterMessageHandler(t mockConstructorTestingTNewClusterMessageHandler) *ClusterMessageHandler {
|
|
mock := &ClusterMessageHandler{}
|
|
mock.Mock.Test(t)
|
|
|
|
t.Cleanup(func() { mock.AssertExpectations(t) })
|
|
|
|
return mock
|
|
}
|