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 CloudInterface struct {
func (_m *CloudInterface) ApplyIPFilters(userID string, ranges *model.AllowedIPRanges) (*model.AllowedIPRanges, error) {
ret := _m.Called(userID, ranges)
if len(ret) == 0 {
panic("no return value specified for ApplyIPFilters")
}
var r0 *model.AllowedIPRanges
var r1 error
if rf, ok := ret.Get(0).(func(string, *model.AllowedIPRanges) (*model.AllowedIPRanges, error)); ok {
@@ -49,10 +45,6 @@ func (_m *CloudInterface) ApplyIPFilters(userID string, ranges *model.AllowedIPR
func (_m *CloudInterface) BootstrapSelfHostedSignup(req model.BootstrapSelfHostedSignupRequest) (*model.BootstrapSelfHostedSignupResponse, error) {
ret := _m.Called(req)
if len(ret) == 0 {
panic("no return value specified for BootstrapSelfHostedSignup")
}
var r0 *model.BootstrapSelfHostedSignupResponse
var r1 error
if rf, ok := ret.Get(0).(func(model.BootstrapSelfHostedSignupRequest) (*model.BootstrapSelfHostedSignupResponse, error)); ok {
@@ -79,10 +71,6 @@ func (_m *CloudInterface) BootstrapSelfHostedSignup(req model.BootstrapSelfHoste
func (_m *CloudInterface) ChangeSubscription(userID string, subscriptionID string, subscriptionChange *model.SubscriptionChange) (*model.Subscription, error) {
ret := _m.Called(userID, subscriptionID, subscriptionChange)
if len(ret) == 0 {
panic("no return value specified for ChangeSubscription")
}
var r0 *model.Subscription
var r1 error
if rf, ok := ret.Get(0).(func(string, string, *model.SubscriptionChange) (*model.Subscription, error)); ok {
@@ -109,10 +97,6 @@ func (_m *CloudInterface) ChangeSubscription(userID string, subscriptionID strin
func (_m *CloudInterface) CheckCWSConnection(userId string) error {
ret := _m.Called(userId)
if len(ret) == 0 {
panic("no return value specified for CheckCWSConnection")
}
var r0 error
if rf, ok := ret.Get(0).(func(string) error); ok {
r0 = rf(userId)
@@ -127,10 +111,6 @@ func (_m *CloudInterface) CheckCWSConnection(userId string) error {
func (_m *CloudInterface) ConfirmCustomerPayment(userID string, confirmRequest *model.ConfirmPaymentMethodRequest) error {
ret := _m.Called(userID, confirmRequest)
if len(ret) == 0 {
panic("no return value specified for ConfirmCustomerPayment")
}
var r0 error
if rf, ok := ret.Get(0).(func(string, *model.ConfirmPaymentMethodRequest) error); ok {
r0 = rf(userID, confirmRequest)
@@ -145,10 +125,6 @@ func (_m *CloudInterface) ConfirmCustomerPayment(userID string, confirmRequest *
func (_m *CloudInterface) ConfirmSelfHostedExpansion(req model.SelfHostedConfirmPaymentMethodRequest, requesterEmail string) (*model.SelfHostedSignupConfirmResponse, error) {
ret := _m.Called(req, requesterEmail)
if len(ret) == 0 {
panic("no return value specified for ConfirmSelfHostedExpansion")
}
var r0 *model.SelfHostedSignupConfirmResponse
var r1 error
if rf, ok := ret.Get(0).(func(model.SelfHostedConfirmPaymentMethodRequest, string) (*model.SelfHostedSignupConfirmResponse, error)); ok {
@@ -175,10 +151,6 @@ func (_m *CloudInterface) ConfirmSelfHostedExpansion(req model.SelfHostedConfirm
func (_m *CloudInterface) ConfirmSelfHostedSignup(req model.SelfHostedConfirmPaymentMethodRequest, requesterEmail string) (*model.SelfHostedSignupConfirmResponse, error) {
ret := _m.Called(req, requesterEmail)
if len(ret) == 0 {
panic("no return value specified for ConfirmSelfHostedSignup")
}
var r0 *model.SelfHostedSignupConfirmResponse
var r1 error
if rf, ok := ret.Get(0).(func(model.SelfHostedConfirmPaymentMethodRequest, string) (*model.SelfHostedSignupConfirmResponse, error)); ok {
@@ -205,10 +177,6 @@ func (_m *CloudInterface) ConfirmSelfHostedSignup(req model.SelfHostedConfirmPay
func (_m *CloudInterface) ConfirmSelfHostedSignupLicenseApplication() error {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for ConfirmSelfHostedSignupLicenseApplication")
}
var r0 error
if rf, ok := ret.Get(0).(func() error); ok {
r0 = rf()
@@ -223,10 +191,6 @@ func (_m *CloudInterface) ConfirmSelfHostedSignupLicenseApplication() error {
func (_m *CloudInterface) CreateCustomerPayment(userID string) (*model.StripeSetupIntent, error) {
ret := _m.Called(userID)
if len(ret) == 0 {
panic("no return value specified for CreateCustomerPayment")
}
var r0 *model.StripeSetupIntent
var r1 error
if rf, ok := ret.Get(0).(func(string) (*model.StripeSetupIntent, error)); ok {
@@ -253,10 +217,6 @@ func (_m *CloudInterface) CreateCustomerPayment(userID string) (*model.StripeSet
func (_m *CloudInterface) CreateCustomerSelfHostedSignup(req model.SelfHostedCustomerForm, requesterEmail string) (*model.SelfHostedSignupCustomerResponse, error) {
ret := _m.Called(req, requesterEmail)
if len(ret) == 0 {
panic("no return value specified for CreateCustomerSelfHostedSignup")
}
var r0 *model.SelfHostedSignupCustomerResponse
var r1 error
if rf, ok := ret.Get(0).(func(model.SelfHostedCustomerForm, string) (*model.SelfHostedSignupCustomerResponse, error)); ok {
@@ -283,10 +243,6 @@ func (_m *CloudInterface) CreateCustomerSelfHostedSignup(req model.SelfHostedCus
func (_m *CloudInterface) CreateOrUpdateSubscriptionHistoryEvent(userID string, userCount int) (*model.SubscriptionHistory, error) {
ret := _m.Called(userID, userCount)
if len(ret) == 0 {
panic("no return value specified for CreateOrUpdateSubscriptionHistoryEvent")
}
var r0 *model.SubscriptionHistory
var r1 error
if rf, ok := ret.Get(0).(func(string, int) (*model.SubscriptionHistory, error)); ok {
@@ -313,10 +269,6 @@ func (_m *CloudInterface) CreateOrUpdateSubscriptionHistoryEvent(userID string,
func (_m *CloudInterface) GetCloudCustomer(userID string) (*model.CloudCustomer, error) {
ret := _m.Called(userID)
if len(ret) == 0 {
panic("no return value specified for GetCloudCustomer")
}
var r0 *model.CloudCustomer
var r1 error
if rf, ok := ret.Get(0).(func(string) (*model.CloudCustomer, error)); ok {
@@ -343,10 +295,6 @@ func (_m *CloudInterface) GetCloudCustomer(userID string) (*model.CloudCustomer,
func (_m *CloudInterface) GetCloudLimits(userID string) (*model.ProductLimits, error) {
ret := _m.Called(userID)
if len(ret) == 0 {
panic("no return value specified for GetCloudLimits")
}
var r0 *model.ProductLimits
var r1 error
if rf, ok := ret.Get(0).(func(string) (*model.ProductLimits, error)); ok {
@@ -373,10 +321,6 @@ func (_m *CloudInterface) GetCloudLimits(userID string) (*model.ProductLimits, e
func (_m *CloudInterface) GetCloudProduct(userID string, productID string) (*model.Product, error) {
ret := _m.Called(userID, productID)
if len(ret) == 0 {
panic("no return value specified for GetCloudProduct")
}
var r0 *model.Product
var r1 error
if rf, ok := ret.Get(0).(func(string, string) (*model.Product, error)); ok {
@@ -403,10 +347,6 @@ func (_m *CloudInterface) GetCloudProduct(userID string, productID string) (*mod
func (_m *CloudInterface) GetCloudProducts(userID string, includeLegacyProducts bool) ([]*model.Product, error) {
ret := _m.Called(userID, includeLegacyProducts)
if len(ret) == 0 {
panic("no return value specified for GetCloudProducts")
}
var r0 []*model.Product
var r1 error
if rf, ok := ret.Get(0).(func(string, bool) ([]*model.Product, error)); ok {
@@ -433,10 +373,6 @@ func (_m *CloudInterface) GetCloudProducts(userID string, includeLegacyProducts
func (_m *CloudInterface) GetIPFilters(userID string) (*model.AllowedIPRanges, error) {
ret := _m.Called(userID)
if len(ret) == 0 {
panic("no return value specified for GetIPFilters")
}
var r0 *model.AllowedIPRanges
var r1 error
if rf, ok := ret.Get(0).(func(string) (*model.AllowedIPRanges, error)); ok {
@@ -463,10 +399,6 @@ func (_m *CloudInterface) GetIPFilters(userID string) (*model.AllowedIPRanges, e
func (_m *CloudInterface) GetInstallation(userID string) (*model.Installation, error) {
ret := _m.Called(userID)
if len(ret) == 0 {
panic("no return value specified for GetInstallation")
}
var r0 *model.Installation
var r1 error
if rf, ok := ret.Get(0).(func(string) (*model.Installation, error)); ok {
@@ -493,10 +425,6 @@ func (_m *CloudInterface) GetInstallation(userID string) (*model.Installation, e
func (_m *CloudInterface) GetInvoicePDF(userID string, invoiceID string) ([]byte, string, error) {
ret := _m.Called(userID, invoiceID)
if len(ret) == 0 {
panic("no return value specified for GetInvoicePDF")
}
var r0 []byte
var r1 string
var r2 error
@@ -530,10 +458,6 @@ func (_m *CloudInterface) GetInvoicePDF(userID string, invoiceID string) ([]byte
func (_m *CloudInterface) GetInvoicesForSubscription(userID string) ([]*model.Invoice, error) {
ret := _m.Called(userID)
if len(ret) == 0 {
panic("no return value specified for GetInvoicesForSubscription")
}
var r0 []*model.Invoice
var r1 error
if rf, ok := ret.Get(0).(func(string) ([]*model.Invoice, error)); ok {
@@ -560,10 +484,6 @@ func (_m *CloudInterface) GetInvoicesForSubscription(userID string) ([]*model.In
func (_m *CloudInterface) GetLicenseSelfServeStatus(userID string, token string) (*model.SubscriptionLicenseSelfServeStatusResponse, error) {
ret := _m.Called(userID, token)
if len(ret) == 0 {
panic("no return value specified for GetLicenseSelfServeStatus")
}
var r0 *model.SubscriptionLicenseSelfServeStatusResponse
var r1 error
if rf, ok := ret.Get(0).(func(string, string) (*model.SubscriptionLicenseSelfServeStatusResponse, error)); ok {
@@ -590,10 +510,6 @@ func (_m *CloudInterface) GetLicenseSelfServeStatus(userID string, token string)
func (_m *CloudInterface) GetSelfHostedInvoicePDF(invoiceID string) ([]byte, string, error) {
ret := _m.Called(invoiceID)
if len(ret) == 0 {
panic("no return value specified for GetSelfHostedInvoicePDF")
}
var r0 []byte
var r1 string
var r2 error
@@ -627,10 +543,6 @@ func (_m *CloudInterface) GetSelfHostedInvoicePDF(invoiceID string) ([]byte, str
func (_m *CloudInterface) GetSelfHostedInvoices(rctx request.CTX) ([]*model.Invoice, error) {
ret := _m.Called(rctx)
if len(ret) == 0 {
panic("no return value specified for GetSelfHostedInvoices")
}
var r0 []*model.Invoice
var r1 error
if rf, ok := ret.Get(0).(func(request.CTX) ([]*model.Invoice, error)); ok {
@@ -657,10 +569,6 @@ func (_m *CloudInterface) GetSelfHostedInvoices(rctx request.CTX) ([]*model.Invo
func (_m *CloudInterface) GetSelfHostedProducts(userID string) ([]*model.Product, error) {
ret := _m.Called(userID)
if len(ret) == 0 {
panic("no return value specified for GetSelfHostedProducts")
}
var r0 []*model.Product
var r1 error
if rf, ok := ret.Get(0).(func(string) ([]*model.Product, error)); ok {
@@ -687,10 +595,6 @@ func (_m *CloudInterface) GetSelfHostedProducts(userID string) ([]*model.Product
func (_m *CloudInterface) GetSubscription(userID string) (*model.Subscription, error) {
ret := _m.Called(userID)
if len(ret) == 0 {
panic("no return value specified for GetSubscription")
}
var r0 *model.Subscription
var r1 error
if rf, ok := ret.Get(0).(func(string) (*model.Subscription, error)); ok {
@@ -717,10 +621,6 @@ func (_m *CloudInterface) GetSubscription(userID string) (*model.Subscription, e
func (_m *CloudInterface) HandleLicenseChange() error {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for HandleLicenseChange")
}
var r0 error
if rf, ok := ret.Get(0).(func() error); ok {
r0 = rf()
@@ -735,10 +635,6 @@ func (_m *CloudInterface) HandleLicenseChange() error {
func (_m *CloudInterface) InvalidateCaches() error {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for InvalidateCaches")
}
var r0 error
if rf, ok := ret.Get(0).(func() error); ok {
r0 = rf()
@@ -753,10 +649,6 @@ func (_m *CloudInterface) InvalidateCaches() error {
func (_m *CloudInterface) RequestCloudTrial(userID string, subscriptionID string, newValidBusinessEmail string) (*model.Subscription, error) {
ret := _m.Called(userID, subscriptionID, newValidBusinessEmail)
if len(ret) == 0 {
panic("no return value specified for RequestCloudTrial")
}
var r0 *model.Subscription
var r1 error
if rf, ok := ret.Get(0).(func(string, string, string) (*model.Subscription, error)); ok {
@@ -783,10 +675,6 @@ func (_m *CloudInterface) RequestCloudTrial(userID string, subscriptionID string
func (_m *CloudInterface) SelfHostedSignupAvailable() error {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for SelfHostedSignupAvailable")
}
var r0 error
if rf, ok := ret.Get(0).(func() error); ok {
r0 = rf()
@@ -801,10 +689,6 @@ func (_m *CloudInterface) SelfHostedSignupAvailable() error {
func (_m *CloudInterface) SelfServeDeleteWorkspace(userID string, deletionRequest *model.WorkspaceDeletionRequest) error {
ret := _m.Called(userID, deletionRequest)
if len(ret) == 0 {
panic("no return value specified for SelfServeDeleteWorkspace")
}
var r0 error
if rf, ok := ret.Get(0).(func(string, *model.WorkspaceDeletionRequest) error); ok {
r0 = rf(userID, deletionRequest)
@@ -819,10 +703,6 @@ func (_m *CloudInterface) SelfServeDeleteWorkspace(userID string, deletionReques
func (_m *CloudInterface) SubmitTrueUpReview(userID string, trueUpReviewProfile map[string]interface{}) error {
ret := _m.Called(userID, trueUpReviewProfile)
if len(ret) == 0 {
panic("no return value specified for SubmitTrueUpReview")
}
var r0 error
if rf, ok := ret.Get(0).(func(string, map[string]interface{}) error); ok {
r0 = rf(userID, trueUpReviewProfile)
@@ -837,10 +717,6 @@ func (_m *CloudInterface) SubmitTrueUpReview(userID string, trueUpReviewProfile
func (_m *CloudInterface) SubscribeToNewsletter(userID string, req *model.SubscribeNewsletterRequest) error {
ret := _m.Called(userID, req)
if len(ret) == 0 {
panic("no return value specified for SubscribeToNewsletter")
}
var r0 error
if rf, ok := ret.Get(0).(func(string, *model.SubscribeNewsletterRequest) error); ok {
r0 = rf(userID, req)
@@ -855,10 +731,6 @@ func (_m *CloudInterface) SubscribeToNewsletter(userID string, req *model.Subscr
func (_m *CloudInterface) UpdateCloudCustomer(userID string, customerInfo *model.CloudCustomerInfo) (*model.CloudCustomer, error) {
ret := _m.Called(userID, customerInfo)
if len(ret) == 0 {
panic("no return value specified for UpdateCloudCustomer")
}
var r0 *model.CloudCustomer
var r1 error
if rf, ok := ret.Get(0).(func(string, *model.CloudCustomerInfo) (*model.CloudCustomer, error)); ok {
@@ -885,10 +757,6 @@ func (_m *CloudInterface) UpdateCloudCustomer(userID string, customerInfo *model
func (_m *CloudInterface) UpdateCloudCustomerAddress(userID string, address *model.Address) (*model.CloudCustomer, error) {
ret := _m.Called(userID, address)
if len(ret) == 0 {
panic("no return value specified for UpdateCloudCustomerAddress")
}
var r0 *model.CloudCustomer
var r1 error
if rf, ok := ret.Get(0).(func(string, *model.Address) (*model.CloudCustomer, error)); ok {
@@ -915,10 +783,6 @@ func (_m *CloudInterface) UpdateCloudCustomerAddress(userID string, address *mod
func (_m *CloudInterface) ValidateBusinessEmail(userID string, email string) error {
ret := _m.Called(userID, email)
if len(ret) == 0 {
panic("no return value specified for ValidateBusinessEmail")
}
var r0 error
if rf, ok := ret.Get(0).(func(string, string) error); ok {
r0 = rf(userID, email)
@@ -929,12 +793,13 @@ func (_m *CloudInterface) ValidateBusinessEmail(userID string, email string) err
return r0
}
// NewCloudInterface creates a new instance of CloudInterface. 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 NewCloudInterface(t interface {
type mockConstructorTestingTNewCloudInterface interface {
mock.TestingT
Cleanup(func())
}) *CloudInterface {
}
// NewCloudInterface creates a new instance of CloudInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewCloudInterface(t mockConstructorTestingTNewCloudInterface) *CloudInterface {
mock := &CloudInterface{}
mock.Mock.Test(t)