mocks

package
v0.0.0-...-c09d977 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitlabClient

type GitlabClient struct {
	// contains filtered or unexported fields
}

GitlabClient is a mock of GitlabClient interface.

func NewGitlabClient

func NewGitlabClient(ctrl *gomock.Controller) *GitlabClient

NewGitlabClient creates a new mock instance.

func (*GitlabClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*GitlabClient) MergeRequestApproves

func (m *GitlabClient) MergeRequestApproves(projectID, iid int) ([]*ds.BasicUser, error)

MergeRequestApproves mocks base method.

func (*GitlabClient) MergeRequestsByProject

func (m *GitlabClient) MergeRequestsByProject(projectID int, createdAfter time.Time) ([]*ds.MergeRequest, error)

MergeRequestsByProject mocks base method.

type GitlabClientMockRecorder

type GitlabClientMockRecorder struct {
	// contains filtered or unexported fields
}

GitlabClientMockRecorder is the mock recorder for GitlabClient.

func (*GitlabClientMockRecorder) MergeRequestApproves

func (mr *GitlabClientMockRecorder) MergeRequestApproves(projectID, iid interface{}) *gomock.Call

MergeRequestApproves indicates an expected call of MergeRequestApproves.

func (*GitlabClientMockRecorder) MergeRequestsByProject

func (mr *GitlabClientMockRecorder) MergeRequestsByProject(projectID, createdAfter interface{}) *gomock.Call

MergeRequestsByProject indicates an expected call of MergeRequestsByProject.

type MockWorker

type MockWorker struct {
	// contains filtered or unexported fields
}

MockWorker is a mock of Worker interface.

func NewMockWorker

func NewMockWorker(ctrl *gomock.Controller) *MockWorker

NewMockWorker creates a new mock instance.

func (*MockWorker) Close

func (m *MockWorker) Close()

Close mocks base method.

func (*MockWorker) EXPECT

func (m *MockWorker) EXPECT() *MockWorkerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockWorker) Run

func (m *MockWorker) Run()

Run mocks base method.

type MockWorkerMockRecorder

type MockWorkerMockRecorder struct {
	// contains filtered or unexported fields
}

MockWorkerMockRecorder is the mock recorder for MockWorker.

func (*MockWorkerMockRecorder) Close

func (mr *MockWorkerMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockWorkerMockRecorder) Run

func (mr *MockWorkerMockRecorder) Run() *gomock.Call

Run indicates an expected call of Run.

type Policy

type Policy struct {
	// contains filtered or unexported fields
}

Policy is a mock of Policy interface.

func NewPolicy

func NewPolicy(ctrl *gomock.Controller) *Policy

NewPolicy creates a new mock instance.

func (*Policy) ApprovedByPolicy

func (m *Policy) ApprovedByPolicy(team *ds.Team, mr *ds.MergeRequest) bool

ApprovedByPolicy mocks base method.

func (*Policy) ApprovedByUser

func (m *Policy) ApprovedByUser(team *ds.Team, mr *ds.MergeRequest, byAll ...*ds.BasicUser) bool

ApprovedByUser mocks base method.

func (*Policy) EXPECT

func (m *Policy) EXPECT() *PolicyMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*Policy) ProcessChanges

func (m *Policy) ProcessChanges(team *ds.Team, mr *ds.MergeRequest) error

ProcessChanges mocks base method.

type PolicyMockRecorder

type PolicyMockRecorder struct {
	// contains filtered or unexported fields
}

PolicyMockRecorder is the mock recorder for Policy.

func (*PolicyMockRecorder) ApprovedByPolicy

func (mr_2 *PolicyMockRecorder) ApprovedByPolicy(team, mr interface{}) *gomock.Call

ApprovedByPolicy indicates an expected call of ApprovedByPolicy.

func (*PolicyMockRecorder) ApprovedByUser

func (mr_2 *PolicyMockRecorder) ApprovedByUser(team, mr interface{}, byAll ...interface{}) *gomock.Call

ApprovedByUser indicates an expected call of ApprovedByUser.

func (*PolicyMockRecorder) ProcessChanges

func (mr_2 *PolicyMockRecorder) ProcessChanges(team, mr interface{}) *gomock.Call

ProcessChanges indicates an expected call of ProcessChanges.

type Repository

type Repository struct {
	// contains filtered or unexported fields
}

Repository is a mock of Repository interface.

func NewRepository

func NewRepository(ctrl *gomock.Controller) *Repository

NewRepository creates a new mock instance.

func (*Repository) EXPECT

