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

package jobs

import (
	context "context"

	v0alpha1 "github.com/grafana/grafana/apps/provisioning/pkg/apis/provisioning/v0alpha1"
	mock "github.com/stretchr/testify/mock"
)

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

type MockProgressFn_Expecter struct {
	mock *mock.Mock
}

func (_m *MockProgressFn) EXPECT() *MockProgressFn_Expecter {
	return &MockProgressFn_Expecter{mock: &_m.Mock}
}

// Execute provides a mock function with given fields: ctx, status
func (_m *MockProgressFn) Execute(ctx context.Context, status v0alpha1.JobStatus) error {
	ret := _m.Called(ctx, status)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, v0alpha1.JobStatus) error); ok {
		r0 = rf(ctx, status)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// MockProgressFn_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
type MockProgressFn_Execute_Call struct {
	*mock.Call
}

// Execute is a helper method to define mock.On call
//   - ctx context.Context
//   - status v0alpha1.JobStatus
func (_e *MockProgressFn_Expecter) Execute(ctx interface{}, status interface{}) *MockProgressFn_Execute_Call {
	return &MockProgressFn_Execute_Call{Call: _e.mock.On("Execute", ctx, status)}
}

func (_c *MockProgressFn_Execute_Call) Run(run func(ctx context.Context, status v0alpha1.JobStatus)) *MockProgressFn_Execute_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context), args[1].(v0alpha1.JobStatus))
	})
	return _c
}

func (_c *MockProgressFn_Execute_Call) Return(_a0 error) *MockProgressFn_Execute_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *MockProgressFn_Execute_Call) RunAndReturn(run func(context.Context, v0alpha1.JobStatus) error) *MockProgressFn_Execute_Call {
	_c.Call.Return(run)
	return _c
}

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

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

	return mock
}
