MM-57759: Bump mockery to version 2.42.2 to support go 1.22^ (#26761)

Этот коммит содержится в:
Ezekiel
2024-04-12 16:38:34 +08:00
коммит произвёл GitHub
родитель 92f11f8971
Коммит 98712737e6
84 изменённых файлов: 5378 добавлений и 504 удалений

Просмотреть файл

@@ -1,4 +1,4 @@
// Code generated by mockery v2.23.2. DO NOT EDIT.
// Code generated by mockery v2.42.2. DO NOT EDIT.
// Regenerate this file using `make einterfaces-mocks`.
@@ -20,6 +20,10 @@ type ClusterInterface struct {
func (_m *ClusterInterface) ConfigChanged(previousConfig *model.Config, newConfig *model.Config, sendToOtherServer bool) *model.AppError {
ret := _m.Called(previousConfig, newConfig, sendToOtherServer)
if len(ret) == 0 {
panic("no return value specified for ConfigChanged")
}
var r0 *model.AppError
if rf, ok := ret.Get(0).(func(*model.Config, *model.Config, bool) *model.AppError); ok {
r0 = rf(previousConfig, newConfig, sendToOtherServer)
@@ -36,6 +40,10 @@ func (_m *ClusterInterface) ConfigChanged(previousConfig *model.Config, newConfi
func (_m *ClusterInterface) GetClusterId() string {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for GetClusterId")
}
var r0 string
if rf, ok := ret.Get(0).(func() string); ok {
r0 = rf()
@@ -50,6 +58,10 @@ func (_m *ClusterInterface) GetClusterId() string {
func (_m *ClusterInterface) GetClusterInfos() []*model.ClusterInfo {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for GetClusterInfos")
}
var r0 []*model.ClusterInfo
if rf, ok := ret.Get(0).(func() []*model.ClusterInfo); ok {
r0 = rf()
@@ -66,6 +78,10 @@ func (_m *ClusterInterface) GetClusterInfos() []*model.ClusterInfo {
func (_m *ClusterInterface) GetClusterStats() ([]*model.ClusterStats, *model.AppError) {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for GetClusterStats")
}
var r0 []*model.ClusterStats
var r1 *model.AppError
if rf, ok := ret.Get(0).(func() ([]*model.ClusterStats, *model.AppError)); ok {
@@ -94,6 +110,10 @@ func (_m *ClusterInterface) GetClusterStats() ([]*model.ClusterStats, *model.App
func (_m *ClusterInterface) GetLogs(page int, perPage int) ([]string, *model.AppError) {
ret := _m.Called(page, perPage)
if len(ret) == 0 {
panic("no return value specified for GetLogs")
}
var r0 []string
var r1 *model.AppError
if rf, ok := ret.Get(0).(func(int, int) ([]string, *model.AppError)); ok {
@@ -122,6 +142,10 @@ func (_m *ClusterInterface) GetLogs(page int, perPage int) ([]string, *model.App
func (_m *ClusterInterface) GetMyClusterInfo() *model.ClusterInfo {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for GetMyClusterInfo")
}
var r0 *model.ClusterInfo
if rf, ok := ret.Get(0).(func() *model.ClusterInfo); ok {
r0 = rf()
@@ -138,6 +162,10 @@ func (_m *ClusterInterface) GetMyClusterInfo() *model.ClusterInfo {
func (_m *ClusterInterface) GetPluginStatuses() (model.PluginStatuses, *model.AppError) {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for GetPluginStatuses")
}
var r0 model.PluginStatuses
var r1 *model.AppError
if rf, ok := ret.Get(0).(func() (model.PluginStatuses, *model.AppError)); ok {
@@ -166,6 +194,10 @@ func (_m *ClusterInterface) GetPluginStatuses() (model.PluginStatuses, *model.Ap
func (_m *ClusterInterface) HealthScore() int {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for HealthScore")
}
var r0 int
if rf, ok := ret.Get(0).(func() int); ok {
r0 = rf()
@@ -180,6 +212,10 @@ func (_m *ClusterInterface) HealthScore() int {
func (_m *ClusterInterface) IsLeader() bool {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for IsLeader")
}
var r0 bool
if rf, ok := ret.Get(0).(func() bool); ok {
r0 = rf()
@@ -199,6 +235,10 @@ func (_m *ClusterInterface) NotifyMsg(buf []byte) {
func (_m *ClusterInterface) QueryLogs(page int, perPage int) (map[string][]string, *model.AppError) {
ret := _m.Called(page, perPage)
if len(ret) == 0 {
panic("no return value specified for QueryLogs")
}
var r0 map[string][]string
var r1 *model.AppError
if rf, ok := ret.Get(0).(func(int, int) (map[string][]string, *model.AppError)); ok {
@@ -237,6 +277,10 @@ func (_m *ClusterInterface) SendClusterMessage(msg *model.ClusterMessage) {
func (_m *ClusterInterface) SendClusterMessageToNode(nodeID string, msg *model.ClusterMessage) error {
ret := _m.Called(nodeID, msg)
if len(ret) == 0 {
panic("no return value specified for SendClusterMessageToNode")
}
var r0 error
if rf, ok := ret.Get(0).(func(string, *model.ClusterMessage) error); ok {
r0 = rf(nodeID, msg)
@@ -257,13 +301,12 @@ func (_m *ClusterInterface) StopInterNodeCommunication() {
_m.Called()
}
type mockConstructorTestingTNewClusterInterface interface {
// NewClusterInterface creates a new instance of ClusterInterface. 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 NewClusterInterface(t interface {
mock.TestingT
Cleanup(func())
}
// NewClusterInterface creates a new instance of ClusterInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewClusterInterface(t mockConstructorTestingTNewClusterInterface) *ClusterInterface {
}) *ClusterInterface {
mock := &ClusterInterface{}
mock.Mock.Test(t)