// Code generated by mockery v2.53.3. DO NOT EDIT.

package mock

import (
	context "context"

	blob "github.com/tidbcloud/dataflow-service/pkg/blob"

	mock "github.com/stretchr/testify/mock"
)

// GetStorageFunc is an autogenerated mock type for the GetStorageFunc type
type GetStorageFunc struct {
	mock.Mock
}

// Execute provides a mock function with given fields: ctx, urlStr, opt
func (_m *GetStorageFunc) Execute(ctx context.Context, urlStr string, opt *blob.StorageOption) (blob.Storage, error) {
	ret := _m.Called(ctx, urlStr, opt)

	if len(ret) == 0 {
		panic("no return value specified for Execute")
	}

	var r0 blob.Storage
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, string, *blob.StorageOption) (blob.Storage, error)); ok {
		return rf(ctx, urlStr, opt)
	}
	if rf, ok := ret.Get(0).(func(context.Context, string, *blob.StorageOption) blob.Storage); ok {
		r0 = rf(ctx, urlStr, opt)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(blob.Storage)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, string, *blob.StorageOption) error); ok {
		r1 = rf(ctx, urlStr, opt)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// NewGetStorageFunc creates a new instance of GetStorageFunc. 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 NewGetStorageFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *GetStorageFunc {
	mock := &GetStorageFunc{}
	mock.Mock.Test(t)

	t.Cleanup(func() { mock.AssertExpectations(t) })

	return mock
}
