func (rc RealmClient) DeleteApp(groupID, appID string) error {
	if rc.DeleteAppFn != nil {
		return rc.DeleteAppFn(groupID, appID)
	}
	return rc.Client.DeleteApp(groupID, appID)
}
DeleteApp calls the mocked DeleteApp implementation if provided,
otherwise the call falls back to the underlying realm.Client implementation.
NOTE: this may panic if the underlying realm.Client is left undefined
package mock
import (
	"archive/zip"
	"io"
	"github.com/10gen/realm-cli/internal/cloud/realm"
)
type RealmClient struct {
	realm.Client
	AuthenticateFn func(publicAPIKey, privateAPIKey string) (realm.Session, error)
	AuthProfileFn  func() (realm.AuthProfile, error)
	DiffFn   func(groupID, appID string, appData interface{}) ([]string, error)
	ExportFn func(groupID, appID string, req realm.ExportRequest) (string, *zip.Reader, error)
	ImportFn func(groupID, appID string, appData interface{}) error
	ExportDependenciesFn        func(groupID, appID string) (string, io.ReadCloser, error)
	ExportDependenciesArchiveFn func(groupID, appID string) (string, io.ReadCloser, error)
	ImportDependenciesFn        func(groupID, appID, uploadPath string) error
	DiffDependenciesFn          func(groupID, appID, uploadPath string) (realm.DependenciesDiff, error)
	DependenciesStatusFn        func(groupID, appID string) (realm.DependenciesStatus, error)
	CreateAppFn      func(groupID, name string, meta realm.AppMeta) (realm.App, error)
	DeleteAppFn      func(groupID, appID string) error
	FindAppFn        func(groupID, appID string) (realm.App, error)
	FindAppsFn       func(filter realm.AppFilter) ([]realm.App, error)
	AppDescriptionFn func(groupID, appID string) (realm.AppDescription, error)
	CreateDraftFn  func(groupID, appID string) (realm.AppDraft, error)
	DiffDraftFn    func(groupID, appID, draftID string) (realm.AppDraftDiff, error)
	DiscardDraftFn func(groupID, appID, draftID string) error
	DraftFn        func(groupID, appID string) (realm.AppDraft, error)
	DeployDraftFn func(groupID, appID, draftID string) (realm.AppDeployment, error)
	DeploymentFn  func(groupID, appID, deploymentID string) (realm.AppDeployment, error)
	SecretsFn      func(groupID, appID string) ([]realm.Secret, error)
	CreateSecretFn func(groupID, appID, name, value string) (realm.Secret, error)
	DeleteSecretFn func(groupID, appID, secretID string) error
	UpdateSecretFn func(groupID, appID, secretID, name, value string) error
	CreateAPIKeyFn      func(groupID, appID, apiKeyName string) (realm.APIKey, error)
	CreateUserFn        func(groupID, appID, email, password string) (realm.User, error)
	DeleteUserFn        func(groupID, appID, userID string) error
	DisableUserFn       func(groupID, appID, userID string) error
	EnableUserFn        func(groupID, appID, userID string) error
	FindUsersFn         func(groupID, appID string, filter realm.UserFilter) ([]realm.User, error)
	RevokeUserSessionFn func(groupID, appID, userID string) error
	HostingAssetsFn                func(groupID, appID string) ([]realm.HostingAsset, error)
	HostingAssetUploadFn           func(groupID, appID, rootDir string, asset realm.HostingAsset) error
	HostingAssetRemoveFn           func(groupID, appID, path string) error
	HostingAssetAttributesUpdateFn func(groupID, appID, path string, attrs ...realm.HostingAssetAttribute) error
	HostingCacheInvalidateFn       func(groupID, appID, path string) error
	FunctionsFn               func(groupID, appID string) ([]realm.Function, error)
	AppDebugExecuteFunctionFn func(groupID, appID, userID, name string, args []interface{}) (realm.ExecutionResults, error)
	LogsFn func(groupID, appID string, opts realm.LogsOptions) (realm.Logs, error)
	SchemaModelsFn func(groupID, appID, language string) ([]realm.SchemaModel, error)
	AllTemplatesFn        func() ([]realm.Template, error)
	ClientTemplateFn      func(groupID, appID, templateID string) (*zip.Reader, bool, error)
	CompatibleTemplatesFn func(groupID, appID string) ([]realm.Template, error)
	AllowedIPsFn      func(groupID, appID string) ([]realm.AllowedIP, error)
	AllowedIPCreateFn func(groupID, appID, address, comment string, useCurrent bool) (realm.AllowedIP, error)
	AllowedIPUpdateFn func(groupID, appID, allowedIPID, newAddress, newComment string) error
	AllowedIPDeleteFn func(groupID, appID, allowedIPID string) error
	StatusFn func() error
}
func (rc RealmClient) Authenticate(publicAPIKey, privateAPIKey string) (realm.Session, error) {
	if rc.AuthenticateFn != nil {
		return rc.AuthenticateFn(publicAPIKey, privateAPIKey)
	}
	return rc.Client.Authenticate(publicAPIKey, privateAPIKey)
}
func (rc RealmClient) AuthProfile() (realm.AuthProfile, error) {
	if rc.AuthProfileFn != nil {
		return rc.AuthProfileFn()
	}
	return rc.Client.AuthProfile()
}
func (rc RealmClient) Export(groupID, appID string, req realm.ExportRequest) (string, *zip.Reader, error) {
	if rc.ExportFn != nil {
		return rc.ExportFn(groupID, appID, req)
	}
	return rc.Client.Export(groupID, appID, req)
}
func (rc RealmClient) Import(groupID, appID string, appData interface{}) error {
	if rc.ImportFn != nil {
		return rc.ImportFn(groupID, appID, appData)
	}
	return rc.Client.Import(groupID, appID, appData)
}
func (rc RealmClient) Diff(groupID, appID string, appData interface{}) ([]string, error) {
	if rc.DiffFn != nil {
		return rc.DiffFn(groupID, appID, appData)
	}
	return rc.Client.Diff(groupID, appID, appData)
}
func (rc RealmClient) CreateApp(groupID, name string, meta realm.AppMeta) (realm.App, error) {
	if rc.CreateAppFn != nil {
		return rc.CreateAppFn(groupID, name, meta)
	}
	return rc.Client.CreateApp(groupID, name, meta)
}