// 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: IReleaseCategoryRelRepo)
//
// Generated by this command:
//
//	mockgen -package idbaccessmock -destination ./idbaccessmock/release_category_rel.go github.com/kweaver-ai/kweaver-core/decision-agent/agent-backend/agent-factory/src/port/driven/idbaccess IReleaseCategoryRelRepo
//

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

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

	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"
)

// MockIReleaseCategoryRelRepo is a mock of IReleaseCategoryRelRepo interface.
type MockIReleaseCategoryRelRepo struct {
	ctrl     *gomock.Controller
	recorder *MockIReleaseCategoryRelRepoMockRecorder
	isgomock struct{}
}

// MockIReleaseCategoryRelRepoMockRecorder is the mock recorder for MockIReleaseCategoryRelRepo.
type MockIReleaseCategoryRelRepoMockRecorder struct {
	mock *MockIReleaseCategoryRelRepo
}

// NewMockIReleaseCategoryRelRepo creates a new mock instance.
func NewMockIReleaseCategoryRelRepo(ctrl *gomock.Controller) *MockIReleaseCategoryRelRepo {
	mock := &MockIReleaseCategoryRelRepo{ctrl: ctrl}
	mock.recorder = &MockIReleaseCategoryRelRepoMockRecorder{mock}
	return mock
}

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

// BatchCreate mocks base method.
func (m *MockIReleaseCategoryRelRepo) BatchCreate(ctx context.Context, tx *sql.Tx, pos []*dapo.ReleaseCategoryRelPO) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "BatchCreate", ctx, tx, pos)
	ret0, _ := ret[0].(error)
	return ret0
}

// BatchCreate indicates an expected call of BatchCreate.
func (mr *MockIReleaseCategoryRelRepoMockRecorder) BatchCreate(ctx, tx, pos any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchCreate", reflect.TypeOf((*MockIReleaseCategoryRelRepo)(nil).BatchCreate), ctx, tx, pos)
}

// BeginTx mocks base method.
func (m *MockIReleaseCategoryRelRepo) 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 *MockIReleaseCategoryRelRepoMockRecorder) BeginTx(ctx any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BeginTx", reflect.TypeOf((*MockIReleaseCategoryRelRepo)(nil).BeginTx), ctx)
}

// Create mocks base method.
func (m *MockIReleaseCategoryRelRepo) Create(ctx context.Context, tx *sql.Tx, po *dapo.ReleaseCategoryRelPO) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Create", ctx, tx, po)
	ret0, _ := ret[0].(error)
	return ret0
}

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

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

// DelByReleaseID indicates an expected call of DelByReleaseID.
func (mr *MockIReleaseCategoryRelRepoMockRecorder) DelByReleaseID(ctx, tx, release any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DelByReleaseID", reflect.TypeOf((*MockIReleaseCategoryRelRepo)(nil).DelByReleaseID), ctx, tx, release)
}

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

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

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

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

// GetDB mocks base method.
func (m *MockIReleaseCategoryRelRepo) 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 *MockIReleaseCategoryRelRepoMockRecorder) GetDB() *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDB", reflect.TypeOf((*MockIReleaseCategoryRelRepo)(nil).GetDB))
}
