2025-06-10 14:04:57 -04:00
// Code generated by mockery v2.53.4. DO NOT EDIT.
2020-12-06 03:02:53 -05:00
// Regenerate this file using `make einterfaces-mocks`.
package mocks
import (
2025-04-16 09:34:18 -04:00
multipart "mime/multipart"
2023-06-11 01:24:35 -04:00
model "github.com/mattermost/mattermost/server/public/model"
2020-12-06 03:02:53 -05:00
mock "github.com/stretchr/testify/mock"
)
// CloudInterface is an autogenerated mock type for the CloudInterface type
type CloudInterface struct {
mock . Mock
}
2023-11-14 09:12:04 -05:00
// ApplyIPFilters provides a mock function with given fields: userID, ranges
func ( _m * CloudInterface ) ApplyIPFilters ( userID string , ranges * model . AllowedIPRanges ) ( * model . AllowedIPRanges , error ) {
ret := _m . Called ( userID , ranges )
2024-04-12 22:45:59 -04:00
if len ( ret ) == 0 {
panic ( "no return value specified for ApplyIPFilters" )
}
2023-11-14 09:12:04 -05:00
var r0 * model . AllowedIPRanges
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( string , * model . AllowedIPRanges ) ( * model . AllowedIPRanges , error ) ) ; ok {
return rf ( userID , ranges )
}
if rf , ok := ret . Get ( 0 ) . ( func ( string , * model . AllowedIPRanges ) * model . AllowedIPRanges ) ; ok {
r0 = rf ( userID , ranges )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . AllowedIPRanges )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( string , * model . AllowedIPRanges ) error ) ; ok {
r1 = rf ( userID , ranges )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2021-05-27 09:12:47 -04:00
// ChangeSubscription provides a mock function with given fields: userID, subscriptionID, subscriptionChange
func ( _m * CloudInterface ) ChangeSubscription ( userID string , subscriptionID string , subscriptionChange * model . SubscriptionChange ) ( * model . Subscription , error ) {
ret := _m . Called ( userID , subscriptionID , subscriptionChange )
2024-04-12 22:45:59 -04:00
if len ( ret ) == 0 {
panic ( "no return value specified for ChangeSubscription" )
}
2021-05-27 09:12:47 -04:00
var r0 * model . Subscription
2023-04-10 04:50:57 -04:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( string , string , * model . SubscriptionChange ) ( * model . Subscription , error ) ) ; ok {
return rf ( userID , subscriptionID , subscriptionChange )
}
2021-05-27 09:12:47 -04:00
if rf , ok := ret . Get ( 0 ) . ( func ( string , string , * model . SubscriptionChange ) * model . Subscription ) ; ok {
r0 = rf ( userID , subscriptionID , subscriptionChange )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . Subscription )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( string , string , * model . SubscriptionChange ) error ) ; ok {
r1 = rf ( userID , subscriptionID , subscriptionChange )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2022-12-29 15:07:06 -05:00
// CheckCWSConnection provides a mock function with given fields: userId
func ( _m * CloudInterface ) CheckCWSConnection ( userId string ) error {
ret := _m . Called ( userId )
2022-12-29 14:58:05 -05:00
2024-04-12 22:45:59 -04:00
if len ( ret ) == 0 {
panic ( "no return value specified for CheckCWSConnection" )
}
2022-12-29 14:58:05 -05:00
var r0 error
2022-12-29 15:07:06 -05:00
if rf , ok := ret . Get ( 0 ) . ( func ( string ) error ) ; ok {
r0 = rf ( userId )
2022-12-29 14:58:05 -05:00
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2025-04-16 09:34:18 -04:00
// CreateAuditLoggingCert provides a mock function with given fields: userID, fileData
func ( _m * CloudInterface ) CreateAuditLoggingCert ( userID string , fileData * multipart . FileHeader ) error {
ret := _m . Called ( userID , fileData )
if len ( ret ) == 0 {
panic ( "no return value specified for CreateAuditLoggingCert" )
}
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( string , * multipart . FileHeader ) error ) ; ok {
r0 = rf ( userID , fileData )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2022-11-29 11:47:51 -05:00
// CreateOrUpdateSubscriptionHistoryEvent provides a mock function with given fields: userID, userCount
func ( _m * CloudInterface ) CreateOrUpdateSubscriptionHistoryEvent ( userID string , userCount int ) ( * model . SubscriptionHistory , error ) {
ret := _m . Called ( userID , userCount )
2024-04-12 22:45:59 -04:00
if len ( ret ) == 0 {
panic ( "no return value specified for CreateOrUpdateSubscriptionHistoryEvent" )
}
2022-11-29 11:47:51 -05:00
var r0 * model . SubscriptionHistory
2023-04-10 04:50:57 -04:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( string , int ) ( * model . SubscriptionHistory , error ) ) ; ok {
return rf ( userID , userCount )
}
2022-11-29 11:47:51 -05:00
if rf , ok := ret . Get ( 0 ) . ( func ( string , int ) * model . SubscriptionHistory ) ; ok {
r0 = rf ( userID , userCount )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . SubscriptionHistory )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( string , int ) error ) ; ok {
r1 = rf ( userID , userCount )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2021-03-05 03:23:39 -05:00
// GetCloudCustomer provides a mock function with given fields: userID
func ( _m * CloudInterface ) GetCloudCustomer ( userID string ) ( * model . CloudCustomer , error ) {
ret := _m . Called ( userID )
2020-12-06 03:02:53 -05:00
2024-04-12 22:45:59 -04:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetCloudCustomer" )
}
2020-12-06 03:02:53 -05:00
var r0 * model . CloudCustomer
2023-04-10 04:50:57 -04:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( string ) ( * model . CloudCustomer , error ) ) ; ok {
return rf ( userID )
}
2021-03-05 03:23:39 -05:00
if rf , ok := ret . Get ( 0 ) . ( func ( string ) * model . CloudCustomer ) ; ok {
r0 = rf ( userID )
2020-12-06 03:02:53 -05:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . CloudCustomer )
}
}
2021-03-05 03:23:39 -05:00
if rf , ok := ret . Get ( 1 ) . ( func ( string ) error ) ; ok {
r1 = rf ( userID )
2020-12-06 03:02:53 -05:00
} else {
2021-03-05 03:23:39 -05:00
r1 = ret . Error ( 1 )
2020-12-06 03:02:53 -05:00
}
return r0 , r1
}
2022-04-22 15:23:19 -04:00
// GetCloudLimits provides a mock function with given fields: userID
func ( _m * CloudInterface ) GetCloudLimits ( userID string ) ( * model . ProductLimits , error ) {
ret := _m . Called ( userID )
2024-04-12 22:45:59 -04:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetCloudLimits" )
}
2022-04-22 15:23:19 -04:00
var r0 * model . ProductLimits
2023-04-10 04:50:57 -04:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( string ) ( * model . ProductLimits , error ) ) ; ok {
return rf ( userID )
}
2022-04-22 15:23:19 -04:00
if rf , ok := ret . Get ( 0 ) . ( func ( string ) * model . ProductLimits ) ; ok {
r0 = rf ( userID )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . ProductLimits )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( string ) error ) ; ok {
r1 = rf ( userID )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2022-11-29 11:47:51 -05:00
// GetCloudProduct provides a mock function with given fields: userID, productID
func ( _m * CloudInterface ) GetCloudProduct ( userID string , productID string ) ( * model . Product , error ) {
ret := _m . Called ( userID , productID )
2024-04-12 22:45:59 -04:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetCloudProduct" )
}
2022-11-29 11:47:51 -05:00
var r0 * model . Product
2023-04-10 04:50:57 -04:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( string , string ) ( * model . Product , error ) ) ; ok {
return rf ( userID , productID )
}
2022-11-29 11:47:51 -05:00
if rf , ok := ret . Get ( 0 ) . ( func ( string , string ) * model . Product ) ; ok {
r0 = rf ( userID , productID )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . Product )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( string , string ) error ) ; ok {
r1 = rf ( userID , productID )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2021-10-07 12:48:56 -04:00
// GetCloudProducts provides a mock function with given fields: userID, includeLegacyProducts
func ( _m * CloudInterface ) GetCloudProducts ( userID string , includeLegacyProducts bool ) ( [ ] * model . Product , error ) {
ret := _m . Called ( userID , includeLegacyProducts )
2020-12-06 03:02:53 -05:00
2024-04-12 22:45:59 -04:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetCloudProducts" )
}
2020-12-06 03:02:53 -05:00
var r0 [ ] * model . Product
2023-04-10 04:50:57 -04:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( string , bool ) ( [ ] * model . Product , error ) ) ; ok {
return rf ( userID , includeLegacyProducts )
}
2021-10-07 12:48:56 -04:00
if rf , ok := ret . Get ( 0 ) . ( func ( string , bool ) [ ] * model . Product ) ; ok {
r0 = rf ( userID , includeLegacyProducts )
2020-12-06 03:02:53 -05:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( [ ] * model . Product )
}
}
2021-10-07 12:48:56 -04:00
if rf , ok := ret . Get ( 1 ) . ( func ( string , bool ) error ) ; ok {
r1 = rf ( userID , includeLegacyProducts )
2020-12-06 03:02:53 -05:00
} else {
2021-03-05 03:23:39 -05:00
r1 = ret . Error ( 1 )
2020-12-06 03:02:53 -05:00
}
return r0 , r1
}
2023-11-14 09:12:04 -05:00
// GetIPFilters provides a mock function with given fields: userID
func ( _m * CloudInterface ) GetIPFilters ( userID string ) ( * model . AllowedIPRanges , error ) {
ret := _m . Called ( userID )
2024-04-12 22:45:59 -04:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetIPFilters" )
}
2023-11-14 09:12:04 -05:00
var r0 * model . AllowedIPRanges
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( string ) ( * model . AllowedIPRanges , error ) ) ; ok {
return rf ( userID )
}
if rf , ok := ret . Get ( 0 ) . ( func ( string ) * model . AllowedIPRanges ) ; ok {
r0 = rf ( userID )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . AllowedIPRanges )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( string ) error ) ; ok {
r1 = rf ( userID )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-11-28 09:09:50 -05:00
// GetInstallation provides a mock function with given fields: userID
func ( _m * CloudInterface ) GetInstallation ( userID string ) ( * model . Installation , error ) {
ret := _m . Called ( userID )
2024-04-12 22:45:59 -04:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetInstallation" )
}
2023-11-28 09:09:50 -05:00
var r0 * model . Installation
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( string ) ( * model . Installation , error ) ) ; ok {
return rf ( userID )
}
if rf , ok := ret . Get ( 0 ) . ( func ( string ) * model . Installation ) ; ok {
r0 = rf ( userID )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . Installation )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( string ) error ) ; ok {
r1 = rf ( userID )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2020-12-06 03:02:53 -05:00
2021-03-05 03:23:39 -05:00
// GetInvoicePDF provides a mock function with given fields: userID, invoiceID
func ( _m * CloudInterface ) GetInvoicePDF ( userID string , invoiceID string ) ( [ ] byte , string , error ) {
ret := _m . Called ( userID , invoiceID )
2020-12-06 03:02:53 -05:00
2024-04-12 22:45:59 -04:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetInvoicePDF" )
}
2020-12-06 03:02:53 -05:00
var r0 [ ] byte
2023-04-10 04:50:57 -04:00
var r1 string
var r2 error
if rf , ok := ret . Get ( 0 ) . ( func ( string , string ) ( [ ] byte , string , error ) ) ; ok {
return rf ( userID , invoiceID )
}
2021-03-05 03:23:39 -05:00
if rf , ok := ret . Get ( 0 ) . ( func ( string , string ) [ ] byte ) ; ok {
r0 = rf ( userID , invoiceID )
2020-12-06 03:02:53 -05:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( [ ] byte )
}
}
2021-03-05 03:23:39 -05:00
if rf , ok := ret . Get ( 1 ) . ( func ( string , string ) string ) ; ok {
r1 = rf ( userID , invoiceID )
2020-12-06 03:02:53 -05:00
} else {
r1 = ret . Get ( 1 ) . ( string )
}
2021-03-05 03:23:39 -05:00
if rf , ok := ret . Get ( 2 ) . ( func ( string , string ) error ) ; ok {
r2 = rf ( userID , invoiceID )
2020-12-06 03:02:53 -05:00
} else {
2021-03-05 03:23:39 -05:00
r2 = ret . Error ( 2 )
2020-12-06 03:02:53 -05:00
}
return r0 , r1 , r2
}
2021-03-05 03:23:39 -05:00
// GetInvoicesForSubscription provides a mock function with given fields: userID
func ( _m * CloudInterface ) GetInvoicesForSubscription ( userID string ) ( [ ] * model . Invoice , error ) {
ret := _m . Called ( userID )
2020-12-06 03:02:53 -05:00
2024-04-12 22:45:59 -04:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetInvoicesForSubscription" )
}
2020-12-06 03:02:53 -05:00
var r0 [ ] * model . Invoice
2023-04-10 04:50:57 -04:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( string ) ( [ ] * model . Invoice , error ) ) ; ok {
return rf ( userID )
}
2021-03-05 03:23:39 -05:00
if rf , ok := ret . Get ( 0 ) . ( func ( string ) [ ] * model . Invoice ) ; ok {
r0 = rf ( userID )
2020-12-06 03:02:53 -05:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( [ ] * model . Invoice )
}
}
2021-03-05 03:23:39 -05:00
if rf , ok := ret . Get ( 1 ) . ( func ( string ) error ) ; ok {
r1 = rf ( userID )
2020-12-06 03:02:53 -05:00
} else {
2021-03-05 03:23:39 -05:00
r1 = ret . Error ( 1 )
2020-12-06 03:02:53 -05:00
}
return r0 , r1
}
2022-11-30 06:26:30 -05:00
// GetSelfHostedProducts provides a mock function with given fields: userID
func ( _m * CloudInterface ) GetSelfHostedProducts ( userID string ) ( [ ] * model . Product , error ) {
ret := _m . Called ( userID )
2024-04-12 22:45:59 -04:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetSelfHostedProducts" )
}
2022-11-30 06:26:30 -05:00
var r0 [ ] * model . Product
2023-04-10 04:50:57 -04:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( string ) ( [ ] * model . Product , error ) ) ; ok {
return rf ( userID )
}
2022-11-30 06:26:30 -05:00
if rf , ok := ret . Get ( 0 ) . ( func ( string ) [ ] * model . Product ) ; ok {
r0 = rf ( userID )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( [ ] * model . Product )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( string ) error ) ; ok {
r1 = rf ( userID )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2021-03-05 03:23:39 -05:00
// GetSubscription provides a mock function with given fields: userID
func ( _m * CloudInterface ) GetSubscription ( userID string ) ( * model . Subscription , error ) {
ret := _m . Called ( userID )
2020-12-06 03:02:53 -05:00
2024-04-12 22:45:59 -04:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetSubscription" )
}
2020-12-06 03:02:53 -05:00
var r0 * model . Subscription
2023-04-10 04:50:57 -04:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( string ) ( * model . Subscription , error ) ) ; ok {
return rf ( userID )
}
2021-03-05 03:23:39 -05:00
if rf , ok := ret . Get ( 0 ) . ( func ( string ) * model . Subscription ) ; ok {
r0 = rf ( userID )
2020-12-06 03:02:53 -05:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . Subscription )
}
}
2021-03-05 03:23:39 -05:00
if rf , ok := ret . Get ( 1 ) . ( func ( string ) error ) ; ok {
r1 = rf ( userID )
2020-12-06 03:02:53 -05:00
} else {
2021-03-05 03:23:39 -05:00
r1 = ret . Error ( 1 )
2020-12-06 03:02:53 -05:00
}
return r0 , r1
}
2025-06-10 14:04:57 -04:00
// HandleLicenseChange provides a mock function with no fields
2022-11-22 13:22:45 -05:00
func ( _m * CloudInterface ) HandleLicenseChange ( ) error {
ret := _m . Called ( )
2024-04-12 22:45:59 -04:00
if len ( ret ) == 0 {
panic ( "no return value specified for HandleLicenseChange" )
}
2022-11-22 13:22:45 -05:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( ) error ) ; ok {
r0 = rf ( )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2025-06-10 14:04:57 -04:00
// InvalidateCaches provides a mock function with no fields
2022-03-21 10:42:09 -04:00
func ( _m * CloudInterface ) InvalidateCaches ( ) error {
ret := _m . Called ( )
2024-04-12 22:45:59 -04:00
if len ( ret ) == 0 {
panic ( "no return value specified for InvalidateCaches" )
}
2022-03-21 10:42:09 -04:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( ) error ) ; ok {
r0 = rf ( )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2025-04-16 09:34:18 -04:00
// RemoveAuditLoggingCert provides a mock function with given fields: userID
func ( _m * CloudInterface ) RemoveAuditLoggingCert ( userID string ) error {
ret := _m . Called ( userID )
if len ( ret ) == 0 {
panic ( "no return value specified for RemoveAuditLoggingCert" )
}
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( string ) error ) ; ok {
r0 = rf ( userID )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2021-03-05 03:23:39 -05:00
// UpdateCloudCustomer provides a mock function with given fields: userID, customerInfo
func ( _m * CloudInterface ) UpdateCloudCustomer ( userID string , customerInfo * model . CloudCustomerInfo ) ( * model . CloudCustomer , error ) {
ret := _m . Called ( userID , customerInfo )
2020-12-06 03:02:53 -05:00
2024-04-12 22:45:59 -04:00
if len ( ret ) == 0 {
panic ( "no return value specified for UpdateCloudCustomer" )
}
2020-12-06 03:02:53 -05:00
var r0 * model . CloudCustomer
2023-04-10 04:50:57 -04:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( string , * model . CloudCustomerInfo ) ( * model . CloudCustomer , error ) ) ; ok {
return rf ( userID , customerInfo )
}
2021-03-05 03:23:39 -05:00
if rf , ok := ret . Get ( 0 ) . ( func ( string , * model . CloudCustomerInfo ) * model . CloudCustomer ) ; ok {
r0 = rf ( userID , customerInfo )
2020-12-06 03:02:53 -05:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . CloudCustomer )
}
}
2021-03-05 03:23:39 -05:00
if rf , ok := ret . Get ( 1 ) . ( func ( string , * model . CloudCustomerInfo ) error ) ; ok {
r1 = rf ( userID , customerInfo )
2020-12-06 03:02:53 -05:00
} else {
2021-03-05 03:23:39 -05:00
r1 = ret . Error ( 1 )
2020-12-06 03:02:53 -05:00
}
return r0 , r1
}
2021-03-05 03:23:39 -05:00
// UpdateCloudCustomerAddress provides a mock function with given fields: userID, address
func ( _m * CloudInterface ) UpdateCloudCustomerAddress ( userID string , address * model . Address ) ( * model . CloudCustomer , error ) {
ret := _m . Called ( userID , address )
2020-12-06 03:02:53 -05:00
2024-04-12 22:45:59 -04:00
if len ( ret ) == 0 {
panic ( "no return value specified for UpdateCloudCustomerAddress" )
}
2020-12-06 03:02:53 -05:00
var r0 * model . CloudCustomer
2023-04-10 04:50:57 -04:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( string , * model . Address ) ( * model . CloudCustomer , error ) ) ; ok {
return rf ( userID , address )
}
2021-03-05 03:23:39 -05:00
if rf , ok := ret . Get ( 0 ) . ( func ( string , * model . Address ) * model . CloudCustomer ) ; ok {
r0 = rf ( userID , address )
2020-12-06 03:02:53 -05:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * model . CloudCustomer )
}
}
2021-03-05 03:23:39 -05:00
if rf , ok := ret . Get ( 1 ) . ( func ( string , * model . Address ) error ) ; ok {
r1 = rf ( userID , address )
2020-12-06 03:02:53 -05:00
} else {
2021-03-05 03:23:39 -05:00
r1 = ret . Error ( 1 )
2020-12-06 03:02:53 -05:00
}
return r0 , r1
}
2022-05-09 09:05:50 -04:00
2022-06-01 17:36:03 -04:00
// ValidateBusinessEmail provides a mock function with given fields: userID, email
func ( _m * CloudInterface ) ValidateBusinessEmail ( userID string , email string ) error {
ret := _m . Called ( userID , email )
2024-04-12 22:45:59 -04:00
if len ( ret ) == 0 {
panic ( "no return value specified for ValidateBusinessEmail" )
}
2022-06-01 17:36:03 -04:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( string , string ) error ) ; ok {
r0 = rf ( userID , email )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2023-04-10 04:50:57 -04:00
2024-04-12 22:45:59 -04:00
// 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 {
2023-04-10 04:50:57 -04:00
mock . TestingT
Cleanup ( func ( ) )
2024-04-12 22:45:59 -04:00
} ) * CloudInterface {
2023-04-10 04:50:57 -04:00
mock := & CloudInterface { }
mock . Mock . Test ( t )
t . Cleanup ( func ( ) { mock . AssertExpectations ( t ) } )
return mock
}