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

import (
	context "context"

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

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

type MockOpConsumer_Expecter struct {
	mock *mock.Mock
}

func (_m *MockOpConsumer) EXPECT() *MockOpConsumer_Expecter {
	return &MockOpConsumer_Expecter{mock: &_m.Mock}
}

// Consume provides a mock function with given fields: ctx, in
func (_m *MockOpConsumer) Consume(ctx context.Context, in <-chan ShardReplicationOpAndStatus) error {
	ret := _m.Called(ctx, in)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, <-chan ShardReplicationOpAndStatus) error); ok {
		r0 = rf(ctx, in)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

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

// Consume is a helper method to define mock.On call
//   - ctx context.Context
//   - in <-chan ShardReplicationOpAndStatus
func (_e *MockOpConsumer_Expecter) Consume(ctx interface{}, in interface{}) *MockOpConsumer_Consume_Call {
	return &MockOpConsumer_Consume_Call{Call: _e.mock.On("Consume", ctx, in)}
}

func (_c *MockOpConsumer_Consume_Call) Run(run func(ctx context.Context, in <-chan ShardReplicationOpAndStatus)) *MockOpConsumer_Consume_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context), args[1].(<-chan ShardReplicationOpAndStatus))
	})
	return _c
}

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

func (_c *MockOpConsumer_Consume_Call) RunAndReturn(run func(context.Context, <-chan ShardReplicationOpAndStatus) error) *MockOpConsumer_Consume_Call {
	_c.Call.Return(run)
	return _c
}

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

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

	return mock
}
