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

Этот коммит содержится в:
Agniva De Sarker
2024-04-12 19:01:24 +05:30
коммит произвёл GitHub
родитель c76a58b4b8
Коммит cd3b5b46e1
84 изменённых файлов: 504 добавлений и 5378 удалений

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

@@ -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`.
@@ -19,10 +19,6 @@ type SamlInterface struct {
func (_m *SamlInterface) BuildRequest(c request.CTX, relayState string) (*model.SamlAuthRequest, *model.AppError) {
ret := _m.Called(c, relayState)
if len(ret) == 0 {
panic("no return value specified for BuildRequest")
}
var r0 *model.SamlAuthRequest
var r1 *model.AppError
if rf, ok := ret.Get(0).(func(request.CTX, string) (*model.SamlAuthRequest, *model.AppError)); ok {
@@ -51,10 +47,6 @@ func (_m *SamlInterface) BuildRequest(c request.CTX, relayState string) (*model.
func (_m *SamlInterface) CheckProviderAttributes(c request.CTX, SS *model.SamlSettings, ouser *model.User, patch *model.UserPatch) string {
ret := _m.Called(c, SS, ouser, patch)
if len(ret) == 0 {
panic("no return value specified for CheckProviderAttributes")
}
var r0 string
if rf, ok := ret.Get(0).(func(request.CTX, *model.SamlSettings, *model.User, *model.UserPatch) string); ok {
r0 = rf(c, SS, ouser, patch)
@@ -69,10 +61,6 @@ func (_m *SamlInterface) CheckProviderAttributes(c request.CTX, SS *model.SamlSe
func (_m *SamlInterface) ConfigureSP(c request.CTX) error {
ret := _m.Called(c)
if len(ret) == 0 {
panic("no return value specified for ConfigureSP")
}
var r0 error
if rf, ok := ret.Get(0).(func(request.CTX) error); ok {
r0 = rf(c)
@@ -87,10 +75,6 @@ func (_m *SamlInterface) ConfigureSP(c request.CTX) error {
func (_m *SamlInterface) DoLogin(c request.CTX, encodedXML string, relayState map[string]string) (*model.User, *model.AppError) {
ret := _m.Called(c, encodedXML, relayState)
if len(ret) == 0 {
panic("no return value specified for DoLogin")
}
var r0 *model.User
var r1 *model.AppError
if rf, ok := ret.Get(0).(func(request.CTX, string, map[string]string) (*model.User, *model.AppError)); ok {
@@ -119,10 +103,6 @@ func (_m *SamlInterface) DoLogin(c request.CTX, encodedXML string, relayState ma
func (_m *SamlInterface) GetMetadata(c request.CTX) (string, *model.AppError) {
ret := _m.Called(c)
if len(ret) == 0 {
panic("no return value specified for GetMetadata")
}
var r0 string
var r1 *model.AppError
if rf, ok := ret.Get(0).(func(request.CTX) (string, *model.AppError)); ok {
@@ -145,12 +125,13 @@ func (_m *SamlInterface) GetMetadata(c request.CTX) (string, *model.AppError) {
return r0, r1
}
// NewSamlInterface creates a new instance of SamlInterface. 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 NewSamlInterface(t interface {
type mockConstructorTestingTNewSamlInterface interface {
mock.TestingT
Cleanup(func())
}) *SamlInterface {
}
// NewSamlInterface creates a new instance of SamlInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewSamlInterface(t mockConstructorTestingTNewSamlInterface) *SamlInterface {
mock := &SamlInterface{}
mock.Mock.Test(t)