//                           _       _
// __      _____  __ ___   ___  __ _| |_ ___
// \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \
//  \ 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"
)

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

type MockTaskCompletionRecorder_Expecter struct {
	mock *mock.Mock
}

func (_m *MockTaskCompletionRecorder) EXPECT() *MockTaskCompletionRecorder_Expecter {
	return &MockTaskCompletionRecorder_Expecter{mock: &_m.Mock}
}

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

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

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

	return r0
}

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

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

func (_c *MockTaskCompletionRecorder_RecordDistributedTaskNodeCompletion_Call) Run(run func(ctx context.Context, namespace string, taskID string, version uint64)) *MockTaskCompletionRecorder_RecordDistributedTaskNodeCompletion_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 *MockTaskCompletionRecorder_RecordDistributedTaskNodeCompletion_Call) Return(_a0 error) *MockTaskCompletionRecorder_RecordDistributedTaskNodeCompletion_Call {
	_c.Call.Return(_a0)
	return _c
}

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

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

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

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

	return r0
}

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

// RecordDistributedTaskNodeFailure is a helper method to define mock.On call
//   - ctx context.Context
//   - namespace string
//   - taskID string
//   - version uint64
//   - errMsg string
func (_e *MockTaskCompletionRecorder_Expecter) RecordDistributedTaskNodeFailure(ctx interface{}, namespace interface{}, taskID interface{}, version interface{}, errMsg interface{}) *MockTaskCompletionRecorder_RecordDistributedTaskNodeFailure_Call {
	return &MockTaskCompletionRecorder_RecordDistributedTaskNodeFailure_Call{Call: _e.mock.On("RecordDistributedTaskNodeFailure", ctx, namespace, taskID, version, errMsg)}
}

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

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

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

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

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

	return mock
}
