// Code generated by MockGen. DO NOT EDIT.
// Source: mcp_server_release_history.go
//
// Generated by this command:
//
//	mockgen -source=mcp_server_release_history.go -destination=../../mocks/model_mcp_server_release_history.go -package=mocks
//

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

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

	model "github.com/kweaver-ai/adp/execution-factory/operator-integration/server/interfaces/model"
	gomock "go.uber.org/mock/gomock"
)

// MockDBMCPServerReleaseHistory is a mock of DBMCPServerReleaseHistory interface.
type MockDBMCPServerReleaseHistory struct {
	ctrl     *gomock.Controller
	recorder *MockDBMCPServerReleaseHistoryMockRecorder
	isgomock struct{}
}

// MockDBMCPServerReleaseHistoryMockRecorder is the mock recorder for MockDBMCPServerReleaseHistory.
type MockDBMCPServerReleaseHistoryMockRecorder struct {
	mock *MockDBMCPServerReleaseHistory
}

// NewMockDBMCPServerReleaseHistory creates a new mock instance.
func NewMockDBMCPServerReleaseHistory(ctrl *gomock.Controller) *MockDBMCPServerReleaseHistory {
	mock := &MockDBMCPServerReleaseHistory{ctrl: ctrl}
	mock.recorder = &MockDBMCPServerReleaseHistoryMockRecorder{mock}
	return mock
}

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

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

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

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

// DeleteByMCPID indicates an expected call of DeleteByMCPID.
func (mr *MockDBMCPServerReleaseHistoryMockRecorder) DeleteByMCPID(ctx, tx, mcpID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteByMCPID", reflect.TypeOf((*MockDBMCPServerReleaseHistory)(nil).DeleteByMCPID), ctx, tx, mcpID)
}

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

// DeleteByMCPIDAndVersion indicates an expected call of DeleteByMCPIDAndVersion.
func (mr *MockDBMCPServerReleaseHistoryMockRecorder) DeleteByMCPIDAndVersion(ctx, tx, mcpID, version any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteByMCPIDAndVersion", reflect.TypeOf((*MockDBMCPServerReleaseHistory)(nil).DeleteByMCPIDAndVersion), ctx, tx, mcpID, version)
}

// Insert mocks base method.
func (m *MockDBMCPServerReleaseHistory) Insert(ctx context.Context, tx *sql.Tx, history *model.MCPServerReleaseHistoryDB) (string, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Insert", ctx, tx, history)
	ret0, _ := ret[0].(string)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// Insert indicates an expected call of Insert.
func (mr *MockDBMCPServerReleaseHistoryMockRecorder) Insert(ctx, tx, history any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Insert", reflect.TypeOf((*MockDBMCPServerReleaseHistory)(nil).Insert), ctx, tx, history)
}

// SelectByMCPID mocks base method.
func (m *MockDBMCPServerReleaseHistory) SelectByMCPID(ctx context.Context, tx *sql.Tx, mcpID string) ([]*model.MCPServerReleaseHistoryDB, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "SelectByMCPID", ctx, tx, mcpID)
	ret0, _ := ret[0].([]*model.MCPServerReleaseHistoryDB)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// SelectByMCPID indicates an expected call of SelectByMCPID.
func (mr *MockDBMCPServerReleaseHistoryMockRecorder) SelectByMCPID(ctx, tx, mcpID any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelectByMCPID", reflect.TypeOf((*MockDBMCPServerReleaseHistory)(nil).SelectByMCPID), ctx, tx, mcpID)
}