func (m *Repository) EXPECT() *RepositoryMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*Repository) MergeRequestByID

func (m *Repository) MergeRequestByID(id int) (*ds.MergeRequest, error)

MergeRequestByID mocks base method.

func (*Repository) MergeRequestsByAuthor

func (m *Repository) MergeRequestsByAuthor(authorID []int) ([]*ds.MergeRequest, error)

MergeRequestsByAuthor mocks base method.

func (*Repository) MergeRequestsByProject

func (m *Repository) MergeRequestsByProject(projectID int) ([]*ds.MergeRequest, error)

MergeRequestsByProject mocks base method.

func (*Repository) MergeRequestsByReviewer

func (m *Repository) MergeRequestsByReviewer(reviewerID []int) ([]*ds.MergeRequest, error)

MergeRequestsByReviewer mocks base method.

func (*Repository) Projects

func (m *Repository) Projects() ([]*ds.Project, error)

Projects mocks base method.

func (*Repository) Teams

func (m *Repository) Teams() ([]*ds.Team, error)

Teams mocks base method.

func (*Repository) UpsertMergeRequest

func (m *Repository) UpsertMergeRequest(mr *ds.MergeRequest) error

UpsertMergeRequest mocks base method.

func (*Repository) UserBySlackID

func (m *Repository) UserBySlackID(slackID string) (*ds.User, *ds.Team, error)

UserBySlackID mocks base method.

type RepositoryMockRecorder

type RepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

RepositoryMockRecorder is the mock recorder for Repository.

func (*RepositoryMockRecorder) MergeRequestByID

func (mr *RepositoryMockRecorder) MergeRequestByID(id interface{}) *gomock.Call

MergeRequestByID indicates an expected call of MergeRequestByID.

func (*RepositoryMockRecorder) MergeRequestsByAuthor

func (mr *RepositoryMockRecorder) MergeRequestsByAuthor(authorID interface{}) *gomock.Call

MergeRequestsByAuthor indicates an expected call of MergeRequestsByAuthor.

func (*RepositoryMockRecorder) MergeRequestsByProject

func (mr *RepositoryMockRecorder) MergeRequestsByProject(projectID interface{}) *gomock.Call

MergeRequestsByProject indicates an expected call of MergeRequestsByProject.

func (*RepositoryMockRecorder) MergeRequestsByReviewer

func (mr *RepositoryMockRecorder) MergeRequestsByReviewer(reviewerID interface{}) *gomock.Call

MergeRequestsByReviewer indicates an expected call of MergeRequestsByReviewer.

func (*RepositoryMockRecorder) Projects

func (mr *RepositoryMockRecorder) Projects() *gomock.Call

Projects indicates an expected call of Projects.

func (*RepositoryMockRecorder) Teams

func (mr *RepositoryMockRecorder) Teams() *gomock.Call

Teams indicates an expected call of Teams.

func (*RepositoryMockRecorder) UpsertMergeRequest

func (mr_2 *RepositoryMockRecorder) UpsertMergeRequest(mr interface{}) *gomock.Call

UpsertMergeRequest indicates an expected call of UpsertMergeRequest.

func (*RepositoryMockRecorder) UserBySlackID

func (mr *RepositoryMockRecorder) UserBySlackID(slackID interface{}) *gomock.Call

UserBySlackID indicates an expected call of UserBySlackID.

type SlackClient

type SlackClient struct {
	// contains filtered or unexported fields
}

SlackClient is a mock of SlackClient interface.

func NewSlackClient

func NewSlackClient(ctrl *gomock.Controller) *SlackClient

NewSlackClient creates a new mock instance.

func (*SlackClient) EXPECT

func (m *SlackClient) EXPECT() *SlackClientMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*SlackClient) SendMessage

func (m *SlackClient) SendMessage(recipientID, message string) error

SendMessage mocks base method.

func (*SlackClient) Subscribe

func (m *SlackClient) Subscribe() (chan ds.UserEvent, error)

Subscribe mocks base method.

type SlackClientMockRecorder

type SlackClientMockRecorder struct {
	// contains filtered or unexported fields
}

SlackClientMockRecorder is the mock recorder for SlackClient.

func (*SlackClientMockRecorder) SendMessage

func (mr *SlackClientMockRecorder) SendMessage(recipientID, message interface{}) *gomock.Call

SendMessage indicates an expected call of SendMessage.

func (*SlackClientMockRecorder) Subscribe

func (mr *SlackClientMockRecorder) Subscribe() *gomock.Call

Subscribe indicates an expected call of Subscribe.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL