// Code generated by MockGen. DO NOT EDIT.
// Source: wal.go
//
// Generated by this command:
//
//	mockgen -source=wal.go -package=mock_clusterevent -destination=./mock_clusterevent/mock_wal.go
//

// Package mock_clusterevent is a generated GoMock package.
package mock_clusterevent

import (
	context "context"
	reflect "reflect"

	bizerr "github.com/tidbcloud/tidb-management-service/utilities/bizerr"
	clusterevent "github.com/tidbcloud/tidb-management-service/utilities/clusterevent"
	gomock "go.uber.org/mock/gomock"
)

// MockWALCommitter is a mock of WALCommitter interface.
type MockWALCommitter struct {
	ctrl     *gomock.Controller
	recorder *MockWALCommitterMockRecorder
	isgomock struct{}
}

// MockWALCommitterMockRecorder is the mock recorder for MockWALCommitter.
type MockWALCommitterMockRecorder struct {
	mock *MockWALCommitter
}

// NewMockWALCommitter creates a new mock instance.
func NewMockWALCommitter(ctrl *gomock.Controller) *MockWALCommitter {
	mock := &MockWALCommitter{ctrl: ctrl}
	mock.recorder = &MockWALCommitterMockRecorder{mock}
	return mock
}

// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockWALCommitter) EXPECT() *MockWALCommitterMockRecorder {
	return m.recorder
}

// BatchWrite mocks base method.
func (m *MockWALCommitter) BatchWrite(ctx context.Context, topic clusterevent.Topic, events []clusterevent.Event) bizerr.BizError {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "BatchWrite", ctx, topic, events)
	ret0, _ := ret[0].(bizerr.BizError)
	return ret0
}

// BatchWrite indicates an expected call of BatchWrite.
func (mr *MockWALCommitterMockRecorder) BatchWrite(ctx, topic, events any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchWrite", reflect.TypeOf((*MockWALCommitter)(nil).BatchWrite), ctx, topic, events)
}

// Write mocks base method.
func (m *MockWALCommitter) Write(ctx context.Context, topic clusterevent.Topic, event clusterevent.Event) bizerr.BizError {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Write", ctx, topic, event)
	ret0, _ := ret[0].(bizerr.BizError)
	return ret0
}

// Write indicates an expected call of Write.
func (mr *MockWALCommitterMockRecorder) Write(ctx, topic, event any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockWALCommitter)(nil).Write), ctx, topic, event)
}

// MockWALWatcher is a mock of WALWatcher interface.
type MockWALWatcher struct {
	ctrl     *gomock.Controller
	recorder *MockWALWatcherMockRecorder
	isgomock struct{}
}

// MockWALWatcherMockRecorder is the mock recorder for MockWALWatcher.
type MockWALWatcherMockRecorder struct {
	mock *MockWALWatcher
}

// NewMockWALWatcher creates a new mock instance.
func NewMockWALWatcher(ctrl *gomock.Controller) *MockWALWatcher {
	mock := &MockWALWatcher{ctrl: ctrl}
	mock.recorder = &MockWALWatcherMockRecorder{mock}
	return mock
}

// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockWALWatcher) EXPECT() *MockWALWatcherMockRecorder {
	return m.recorder
}

// Start mocks base method.
func (m *MockWALWatcher) Start() {
	m.ctrl.T.Helper()
	m.ctrl.Call(m, "Start")
}

// Start indicates an expected call of Start.
func (mr *MockWALWatcherMockRecorder) Start() *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockWALWatcher)(nil).Start))
}
