MM-57759: Added mockery support for 1.22 (#26774)
* Revert "Revert "MM-57759: Bump mockery to version 2.42.2 to support go 1.22^" (#26772)"
This reverts commit cd3b5b46e1.
* Added the hooks.go file changes as well
```release-note
NONE
```
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
96ab35ba34
Коммит
870cee30c6
@@ -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 misc-mocks`.
|
||||
|
||||
@@ -18,6 +18,10 @@ type LicenseValidatorIface struct {
|
||||
func (_m *LicenseValidatorIface) LicenseFromBytes(licenseBytes []byte) (*model.License, *model.AppError) {
|
||||
ret := _m.Called(licenseBytes)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for LicenseFromBytes")
|
||||
}
|
||||
|
||||
var r0 *model.License
|
||||
var r1 *model.AppError
|
||||
if rf, ok := ret.Get(0).(func([]byte) (*model.License, *model.AppError)); ok {
|
||||
@@ -46,6 +50,10 @@ func (_m *LicenseValidatorIface) LicenseFromBytes(licenseBytes []byte) (*model.L
|
||||
func (_m *LicenseValidatorIface) ValidateLicense(signed []byte) (string, error) {
|
||||
ret := _m.Called(signed)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for ValidateLicense")
|
||||
}
|
||||
|
||||
var r0 string
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func([]byte) (string, error)); ok {
|
||||
@@ -66,13 +74,12 @@ func (_m *LicenseValidatorIface) ValidateLicense(signed []byte) (string, error)
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
type mockConstructorTestingTNewLicenseValidatorIface interface {
|
||||
// NewLicenseValidatorIface creates a new instance of LicenseValidatorIface. 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 NewLicenseValidatorIface(t interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}
|
||||
|
||||
// NewLicenseValidatorIface creates a new instance of LicenseValidatorIface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewLicenseValidatorIface(t mockConstructorTestingTNewLicenseValidatorIface) *LicenseValidatorIface {
|
||||
}) *LicenseValidatorIface {
|
||||
mock := &LicenseValidatorIface{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user