// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/kweaver-ai/kweaver-core/decision-agent/agent-backend/agent-factory/src/port/driven/idbaccess (interfaces: IConversationRepo)
//
// Generated by this command:
//
//	mockgen -package idbaccessmock -destination ./idbaccessmock/conversation.go github.com/kweaver-ai/kweaver-core/decision-agent/agent-backend/agent-factory/src/port/driven/idbaccess IConversationRepo
//

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

import (
	context "context"
	sql "database/sql"
	reflect "reflect"

	conversationreq "github.com/kweaver-ai/kweaver-core/decision-agent/agent-backend/agent-factory/src/driveradapter/api/rdto/conversation/conversationreq"
	dapo "github.com/kweaver-ai/kweaver-core/decision-agent/agent-backend/agent-factory/src/infra/persistence/dapo"
	sqlx "github.com/kweaver-ai/proton-rds-sdk-go/sqlx"
	gomock "go.uber.org/mock/gomock"
)

// MockIConversationRepo is a mock of IConversationRepo interface.
type MockIConversationRepo struct {
	ctrl     *gomock.Controller
	recorder *MockIConversationRepoMockRecorder
	isgomock struct{}
}

// MockIConversationRepoMockRecorder is the mock recorder for MockIConversationRepo.
type MockIConversationRepoMockRecorder struct {
	mock *MockIConversationRepo
}

// NewMockIConversationRepo creates a new mock instance.
func NewMockIConversationRepo(ctrl *gomock.Controller) *MockIConversationRepo {
	mock := &MockIConversationRepo{ctrl: ctrl}
	mock.recorder = &MockIConversationRepoMockRecorder{mock}
	return mock
}

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

// BeginTx mocks base method.
func (m *MockIConversationRepo) BeginTx(ctx context.Context) (*sql.Tx, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "BeginTx", ctx)
	ret0, _ := ret[0].(*sql.Tx)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// BeginTx indicates an expected call of BeginTx.
func (mr *MockIConversationRepoMockRecorder) BeginTx(ctx any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeginTx", reflect.TypeOf((*MockIConversationRepo)(nil).BeginTx), ctx)
}

// Create mocks base method.
func (m *MockIConversationRepo) Create(ctx context.Context, po *dapo.ConversationPO) (*dapo.ConversationPO, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Create", ctx, po)
	ret0, _ := ret[0].(*dapo.ConversationPO)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// Create indicates an expected call of Create.
func (mr *MockIConversationRepoMockRecorder) Create(ctx, po any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockIConversationRepo)(nil).Create), ctx, po)
}

// Delete mocks base method.
func (m *MockIConversationRepo) Delete(ctx context.Context, tx *sql.Tx, id string) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Delete", ctx, tx, id)
	ret0, _ := ret[0].(error)
	return ret0
}

// Delete indicates an expected call of Delete.
func (mr *MockIConversationRepoMockRecorder) Delete(ctx, tx, id any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockIConversationRepo)(nil).Delete), ctx, tx, id)
}

// DeleteByAPPKey mocks base method.
func (m *MockIConversationRepo) DeleteByAPPKey(ctx context.Context, tx *sql.Tx, appKey string) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "DeleteByAPPKey", ctx, tx, appKey)
	ret0, _ := ret[0].(error)
	return ret0
}

// DeleteByAPPKey indicates an expected call of DeleteByAPPKey.
func (mr *MockIConversationRepoMockRecorder) DeleteByAPPKey(ctx, tx, appKey any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteByAPPKey", reflect.TypeOf((*MockIConversationRepo)(nil).DeleteByAPPKey), ctx, tx, appKey)
}

// GetByID mocks base method.
func (m *MockIConversationRepo) GetByID(ctx context.Context, id string) (*dapo.ConversationPO, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetByID", ctx, id)
	ret0, _ := ret[0].(*dapo.ConversationPO)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetByID indicates an expected call of GetByID.
func (mr *MockIConversationRepoMockRecorder) GetByID(ctx, id any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByID", reflect.TypeOf((*MockIConversationRepo)(nil).GetByID), ctx, id)
}

// GetDB mocks base method.
func (m *MockIConversationRepo) GetDB() *sqlx.DB {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetDB")
	ret0, _ := ret[0].(*sqlx.DB)
	return ret0
}

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

// List mocks base method.
func (m *MockIConversationRepo) List(ctx context.Context, req conversationreq.ListReq) ([]*dapo.ConversationPO, int64, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "List", ctx, req)
	ret0, _ := ret[0].([]*dapo.ConversationPO)
	ret1, _ := ret[1].(int64)
	ret2, _ := ret[2].(error)
	return ret0, ret1, ret2
}

// List indicates an expected call of List.
func (mr *MockIConversationRepoMockRecorder) List(ctx, req any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockIConversationRepo)(nil).List), ctx, req)
}

// ListByAgentID mocks base method.
func (m *MockIConversationRepo) ListByAgentID(ctx context.Context, agentID, title string, page, size int) ([]*dapo.ConversationPO, int64, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListByAgentID", ctx, agentID, title, page, size)
	ret0, _ := ret[0].([]*dapo.ConversationPO)
	ret1, _ := ret[1].(int64)
	ret2, _ := ret[2].(error)
	return ret0, ret1, ret2
}

// ListByAgentID indicates an expected call of ListByAgentID.
func (mr *MockIConversationRepoMockRecorder) ListByAgentID(ctx, agentID, title, page, size any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListByAgentID", reflect.TypeOf((*MockIConversationRepo)(nil).ListByAgentID), ctx, agentID, title, page, size)
}

// Update mocks base method.
func (m *MockIConversationRepo) Update(ctx context.Context, po *dapo.ConversationPO) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Update", ctx, po)
	ret0, _ := ret[0].(error)
	return ret0
}

// Update indicates an expected call of Update.
func (mr *MockIConversationRepoMockRecorder) Update(ctx, po any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockIConversationRepo)(nil).Update), ctx, po)
}
