Revert "MM-57759: Bump mockery to version 2.42.2 to support go 1.22^" (#26772)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
c76a58b4b8
Коммит
cd3b5b46e1
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make einterfaces-mocks`.
|
||||
|
||||
@@ -20,10 +20,6 @@ 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)
|
||||
@@ -40,10 +36,6 @@ 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()
|
||||
@@ -58,10 +50,6 @@ 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()
|
||||
@@ -78,10 +66,6 @@ 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 {
|
||||
@@ -110,10 +94,6 @@ 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 {
|
||||
@@ -142,10 +122,6 @@ 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()
|
||||
@@ -162,10 +138,6 @@ 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 {
|
||||
@@ -194,10 +166,6 @@ 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()
|
||||
@@ -212,10 +180,6 @@ 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()
|
||||
@@ -235,10 +199,6 @@ 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 {
|
||||
@@ -277,10 +237,6 @@ 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)
|
||||
@@ -301,12 +257,13 @@ func (_m *ClusterInterface) StopInterNodeCommunication() {
|
||||
_m.Called()
|
||||
}
|
||||
|
||||
// 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 {
|
||||
type mockConstructorTestingTNewClusterInterface interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}) *ClusterInterface {
|
||||
}
|
||||
|
||||
// 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 {
|
||||
mock := &ClusterInterface{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user