//                           _       _
// __      _____  __ ___   ___  __ _| |_ ___
// \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \
//  \ V  V /  __/ (_| |\ V /| | (_| | ||  __/
//   \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___|
//
//  Copyright © 2016 - 2026 Weaviate B.V. All rights reserved.
//
//  CONTACT: hello@weaviate.io
//

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

package distributedtask

import (
	context "context"

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

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

type MockTaskCleaner_Expecter struct {
	mock *mock.Mock
}

func (_m *MockTaskCleaner) EXPECT() *MockTaskCleaner_Expecter {
	return &MockTaskCleaner_Expecter{mock: &_m.Mock}
}

// CleanUpDistributedTask provides a mock function with given fields: ctx, namespace, taskID, taskVersion
func (_m *MockTaskCleaner) CleanUpDistributedTask(ctx context.Context, namespace string, taskID string, taskVersion uint64) error {
	ret := _m.Called(ctx, namespace, taskID, taskVersion)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, string, string, uint64) error); ok {
		r0 = rf(ctx, namespace, taskID, taskVersion)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

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

// CleanUpDistributedTask is a helper method to define mock.On call
//   - ctx context.Context
//   - namespace string
//   - taskID string
//   - taskVersion uint64
func (_e *MockTaskCleaner_Expecter) CleanUpDistributedTask(ctx interface{}, namespace interface{}, taskID interface{}, taskVersion interface{}) *MockTaskCleaner_CleanUpDistributedTask_Call {
	return &MockTaskCleaner_CleanUpDistributedTask_Call{Call: _e.mock.On("CleanUpDistributedTask", ctx, namespace, taskID, taskVersion)}
}

func (_c *MockTaskCleaner_CleanUpDistributedTask_Call) Run(run func(ctx context.Context, namespace string, taskID string, taskVersion uint64)) *MockTaskCleaner_CleanUpDistributedTask_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context), args[1].(string), args[2].(string), args[3].(uint64))
	})
	return _c
}

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

func (_c *MockTaskCleaner_CleanUpDistributedTask_Call) RunAndReturn(run func(context.Context, string, string, uint64) error) *MockTaskCleaner_CleanUpDistributedTask_Call {
	_c.Call.Return(run)
	return _c
}

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

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

	return mock
}
