MM-57759: Bump mockery to version 2.42.2 to support go 1.22^ (#26761)
Этот коммит содержится в:
@@ -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`.
|
||||
|
||||
@@ -18,6 +18,10 @@ type LicenseInterface struct {
|
||||
func (_m *LicenseInterface) CanStartTrial() (bool, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for CanStartTrial")
|
||||
}
|
||||
|
||||
var r0 bool
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() (bool, error)); ok {
|
||||
@@ -42,6 +46,10 @@ func (_m *LicenseInterface) CanStartTrial() (bool, error) {
|
||||
func (_m *LicenseInterface) GetPrevTrial() (*model.License, error) {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for GetPrevTrial")
|
||||
}
|
||||
|
||||
var r0 *model.License
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func() (*model.License, error)); ok {
|
||||
@@ -64,13 +72,12 @@ func (_m *LicenseInterface) GetPrevTrial() (*model.License, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
type mockConstructorTestingTNewLicenseInterface interface {
|
||||
// NewLicenseInterface creates a new instance of LicenseInterface. 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 NewLicenseInterface(t interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}
|
||||
|
||||
// NewLicenseInterface creates a new instance of LicenseInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewLicenseInterface(t mockConstructorTestingTNewLicenseInterface) *LicenseInterface {
|
||||
}) *LicenseInterface {
|
||||
mock := &LicenseInterface{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user