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

package mocks

import (
	context "context"

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

	resource "github.com/pingcap/test-infra/common/model/resource"

	url "net/url"
)

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

// Archive provides a mock function with given fields: ctx, handle, action
func (_m *ArchiverInterface) Archive(ctx context.Context, handle resource.ResourceHandle, action resource.GcArtifactAction) (map[string]*url.URL, error) {
	ret := _m.Called(ctx, handle, action)

	var r0 map[string]*url.URL
	if rf, ok := ret.Get(0).(func(context.Context, resource.ResourceHandle, resource.GcArtifactAction) map[string]*url.URL); ok {
		r0 = rf(ctx, handle, action)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(map[string]*url.URL)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(context.Context, resource.ResourceHandle, resource.GcArtifactAction) error); ok {
		r1 = rf(ctx, handle, action)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

type NewArchiverInterfaceT interface {
	mock.TestingT
	Cleanup(func())
}

// NewArchiverInterface creates a new instance of ArchiverInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewArchiverInterface(t NewArchiverInterfaceT) *ArchiverInterface {
	mock := &ArchiverInterface{}
	mock.Mock.Test(t)

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

	return mock
}
