mocks

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: interfaces.go

Generated by this command:

mockgen -source interfaces.go -destination=../mocks/mock_runstream.go -package=mocks github.com/zapier/tfbuddy/pkg/runstream

Package mocks is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: api_client.go

Generated by this command:

mockgen -source api_client.go -destination=../mocks/mock_tfc_api.go -package=mocks github.com/zapier/tfbuddy/pkg/tfc_api

Package mocks is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: interfaces.go

Generated by this command:

mockgen -source interfaces.go -destination=../mocks/mock_tfc_trigger.go -package=mocks github.com/zapier/tfbuddy/pkg/tfc_trigger

Package mocks is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: interfaces.go

Generated by this command:

mockgen -source interfaces.go -destination=../mocks/mock_vcs.go -package=mocks github.com/zapier/tfbuddy/pkg/vcs

Package mocks is a generated GoMock package.

Index

Constants

View Source
const TF_ORGANIZATION_NAME = "zapier-test"
View Source
const TF_WORKSPACE_NAME = "service-tfbuddy"

Variables

This section is empty.

Functions

This section is empty.

Types

type MockApiClient

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

MockApiClient is a mock of ApiClient interface.

func NewMockApiClient

func NewMockApiClient(ctrl *gomock.Controller) *MockApiClient

NewMockApiClient creates a new mock instance.

func (*MockApiClient) AddTags

func (m *MockApiClient) AddTags(ctx context.Context, workspace, prefix, value string) error

AddTags mocks base method.

func (*MockApiClient) CreateRunFromSource

func (m *MockApiClient) CreateRunFromSource(ctx context.Context, opts *tfc_api.ApiRunOptions) (*tfe.Run, error)

CreateRunFromSource mocks base method.

func (*MockApiClient) EXPECT

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

func (*MockApiClient) GetPlanOutput

func (m *MockApiClient) GetPlanOutput(id string) ([]byte, error)

GetPlanOutput mocks base method.

func (*MockApiClient) GetRun

func (m *MockApiClient) GetRun(ctx context.Context, id string) (*tfe.Run, error)

GetRun mocks base method.

func (*MockApiClient) GetTagsByQuery

func (m *MockApiClient) GetTagsByQuery(ctx context.Context, workspace, query string) ([]string, error)

GetTagsByQuery mocks base method.

func (*MockApiClient) GetWorkspaceById

func (m *MockApiClient) GetWorkspaceById(ctx context.Context, id string) (*tfe.Workspace, error)

GetWorkspaceById mocks base method.

func (*MockApiClient) GetWorkspaceByName

func (m *MockApiClient) GetWorkspaceByName(ctx context.Context, org, name string) (*tfe.Workspace, error)

GetWorkspaceByName mocks base method.

func (*MockApiClient) LockUnlockWorkspace

func (m *MockApiClient) LockUnlockWorkspace(ctx context.Context, workspace, reason, tag string, lock bool) error

LockUnlockWorkspace mocks base method.

func (*MockApiClient) RemoveTagsByQuery

func (m *MockApiClient) RemoveTagsByQuery(ctx context.Context, workspace, query string) error

RemoveTagsByQuery mocks base method.

type MockApiClientMockRecorder

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

MockApiClientMockRecorder is the mock recorder for MockApiClient.

func (*MockApiClientMockRecorder) AddTags

func (mr *MockApiClientMockRecorder) AddTags(ctx, workspace, prefix, value any) *gomock.Call

AddTags indicates an expected call of AddTags.

func (*MockApiClientMockRecorder) CreateRunFromSource

func (mr *MockApiClientMockRecorder) CreateRunFromSource(ctx, opts any) *gomock.Call

CreateRunFromSource indicates an expected call of CreateRunFromSource.

func (*MockApiClientMockRecorder) GetPlanOutput

func (mr *MockApiClientMockRecorder) GetPlanOutput(id any) *gomock.Call

GetPlanOutput indicates an expected call of GetPlanOutput.

func (*MockApiClientMockRecorder) GetRun

func (mr *MockApiClientMockRecorder) GetRun(ctx, id any) *gomock.Call

GetRun indicates an expected call of GetRun.

func (*MockApiClientMockRecorder) GetTagsByQuery

func (mr *MockApiClientMockRecorder) GetTagsByQuery(ctx, workspace, query any) *gomock.Call

GetTagsByQuery indicates an expected call of GetTagsByQuery.

func (*MockApiClientMockRecorder) GetWorkspaceById

func (mr *MockApiClientMockRecorder) GetWorkspaceById(ctx, id any) *gomock.Call

GetWorkspaceById indicates an expected call of GetWorkspaceById.

func (*MockApiClientMockRecorder) GetWorkspaceByName

func (mr *MockApiClientMockRecorder) GetWorkspaceByName(ctx, org, name any) *gomock.Call

GetWorkspaceByName indicates an expected call of GetWorkspaceByName.

func (*MockApiClientMockRecorder) LockUnlockWorkspace

func (mr *MockApiClientMockRecorder) LockUnlockWorkspace(ctx, workspace, reason, tag, lock any) *gomock.Call

LockUnlockWorkspace indicates an expected call of LockUnlockWorkspace.

func (*MockApiClientMockRecorder) RemoveTagsByQuery

func (mr *MockApiClientMockRecorder) RemoveTagsByQuery(ctx, workspace, query any) *gomock.Call

RemoveTagsByQuery indicates an expected call of RemoveTagsByQuery.

type MockCommit

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

MockCommit is a mock of Commit interface.

func NewMockCommit

func NewMockCommit(ctrl *gomock.Controller) *MockCommit

NewMockCommit creates a new mock instance.

func (*MockCommit) EXPECT

func (m *MockCommit) EXPECT() *MockCommitMockRecorder

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

func (*MockCommit) GetSHA

func (m *MockCommit) GetSHA() string

GetSHA mocks base method.

type MockCommitMockRecorder

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

MockCommitMockRecorder is the mock recorder for MockCommit.

func (*MockCommitMockRecorder) GetSHA

func (mr *MockCommitMockRecorder) GetSHA() *gomock.Call

GetSHA indicates an expected call of GetSHA.

type MockCommitStatus

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

MockCommitStatus is a mock of CommitStatus interface.

func NewMockCommitStatus

func NewMockCommitStatus(ctrl *gomock.Controller) *MockCommitStatus

NewMockCommitStatus creates a new mock instance.

func (*MockCommitStatus) EXPECT

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

func (*MockCommitStatus) Info

func (m *MockCommitStatus) Info() string

Info mocks base method.

type MockCommitStatusMockRecorder

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

MockCommitStatusMockRecorder is the mock recorder for MockCommitStatus.

func (*MockCommitStatusMockRecorder) Info

Info indicates an expected call of Info.

type MockCommitStatusOptions

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

MockCommitStatusOptions is a mock of CommitStatusOptions interface.

func NewMockCommitStatusOptions

func NewMockCommitStatusOptions(ctrl *gomock.Controller) *MockCommitStatusOptions

NewMockCommitStatusOptions creates a new mock instance.

func (*MockCommitStatusOptions) EXPECT

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

func (*MockCommitStatusOptions) GetContext

func (m *MockCommitStatusOptions) GetContext() string

GetContext mocks base method.

func (*MockCommitStatusOptions) GetDescription

func (m *MockCommitStatusOptions) GetDescription() string

GetDescription mocks base method.

func (*MockCommitStatusOptions) GetName

func (m *MockCommitStatusOptions) GetName() string

GetName mocks base method.

func (*MockCommitStatusOptions) GetPipelineID

func (m *MockCommitStatusOptions) GetPipelineID() int

GetPipelineID mocks base method.

func (*MockCommitStatusOptions) GetState

func (m *MockCommitStatusOptions) GetState() string

GetState mocks base method.

func (*MockCommitStatusOptions) GetTargetURL

func (m *MockCommitStatusOptions) GetTargetURL() string

GetTargetURL mocks base method.

type MockCommitStatusOptionsMockRecorder

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

MockCommitStatusOptionsMockRecorder is the mock recorder for MockCommitStatusOptions.

func (*MockCommitStatusOptionsMockRecorder) GetContext

GetContext indicates an expected call of GetContext.

func (*MockCommitStatusOptionsMockRecorder) GetDescription

func (mr *MockCommitStatusOptionsMockRecorder) GetDescription() *gomock.Call

GetDescription indicates an expected call of GetDescription.

func (*MockCommitStatusOptionsMockRecorder) GetName

GetName indicates an expected call of GetName.

func (*MockCommitStatusOptionsMockRecorder) GetPipelineID

func (mr *MockCommitStatusOptionsMockRecorder) GetPipelineID() *gomock.Call

GetPipelineID indicates an expected call of GetPipelineID.

func (*MockCommitStatusOptionsMockRecorder) GetState

GetState indicates an expected call of GetState.

func (*MockCommitStatusOptionsMockRecorder) GetTargetURL

func (mr *MockCommitStatusOptionsMockRecorder) GetTargetURL() *gomock.Call

GetTargetURL indicates an expected call of GetTargetURL.

type MockDetailedMR

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

MockDetailedMR is a mock of DetailedMR interface.

func NewMockDetailedMR

func NewMockDetailedMR(ctrl *gomock.Controller) *MockDetailedMR

NewMockDetailedMR creates a new mock instance.

func (*MockDetailedMR) EXPECT

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

func (*MockDetailedMR) GetAuthor

func (m *MockDetailedMR) GetAuthor() vcs.MRAuthor

GetAuthor mocks base method.

func (*MockDetailedMR) GetInternalID

func (m *MockDetailedMR) GetInternalID() int

GetInternalID mocks base method.

func (*MockDetailedMR) GetSourceBranch

func (m *MockDetailedMR) GetSourceBranch() string

GetSourceBranch mocks base method.

func (*MockDetailedMR) GetTargetBranch

func (m *MockDetailedMR) GetTargetBranch() string

GetTargetBranch mocks base method.

func (*MockDetailedMR) GetTitle

func (m *MockDetailedMR) GetTitle() string

GetTitle mocks base method.

func (*MockDetailedMR) GetWebURL

func (m *MockDetailedMR) GetWebURL() string

GetWebURL mocks base method.

func (*MockDetailedMR) HasConflicts

func (m *MockDetailedMR) HasConflicts() bool

HasConflicts mocks base method.

type MockDetailedMRMockRecorder

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

MockDetailedMRMockRecorder is the mock recorder for MockDetailedMR.

func (*MockDetailedMRMockRecorder) GetAuthor

func (mr *MockDetailedMRMockRecorder) GetAuthor() *gomock.Call

GetAuthor indicates an expected call of GetAuthor.

func (*MockDetailedMRMockRecorder) GetInternalID

func (mr *MockDetailedMRMockRecorder) GetInternalID() *gomock.Call

GetInternalID indicates an expected call of GetInternalID.

func (*MockDetailedMRMockRecorder) GetSourceBranch

func (mr *MockDetailedMRMockRecorder) GetSourceBranch() *gomock.Call

GetSourceBranch indicates an expected call of GetSourceBranch.

func (*MockDetailedMRMockRecorder) GetTargetBranch

func (mr *MockDetailedMRMockRecorder) GetTargetBranch() *gomock.Call

GetTargetBranch indicates an expected call of GetTargetBranch.

func (*MockDetailedMRMockRecorder) GetTitle

func (mr *MockDetailedMRMockRecorder) GetTitle() *gomock.Call

GetTitle indicates an expected call of GetTitle.

func (*MockDetailedMRMockRecorder) GetWebURL

func (mr *MockDetailedMRMockRecorder) GetWebURL() *gomock.Call

GetWebURL indicates an expected call of GetWebURL.

func (*MockDetailedMRMockRecorder) HasConflicts

func (mr *MockDetailedMRMockRecorder) HasConflicts() *gomock.Call

HasConflicts indicates an expected call of HasConflicts.

type MockGitClient

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

MockGitClient is a mock of GitClient interface.

func NewMockGitClient

func NewMockGitClient(ctrl *gomock.Controller) *MockGitClient

NewMockGitClient creates a new mock instance.

func (*MockGitClient) AddMergeRequestDiscussionReply

func (m *MockGitClient) AddMergeRequestDiscussionReply(ctx context.Context, mrIID int, project, discussionID, comment string) (vcs.MRNote, error)

AddMergeRequestDiscussionReply mocks base method.

func (*MockGitClient) CloneMergeRequest

func (m *MockGitClient) CloneMergeRequest(arg0 context.Context, arg1 string, arg2 vcs.MR, arg3 string) (vcs.GitRepo, error)

CloneMergeRequest mocks base method.

func (*MockGitClient) CreateMergeRequestComment

func (m *MockGitClient) CreateMergeRequestComment(ctx context.Context, id int, fullPath, comment string) error

CreateMergeRequestComment mocks base method.

func (*MockGitClient) CreateMergeRequestDiscussion

func (m *MockGitClient) CreateMergeRequestDiscussion(ctx context.Context, mrID int, fullPath, comment string) (vcs.MRDiscussionNotes, error)

CreateMergeRequestDiscussion mocks base method.

func (*MockGitClient) EXPECT

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

func (*MockGitClient) GetMergeRequest

func (m *MockGitClient) GetMergeRequest(arg0 context.Context, arg1 int, arg2 string) (vcs.DetailedMR, error)

GetMergeRequest mocks base method.

func (*MockGitClient) GetMergeRequestApprovals

func (m *MockGitClient) GetMergeRequestApprovals(ctx context.Context, id int, project string) (vcs.MRApproved, error)

GetMergeRequestApprovals mocks base method.

func (*MockGitClient) GetMergeRequestModifiedFiles

func (m *MockGitClient) GetMergeRequestModifiedFiles(ctx context.Context, mrIID int, projectID string) ([]string, error)

GetMergeRequestModifiedFiles mocks base method.

func (*MockGitClient) GetOldRunUrls added in v0.2.0

func (m *MockGitClient) GetOldRunUrls(ctx context.Context, mrIID int, project string, rootCommentID int) (string, error)

GetOldRunUrls mocks base method.

func (*MockGitClient) GetPipelinesForCommit

func (m *MockGitClient) GetPipelinesForCommit(ctx context.Context, projectWithNS, commitSHA string) ([]vcs.ProjectPipeline, error)

GetPipelinesForCommit mocks base method.

func (*MockGitClient) GetRepoFile

func (m *MockGitClient) GetRepoFile(arg0 context.Context, arg1, arg2, arg3 string) ([]byte, error)

GetRepoFile mocks base method.

func (*MockGitClient) MergeMR added in v0.3.0

func (m *MockGitClient) MergeMR(ctx context.Context, mrIID int, project string) error

MergeMR mocks base method.

func (*MockGitClient) ResolveMergeRequestDiscussion

func (m *MockGitClient) ResolveMergeRequestDiscussion(arg0 context.Context, arg1 string, arg2 int, arg3 string) error

ResolveMergeRequestDiscussion mocks base method.

func (*MockGitClient) SetCommitStatus

func (m *MockGitClient) SetCommitStatus(ctx context.Context, projectWithNS, commitSHA string, status vcs.CommitStatusOptions) (vcs.CommitStatus, error)

SetCommitStatus mocks base method.

func (*MockGitClient) UpdateMergeRequestDiscussionNote

func (m *MockGitClient) UpdateMergeRequestDiscussionNote(ctx context.Context, mrIID, noteID int, project, discussionID, comment string) (vcs.MRNote, error)

UpdateMergeRequestDiscussionNote mocks base method.

type MockGitClientMockRecorder

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

MockGitClientMockRecorder is the mock recorder for MockGitClient.

func (*MockGitClientMockRecorder) AddMergeRequestDiscussionReply

func (mr *MockGitClientMockRecorder) AddMergeRequestDiscussionReply(ctx, mrIID, project, discussionID, comment any) *gomock.Call

AddMergeRequestDiscussionReply indicates an expected call of AddMergeRequestDiscussionReply.

func (*MockGitClientMockRecorder) CloneMergeRequest

func (mr *MockGitClientMockRecorder) CloneMergeRequest(arg0, arg1, arg2, arg3 any) *gomock.Call

CloneMergeRequest indicates an expected call of CloneMergeRequest.

func (*MockGitClientMockRecorder) CreateMergeRequestComment

func (mr *MockGitClientMockRecorder) CreateMergeRequestComment(ctx, id, fullPath, comment any) *gomock.Call

CreateMergeRequestComment indicates an expected call of CreateMergeRequestComment.

func (*MockGitClientMockRecorder) CreateMergeRequestDiscussion

func (mr *MockGitClientMockRecorder) CreateMergeRequestDiscussion(ctx, mrID, fullPath, comment any) *gomock.Call

CreateMergeRequestDiscussion indicates an expected call of CreateMergeRequestDiscussion.

func (*MockGitClientMockRecorder) GetMergeRequest

func (mr *MockGitClientMockRecorder) GetMergeRequest(arg0, arg1, arg2 any) *gomock.Call

GetMergeRequest indicates an expected call of GetMergeRequest.

func (*MockGitClientMockRecorder) GetMergeRequestApprovals

func (mr *MockGitClientMockRecorder) GetMergeRequestApprovals(ctx, id, project any) *gomock.Call

GetMergeRequestApprovals indicates an expected call of GetMergeRequestApprovals.

func (*MockGitClientMockRecorder) GetMergeRequestModifiedFiles

func (mr *MockGitClientMockRecorder) GetMergeRequestModifiedFiles(ctx, mrIID, projectID any) *gomock.Call

GetMergeRequestModifiedFiles indicates an expected call of GetMergeRequestModifiedFiles.

func (*MockGitClientMockRecorder) GetOldRunUrls added in v0.3.0

func (mr *MockGitClientMockRecorder) GetOldRunUrls(ctx, mrIID, project, rootCommentID any) *gomock.Call

GetOldRunUrls indicates an expected call of GetOldRunUrls.

func (*MockGitClientMockRecorder) GetPipelinesForCommit

func (mr *MockGitClientMockRecorder) GetPipelinesForCommit(ctx, projectWithNS, commitSHA any) *gomock.Call

GetPipelinesForCommit indicates an expected call of GetPipelinesForCommit.

func (*MockGitClientMockRecorder) GetRepoFile

func (mr *MockGitClientMockRecorder) GetRepoFile(arg0, arg1, arg2, arg3 any) *gomock.Call

GetRepoFile indicates an expected call of GetRepoFile.

func (*MockGitClientMockRecorder) MergeMR added in v0.3.0

func (mr *MockGitClientMockRecorder) MergeMR(ctx, mrIID, project any) *gomock.Call

MergeMR indicates an expected call of MergeMR.

func (*MockGitClientMockRecorder) ResolveMergeRequestDiscussion

func (mr *MockGitClientMockRecorder) ResolveMergeRequestDiscussion(arg0, arg1, arg2, arg3 any) *gomock.Call

ResolveMergeRequestDiscussion indicates an expected call of ResolveMergeRequestDiscussion.

func (*MockGitClientMockRecorder) SetCommitStatus

func (mr *MockGitClientMockRecorder) SetCommitStatus(ctx, projectWithNS, commitSHA, status any) *gomock.Call

SetCommitStatus indicates an expected call of SetCommitStatus.

func (*MockGitClientMockRecorder) UpdateMergeRequestDiscussionNote

func (mr *MockGitClientMockRecorder) UpdateMergeRequestDiscussionNote(ctx, mrIID, noteID, project, discussionID, comment any) *gomock.Call

UpdateMergeRequestDiscussionNote indicates an expected call of UpdateMergeRequestDiscussionNote.

type MockGitRepo

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

MockGitRepo is a mock of GitRepo interface.

func NewMockGitRepo

func NewMockGitRepo(ctrl *gomock.Controller) *MockGitRepo

NewMockGitRepo creates a new mock instance.

func (*MockGitRepo) EXPECT

func (m *MockGitRepo) EXPECT() *MockGitRepoMockRecorder

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

func (*MockGitRepo) FetchUpstreamBranch

func (m *MockGitRepo) FetchUpstreamBranch(arg0 string) error

FetchUpstreamBranch mocks base method.

func (*MockGitRepo) GetLocalDirectory

func (m *MockGitRepo) GetLocalDirectory() string

GetLocalDirectory mocks base method.

func (*MockGitRepo) GetMergeBase

func (m *MockGitRepo) GetMergeBase(oldest, newest string) (string, error)

GetMergeBase mocks base method.

func (*MockGitRepo) GetModifiedFileNamesBetweenCommits

func (m *MockGitRepo) GetModifiedFileNamesBetweenCommits(oldest, newest string) ([]string, error)

GetModifiedFileNamesBetweenCommits mocks base method.

type MockGitRepoMockRecorder

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

MockGitRepoMockRecorder is the mock recorder for MockGitRepo.

func (*MockGitRepoMockRecorder) FetchUpstreamBranch

func (mr *MockGitRepoMockRecorder) FetchUpstreamBranch(arg0 any) *gomock.Call

FetchUpstreamBranch indicates an expected call of FetchUpstreamBranch.

func (*MockGitRepoMockRecorder) GetLocalDirectory

func (mr *MockGitRepoMockRecorder) GetLocalDirectory() *gomock.Call

GetLocalDirectory indicates an expected call of GetLocalDirectory.

func (*MockGitRepoMockRecorder) GetMergeBase

func (mr *MockGitRepoMockRecorder) GetMergeBase(oldest, newest any) *gomock.Call

GetMergeBase indicates an expected call of GetMergeBase.

func (*MockGitRepoMockRecorder) GetModifiedFileNamesBetweenCommits

func (mr *MockGitRepoMockRecorder) GetModifiedFileNamesBetweenCommits(oldest, newest any) *gomock.Call

GetModifiedFileNamesBetweenCommits indicates an expected call of GetModifiedFileNamesBetweenCommits.

type MockMR

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

MockMR is a mock of MR interface.

func NewMockMR

func NewMockMR(ctrl *gomock.Controller) *MockMR

NewMockMR creates a new mock instance.

func (*MockMR) EXPECT

func (m *MockMR) EXPECT() *MockMRMockRecorder

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

func (*MockMR) GetAuthor

func (m *MockMR) GetAuthor() vcs.MRAuthor

GetAuthor mocks base method.

func (*MockMR) GetInternalID

func (m *MockMR) GetInternalID() int

GetInternalID mocks base method.

func (*MockMR) GetSourceBranch

func (m *MockMR) GetSourceBranch() string

GetSourceBranch mocks base method.

func (*MockMR) GetTargetBranch

func (m *MockMR) GetTargetBranch() string

GetTargetBranch mocks base method.

type MockMRApproved

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

MockMRApproved is a mock of MRApproved interface.

func NewMockMRApproved

func NewMockMRApproved(ctrl *gomock.Controller) *MockMRApproved

NewMockMRApproved creates a new mock instance.

func (*MockMRApproved) EXPECT

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

func (*MockMRApproved) IsApproved

func (m *MockMRApproved) IsApproved() bool

IsApproved mocks base method.

type MockMRApprovedMockRecorder

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

MockMRApprovedMockRecorder is the mock recorder for MockMRApproved.

func (*MockMRApprovedMockRecorder) IsApproved

func (mr *MockMRApprovedMockRecorder) IsApproved() *gomock.Call

IsApproved indicates an expected call of IsApproved.

type MockMRAttributes

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

MockMRAttributes is a mock of MRAttributes interface.

func NewMockMRAttributes

func NewMockMRAttributes(ctrl *gomock.Controller) *MockMRAttributes

NewMockMRAttributes creates a new mock instance.

func (*MockMRAttributes) EXPECT

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

func (*MockMRAttributes) GetDiscussionID

func (m *MockMRAttributes) GetDiscussionID() string

GetDiscussionID mocks base method.

func (*MockMRAttributes) GetNote

func (m *MockMRAttributes) GetNote() string

GetNote mocks base method.

func (*MockMRAttributes) GetType

func (m *MockMRAttributes) GetType() string

GetType mocks base method.

type MockMRAttributesMockRecorder

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

MockMRAttributesMockRecorder is the mock recorder for MockMRAttributes.

func (*MockMRAttributesMockRecorder) GetDiscussionID

func (mr *MockMRAttributesMockRecorder) GetDiscussionID() *gomock.Call

GetDiscussionID indicates an expected call of GetDiscussionID.

func (*MockMRAttributesMockRecorder) GetNote

func (mr *MockMRAttributesMockRecorder) GetNote() *gomock.Call

GetNote indicates an expected call of GetNote.

func (*MockMRAttributesMockRecorder) GetType

func (mr *MockMRAttributesMockRecorder) GetType() *gomock.Call

GetType indicates an expected call of GetType.

type MockMRAuthor

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

MockMRAuthor is a mock of MRAuthor interface.

func NewMockMRAuthor

func NewMockMRAuthor(ctrl *gomock.Controller) *MockMRAuthor

NewMockMRAuthor creates a new mock instance.

func (*MockMRAuthor) EXPECT

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

func (*MockMRAuthor) GetUsername

func (m *MockMRAuthor) GetUsername() string

GetUsername mocks base method.

type MockMRAuthorMockRecorder

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

MockMRAuthorMockRecorder is the mock recorder for MockMRAuthor.

func (*MockMRAuthorMockRecorder) GetUsername

func (mr *MockMRAuthorMockRecorder) GetUsername() *gomock.Call

GetUsername indicates an expected call of GetUsername.

type MockMRBranches

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

MockMRBranches is a mock of MRBranches interface.

func NewMockMRBranches

func NewMockMRBranches(ctrl *gomock.Controller) *MockMRBranches

NewMockMRBranches creates a new mock instance.

func (*MockMRBranches) EXPECT

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

func (*MockMRBranches) GetSourceBranch

func (m *MockMRBranches) GetSourceBranch() string

GetSourceBranch mocks base method.

func (*MockMRBranches) GetTargetBranch

func (m *MockMRBranches) GetTargetBranch() string

GetTargetBranch mocks base method.

type MockMRBranchesMockRecorder

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

MockMRBranchesMockRecorder is the mock recorder for MockMRBranches.

func (*MockMRBranchesMockRecorder) GetSourceBranch

func (mr *MockMRBranchesMockRecorder) GetSourceBranch() *gomock.Call

GetSourceBranch indicates an expected call of GetSourceBranch.

func (*MockMRBranchesMockRecorder) GetTargetBranch

func (mr *MockMRBranchesMockRecorder) GetTargetBranch() *gomock.Call

GetTargetBranch indicates an expected call of GetTargetBranch.

type MockMRCommentEvent

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

MockMRCommentEvent is a mock of MRCommentEvent interface.

func NewMockMRCommentEvent

func NewMockMRCommentEvent(ctrl *gomock.Controller) *MockMRCommentEvent

NewMockMRCommentEvent creates a new mock instance.

func (*MockMRCommentEvent) EXPECT

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

func (*MockMRCommentEvent) GetAttributes

func (m *MockMRCommentEvent) GetAttributes() vcs.MRAttributes

GetAttributes mocks base method.

func (*MockMRCommentEvent) GetLastCommit

func (m *MockMRCommentEvent) GetLastCommit() vcs.Commit

GetLastCommit mocks base method.

func (*MockMRCommentEvent) GetMR

func (m *MockMRCommentEvent) GetMR() vcs.MR

GetMR mocks base method.

func (*MockMRCommentEvent) GetProject

func (m *MockMRCommentEvent) GetProject() vcs.Project

GetProject mocks base method.

type MockMRCommentEventMockRecorder

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

MockMRCommentEventMockRecorder is the mock recorder for MockMRCommentEvent.

func (*MockMRCommentEventMockRecorder) GetAttributes

func (mr *MockMRCommentEventMockRecorder) GetAttributes() *gomock.Call

GetAttributes indicates an expected call of GetAttributes.

func (*MockMRCommentEventMockRecorder) GetLastCommit

func (mr *MockMRCommentEventMockRecorder) GetLastCommit() *gomock.Call

GetLastCommit indicates an expected call of GetLastCommit.

func (*MockMRCommentEventMockRecorder) GetMR

GetMR indicates an expected call of GetMR.

func (*MockMRCommentEventMockRecorder) GetProject

func (mr *MockMRCommentEventMockRecorder) GetProject() *gomock.Call

GetProject indicates an expected call of GetProject.

type MockMRDiscussion

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

MockMRDiscussion is a mock of MRDiscussion interface.

func NewMockMRDiscussion

func NewMockMRDiscussion(ctrl *gomock.Controller) *MockMRDiscussion

NewMockMRDiscussion creates a new mock instance.

func (*MockMRDiscussion) EXPECT

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

func (*MockMRDiscussion) GetDiscussionID

func (m *MockMRDiscussion) GetDiscussionID() string

GetDiscussionID mocks base method.

type MockMRDiscussionMockRecorder

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

MockMRDiscussionMockRecorder is the mock recorder for MockMRDiscussion.

func (*MockMRDiscussionMockRecorder) GetDiscussionID

func (mr *MockMRDiscussionMockRecorder) GetDiscussionID() *gomock.Call

GetDiscussionID indicates an expected call of GetDiscussionID.

type MockMRDiscussionNotes

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

MockMRDiscussionNotes is a mock of MRDiscussionNotes interface.

func NewMockMRDiscussionNotes

func NewMockMRDiscussionNotes(ctrl *gomock.Controller) *MockMRDiscussionNotes

NewMockMRDiscussionNotes creates a new mock instance.

func (*MockMRDiscussionNotes) EXPECT

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

func (*MockMRDiscussionNotes) GetDiscussionID

func (m *MockMRDiscussionNotes) GetDiscussionID() string

GetDiscussionID mocks base method.

func (*MockMRDiscussionNotes) GetMRNotes

func (m *MockMRDiscussionNotes) GetMRNotes() []vcs.MRNote

GetMRNotes mocks base method.

type MockMRDiscussionNotesMockRecorder

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

MockMRDiscussionNotesMockRecorder is the mock recorder for MockMRDiscussionNotes.

func (*MockMRDiscussionNotesMockRecorder) GetDiscussionID

func (mr *MockMRDiscussionNotesMockRecorder) GetDiscussionID() *gomock.Call

GetDiscussionID indicates an expected call of GetDiscussionID.

func (*MockMRDiscussionNotesMockRecorder) GetMRNotes

func (mr *MockMRDiscussionNotesMockRecorder) GetMRNotes() *gomock.Call

GetMRNotes indicates an expected call of GetMRNotes.

type MockMRMockRecorder

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

MockMRMockRecorder is the mock recorder for MockMR.

func (*MockMRMockRecorder) GetAuthor

func (mr *MockMRMockRecorder) GetAuthor() *gomock.Call

GetAuthor indicates an expected call of GetAuthor.

func (*MockMRMockRecorder) GetInternalID

func (mr *MockMRMockRecorder) GetInternalID() *gomock.Call

GetInternalID indicates an expected call of GetInternalID.

func (*MockMRMockRecorder) GetSourceBranch

func (mr *MockMRMockRecorder) GetSourceBranch() *gomock.Call

GetSourceBranch indicates an expected call of GetSourceBranch.

func (*MockMRMockRecorder) GetTargetBranch

func (mr *MockMRMockRecorder) GetTargetBranch() *gomock.Call

GetTargetBranch indicates an expected call of GetTargetBranch.

type MockMRNote

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

MockMRNote is a mock of MRNote interface.

func NewMockMRNote

func NewMockMRNote(ctrl *gomock.Controller) *MockMRNote

NewMockMRNote creates a new mock instance.

func (*MockMRNote) EXPECT

func (m *MockMRNote) EXPECT() *MockMRNoteMockRecorder

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

func (*MockMRNote) GetNoteID

func (m *MockMRNote) GetNoteID() int64

GetNoteID mocks base method.

type MockMRNoteMockRecorder

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

MockMRNoteMockRecorder is the mock recorder for MockMRNote.

func (*MockMRNoteMockRecorder) GetNoteID

func (mr *MockMRNoteMockRecorder) GetNoteID() *gomock.Call

GetNoteID indicates an expected call of GetNoteID.

type MockProject

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

MockProject is a mock of Project interface.

func NewMockProject

func NewMockProject(ctrl *gomock.Controller) *MockProject

NewMockProject creates a new mock instance.

func (*MockProject) EXPECT

func (m *MockProject) EXPECT() *MockProjectMockRecorder

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

func (*MockProject) GetPathWithNamespace

func (m *MockProject) GetPathWithNamespace() string

GetPathWithNamespace mocks base method.

type MockProjectMockRecorder

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

MockProjectMockRecorder is the mock recorder for MockProject.

func (*MockProjectMockRecorder) GetPathWithNamespace

func (mr *MockProjectMockRecorder) GetPathWithNamespace() *gomock.Call

GetPathWithNamespace indicates an expected call of GetPathWithNamespace.

type MockProjectPipeline

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

MockProjectPipeline is a mock of ProjectPipeline interface.

func NewMockProjectPipeline

func NewMockProjectPipeline(ctrl *gomock.Controller) *MockProjectPipeline

NewMockProjectPipeline creates a new mock instance.

func (*MockProjectPipeline) EXPECT

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

func (*MockProjectPipeline) GetID

func (m *MockProjectPipeline) GetID() int

GetID mocks base method.

func (*MockProjectPipeline) GetSource

func (m *MockProjectPipeline) GetSource() string

GetSource mocks base method.

type MockProjectPipelineMockRecorder

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

MockProjectPipelineMockRecorder is the mock recorder for MockProjectPipeline.

func (*MockProjectPipelineMockRecorder) GetID

GetID indicates an expected call of GetID.

func (*MockProjectPipelineMockRecorder) GetSource

func (mr *MockProjectPipelineMockRecorder) GetSource() *gomock.Call

GetSource indicates an expected call of GetSource.

type MockRunEvent

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

MockRunEvent is a mock of RunEvent interface.

func NewMockRunEvent

func NewMockRunEvent(ctrl *gomock.Controller) *MockRunEvent

NewMockRunEvent creates a new mock instance.

func (*MockRunEvent) EXPECT

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

func (*MockRunEvent) GetContext added in v0.2.1

func (m *MockRunEvent) GetContext() context.Context

GetContext mocks base method.

func (*MockRunEvent) GetMetadata

func (m *MockRunEvent) GetMetadata() runstream.RunMetadata

GetMetadata mocks base method.

func (*MockRunEvent) GetNewStatus

func (m *MockRunEvent) GetNewStatus() string

GetNewStatus mocks base method.

func (*MockRunEvent) GetRunID

func (m *MockRunEvent) GetRunID() string

GetRunID mocks base method.

func (*MockRunEvent) SetCarrier added in v0.2.1

func (m *MockRunEvent) SetCarrier(arg0 map[string]string)

SetCarrier mocks base method.

func (*MockRunEvent) SetContext added in v0.2.1

func (m *MockRunEvent) SetContext(arg0 context.Context)

SetContext mocks base method.

func (*MockRunEvent) SetMetadata

func (m *MockRunEvent) SetMetadata(arg0 runstream.RunMetadata)

SetMetadata mocks base method.

type MockRunEventMockRecorder

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

MockRunEventMockRecorder is the mock recorder for MockRunEvent.

func (*MockRunEventMockRecorder) GetContext added in v0.2.1

func (mr *MockRunEventMockRecorder) GetContext() *gomock.Call

GetContext indicates an expected call of GetContext.

func (*MockRunEventMockRecorder) GetMetadata

func (mr *MockRunEventMockRecorder) GetMetadata() *gomock.Call

GetMetadata indicates an expected call of GetMetadata.

func (*MockRunEventMockRecorder) GetNewStatus

func (mr *MockRunEventMockRecorder) GetNewStatus() *gomock.Call

GetNewStatus indicates an expected call of GetNewStatus.

func (*MockRunEventMockRecorder) GetRunID

func (mr *MockRunEventMockRecorder) GetRunID() *gomock.Call

GetRunID indicates an expected call of GetRunID.

func (*MockRunEventMockRecorder) SetCarrier added in v0.2.1

func (mr *MockRunEventMockRecorder) SetCarrier(arg0 any) *gomock.Call

SetCarrier indicates an expected call of SetCarrier.

func (*MockRunEventMockRecorder) SetContext added in v0.2.1

func (mr *MockRunEventMockRecorder) SetContext(arg0 any) *gomock.Call

SetContext indicates an expected call of SetContext.

func (*MockRunEventMockRecorder) SetMetadata

func (mr *MockRunEventMockRecorder) SetMetadata(arg0 any) *gomock.Call

SetMetadata indicates an expected call of SetMetadata.

type MockRunMetadata

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

MockRunMetadata is a mock of RunMetadata interface.

func NewMockRunMetadata

func NewMockRunMetadata(ctrl *gomock.Controller) *MockRunMetadata

NewMockRunMetadata creates a new mock instance.

func (*MockRunMetadata) EXPECT

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

func (*MockRunMetadata) GetAction

func (m *MockRunMetadata) GetAction() string

GetAction mocks base method.

func (*MockRunMetadata) GetAutoMerge added in v0.3.0

func (m *MockRunMetadata) GetAutoMerge() bool

GetAutoMerge mocks base method.

func (*MockRunMetadata) GetCommitSHA

func (m *MockRunMetadata) GetCommitSHA() string

GetCommitSHA mocks base method.

func (*MockRunMetadata) GetDiscussionID

func (m *MockRunMetadata) GetDiscussionID() string

GetDiscussionID mocks base method.

func (*MockRunMetadata) GetMRInternalID

func (m *MockRunMetadata) GetMRInternalID() int

GetMRInternalID mocks base method.

func (*MockRunMetadata) GetMRProjectNameWithNamespace

func (m *MockRunMetadata) GetMRProjectNameWithNamespace() string

GetMRProjectNameWithNamespace mocks base method.

func (*MockRunMetadata) GetOrganization

func (m *MockRunMetadata) GetOrganization() string

GetOrganization mocks base method.

func (*MockRunMetadata) GetRootNoteID

func (m *MockRunMetadata) GetRootNoteID() int64

GetRootNoteID mocks base method.

func (*MockRunMetadata) GetRunID

func (m *MockRunMetadata) GetRunID() string

GetRunID mocks base method.

func (*MockRunMetadata) GetVcsProvider

func (m *MockRunMetadata) GetVcsProvider() string

GetVcsProvider mocks base method.

func (*MockRunMetadata) GetWorkspace

func (m *MockRunMetadata) GetWorkspace() string

GetWorkspace mocks base method.

type MockRunMetadataMockRecorder

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

MockRunMetadataMockRecorder is the mock recorder for MockRunMetadata.

func (*MockRunMetadataMockRecorder) GetAction

func (mr *MockRunMetadataMockRecorder) GetAction() *gomock.Call

GetAction indicates an expected call of GetAction.

func (*MockRunMetadataMockRecorder) GetAutoMerge added in v0.3.0

func (mr *MockRunMetadataMockRecorder) GetAutoMerge() *gomock.Call

GetAutoMerge indicates an expected call of GetAutoMerge.

func (*MockRunMetadataMockRecorder) GetCommitSHA

func (mr *MockRunMetadataMockRecorder) GetCommitSHA() *gomock.Call

GetCommitSHA indicates an expected call of GetCommitSHA.

func (*MockRunMetadataMockRecorder) GetDiscussionID

func (mr *MockRunMetadataMockRecorder) GetDiscussionID() *gomock.Call

GetDiscussionID indicates an expected call of GetDiscussionID.

func (*MockRunMetadataMockRecorder) GetMRInternalID

func (mr *MockRunMetadataMockRecorder) GetMRInternalID() *gomock.Call

GetMRInternalID indicates an expected call of GetMRInternalID.

func (*MockRunMetadataMockRecorder) GetMRProjectNameWithNamespace

func (mr *MockRunMetadataMockRecorder) GetMRProjectNameWithNamespace() *gomock.Call

GetMRProjectNameWithNamespace indicates an expected call of GetMRProjectNameWithNamespace.

func (*MockRunMetadataMockRecorder) GetOrganization

func (mr *MockRunMetadataMockRecorder) GetOrganization() *gomock.Call

GetOrganization indicates an expected call of GetOrganization.

func (*MockRunMetadataMockRecorder) GetRootNoteID

func (mr *MockRunMetadataMockRecorder) GetRootNoteID() *gomock.Call

GetRootNoteID indicates an expected call of GetRootNoteID.

func (*MockRunMetadataMockRecorder) GetRunID

func (mr *MockRunMetadataMockRecorder) GetRunID() *gomock.Call

GetRunID indicates an expected call of GetRunID.

func (*MockRunMetadataMockRecorder) GetVcsProvider

func (mr *MockRunMetadataMockRecorder) GetVcsProvider() *gomock.Call

GetVcsProvider indicates an expected call of GetVcsProvider.

func (*MockRunMetadataMockRecorder) GetWorkspace

func (mr *MockRunMetadataMockRecorder) GetWorkspace() *gomock.Call

GetWorkspace indicates an expected call of GetWorkspace.

type MockRunPollingTask

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

MockRunPollingTask is a mock of RunPollingTask interface.

func NewMockRunPollingTask

func NewMockRunPollingTask(ctrl *gomock.Controller) *MockRunPollingTask

NewMockRunPollingTask creates a new mock instance.

func (*MockRunPollingTask) Completed

func (m *MockRunPollingTask) Completed() error

Completed mocks base method.

func (*MockRunPollingTask) EXPECT

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

func (*MockRunPollingTask) GetContext added in v0.2.1

func (m *MockRunPollingTask) GetContext() context.Context

GetContext mocks base method.

func (*MockRunPollingTask) GetLastStatus

func (m *MockRunPollingTask) GetLastStatus() string

GetLastStatus mocks base method.

func (*MockRunPollingTask) GetRunID

func (m *MockRunPollingTask) GetRunID() string

GetRunID mocks base method.

func (*MockRunPollingTask) GetRunMetaData

func (m *MockRunPollingTask) GetRunMetaData() runstream.RunMetadata

GetRunMetaData mocks base method.

func (*MockRunPollingTask) Reschedule

func (m *MockRunPollingTask) Reschedule(ctx context.Context) error

Reschedule mocks base method.

func (*MockRunPollingTask) Schedule

func (m *MockRunPollingTask) Schedule(ctx context.Context) error

Schedule mocks base method.

func (*MockRunPollingTask) SetCarrier added in v0.2.1

func (m *MockRunPollingTask) SetCarrier(arg0 map[string]string)

SetCarrier mocks base method.

func (*MockRunPollingTask) SetLastStatus

func (m *MockRunPollingTask) SetLastStatus(arg0 string)

SetLastStatus mocks base method.

type MockRunPollingTaskMockRecorder

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

MockRunPollingTaskMockRecorder is the mock recorder for MockRunPollingTask.

func (*MockRunPollingTaskMockRecorder) Completed

func (mr *MockRunPollingTaskMockRecorder) Completed() *gomock.Call

Completed indicates an expected call of Completed.

func (*MockRunPollingTaskMockRecorder) GetContext added in v0.2.1

func (mr *MockRunPollingTaskMockRecorder) GetContext() *gomock.Call

GetContext indicates an expected call of GetContext.

func (*MockRunPollingTaskMockRecorder) GetLastStatus

func (mr *MockRunPollingTaskMockRecorder) GetLastStatus() *gomock.Call

GetLastStatus indicates an expected call of GetLastStatus.

func (*MockRunPollingTaskMockRecorder) GetRunID

func (mr *MockRunPollingTaskMockRecorder) GetRunID() *gomock.Call

GetRunID indicates an expected call of GetRunID.

func (*MockRunPollingTaskMockRecorder) GetRunMetaData

func (mr *MockRunPollingTaskMockRecorder) GetRunMetaData() *gomock.Call

GetRunMetaData indicates an expected call of GetRunMetaData.

func (*MockRunPollingTaskMockRecorder) Reschedule

func (mr *MockRunPollingTaskMockRecorder) Reschedule(ctx any) *gomock.Call

Reschedule indicates an expected call of Reschedule.

func (*MockRunPollingTaskMockRecorder) Schedule

func (mr *MockRunPollingTaskMockRecorder) Schedule(ctx any) *gomock.Call

Schedule indicates an expected call of Schedule.

func (*MockRunPollingTaskMockRecorder) SetCarrier added in v0.2.1

func (mr *MockRunPollingTaskMockRecorder) SetCarrier(arg0 any) *gomock.Call

SetCarrier indicates an expected call of SetCarrier.

func (*MockRunPollingTaskMockRecorder) SetLastStatus

func (mr *MockRunPollingTaskMockRecorder) SetLastStatus(arg0 any) *gomock.Call

SetLastStatus indicates an expected call of SetLastStatus.

type MockStreamClient

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

MockStreamClient is a mock of StreamClient interface.

func NewMockStreamClient

func NewMockStreamClient(ctrl *gomock.Controller) *MockStreamClient

NewMockStreamClient creates a new mock instance.

func (*MockStreamClient) AddRunMeta

func (m *MockStreamClient) AddRunMeta(rmd runstream.RunMetadata) error

AddRunMeta mocks base method.

func (*MockStreamClient) EXPECT

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

func (*MockStreamClient) GetRunMeta

func (m *MockStreamClient) GetRunMeta(runID string) (runstream.RunMetadata, error)

GetRunMeta mocks base method.

func (*MockStreamClient) HealthCheck

func (m *MockStreamClient) HealthCheck() error

HealthCheck mocks base method.

func (*MockStreamClient) NewTFRunPollingTask

func (m *MockStreamClient) NewTFRunPollingTask(meta runstream.RunMetadata, delay time.Duration) runstream.RunPollingTask

NewTFRunPollingTask mocks base method.

func (*MockStreamClient) PublishTFRunEvent

func (m *MockStreamClient) PublishTFRunEvent(ctx context.Context, re runstream.RunEvent) error

PublishTFRunEvent mocks base method.

func (*MockStreamClient) SubscribeTFRunEvents

func (m *MockStreamClient) SubscribeTFRunEvents(queue string, cb func(runstream.RunEvent) bool) (func(), error)

SubscribeTFRunEvents mocks base method.

func (*MockStreamClient) SubscribeTFRunPollingTasks

func (m *MockStreamClient) SubscribeTFRunPollingTasks(cb func(runstream.RunPollingTask) bool) (func(), error)

SubscribeTFRunPollingTasks mocks base method.

type MockStreamClientMockRecorder

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

MockStreamClientMockRecorder is the mock recorder for MockStreamClient.

func (*MockStreamClientMockRecorder) AddRunMeta

func (mr *MockStreamClientMockRecorder) AddRunMeta(rmd any) *gomock.Call

AddRunMeta indicates an expected call of AddRunMeta.

func (*MockStreamClientMockRecorder) GetRunMeta

func (mr *MockStreamClientMockRecorder) GetRunMeta(runID any) *gomock.Call

GetRunMeta indicates an expected call of GetRunMeta.

func (*MockStreamClientMockRecorder) HealthCheck

func (mr *MockStreamClientMockRecorder) HealthCheck() *gomock.Call

HealthCheck indicates an expected call of HealthCheck.

func (*MockStreamClientMockRecorder) NewTFRunPollingTask

func (mr *MockStreamClientMockRecorder) NewTFRunPollingTask(meta, delay any) *gomock.Call

NewTFRunPollingTask indicates an expected call of NewTFRunPollingTask.

func (*MockStreamClientMockRecorder) PublishTFRunEvent

func (mr *MockStreamClientMockRecorder) PublishTFRunEvent(ctx, re any) *gomock.Call

PublishTFRunEvent indicates an expected call of PublishTFRunEvent.

func (*MockStreamClientMockRecorder) SubscribeTFRunEvents

func (mr *MockStreamClientMockRecorder) SubscribeTFRunEvents(queue, cb any) *gomock.Call

SubscribeTFRunEvents indicates an expected call of SubscribeTFRunEvents.

func (*MockStreamClientMockRecorder) SubscribeTFRunPollingTasks

func (mr *MockStreamClientMockRecorder) SubscribeTFRunPollingTasks(cb any) *gomock.Call

SubscribeTFRunPollingTasks indicates an expected call of SubscribeTFRunPollingTasks.

type MockTrigger

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

MockTrigger is a mock of Trigger interface.

func NewMockTrigger

func NewMockTrigger(ctrl *gomock.Controller) *MockTrigger

NewMockTrigger creates a new mock instance.

func (*MockTrigger) EXPECT

func (m *MockTrigger) EXPECT() *MockTriggerMockRecorder

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

func (*MockTrigger) GetAction added in v0.1.6

func (m *MockTrigger) GetAction() tfc_trigger.TriggerAction

GetAction mocks base method.

func (*MockTrigger) GetBranch added in v0.1.6

func (m *MockTrigger) GetBranch() string

GetBranch mocks base method.

func (*MockTrigger) GetCommitSHA added in v0.1.6

func (m *MockTrigger) GetCommitSHA() string

GetCommitSHA mocks base method.

func (*MockTrigger) GetMergeRequestDiscussionID added in v0.1.6

func (m *MockTrigger) GetMergeRequestDiscussionID() string

GetMergeRequestDiscussionID mocks base method.

func (*MockTrigger) GetMergeRequestIID added in v0.1.6

func (m *MockTrigger) GetMergeRequestIID() int

GetMergeRequestIID mocks base method.

func (*MockTrigger) GetMergeRequestRootNoteID added in v0.1.6

func (m *MockTrigger) GetMergeRequestRootNoteID() int64

GetMergeRequestRootNoteID mocks base method.

func (*MockTrigger) GetProjectNameWithNamespace added in v0.1.6

func (m *MockTrigger) GetProjectNameWithNamespace() string

GetProjectNameWithNamespace mocks base method.

func (*MockTrigger) GetTriggerSource added in v0.1.6

func (m *MockTrigger) GetTriggerSource() tfc_trigger.TriggerSource

GetTriggerSource mocks base method.

func (*MockTrigger) GetVcsProvider added in v0.1.6

func (m *MockTrigger) GetVcsProvider() string

GetVcsProvider mocks base method.

func (*MockTrigger) GetWorkspace added in v0.1.6

func (m *MockTrigger) GetWorkspace() string

GetWorkspace mocks base method.

func (*MockTrigger) SetMergeRequestDiscussionID added in v0.1.6

func (m *MockTrigger) SetMergeRequestDiscussionID(mrdisID string)

SetMergeRequestDiscussionID mocks base method.

func (*MockTrigger) SetMergeRequestRootNoteID added in v0.1.6

func (m *MockTrigger) SetMergeRequestRootNoteID(id int64)

SetMergeRequestRootNoteID mocks base method.

func (*MockTrigger) TriggerCleanupEvent

func (m *MockTrigger) TriggerCleanupEvent(arg0 context.Context) error

TriggerCleanupEvent mocks base method.

func (*MockTrigger) TriggerTFCEvents

func (m *MockTrigger) TriggerTFCEvents(arg0 context.Context) (*tfc_trigger.TriggeredTFCWorkspaces, error)

TriggerTFCEvents mocks base method.

type MockTriggerMockRecorder

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

MockTriggerMockRecorder is the mock recorder for MockTrigger.

func (*MockTriggerMockRecorder) GetAction added in v0.1.6

func (mr *MockTriggerMockRecorder) GetAction() *gomock.Call

GetAction indicates an expected call of GetAction.

func (*MockTriggerMockRecorder) GetBranch added in v0.1.6

func (mr *MockTriggerMockRecorder) GetBranch() *gomock.Call

GetBranch indicates an expected call of GetBranch.

func (*MockTriggerMockRecorder) GetCommitSHA added in v0.1.6

func (mr *MockTriggerMockRecorder) GetCommitSHA() *gomock.Call

GetCommitSHA indicates an expected call of GetCommitSHA.

func (*MockTriggerMockRecorder) GetMergeRequestDiscussionID added in v0.1.6

func (mr *MockTriggerMockRecorder) GetMergeRequestDiscussionID() *gomock.Call

GetMergeRequestDiscussionID indicates an expected call of GetMergeRequestDiscussionID.

func (*MockTriggerMockRecorder) GetMergeRequestIID added in v0.1.6

func (mr *MockTriggerMockRecorder) GetMergeRequestIID() *gomock.Call

GetMergeRequestIID indicates an expected call of GetMergeRequestIID.

func (*MockTriggerMockRecorder) GetMergeRequestRootNoteID added in v0.1.6

func (mr *MockTriggerMockRecorder) GetMergeRequestRootNoteID() *gomock.Call

GetMergeRequestRootNoteID indicates an expected call of GetMergeRequestRootNoteID.

func (*MockTriggerMockRecorder) GetProjectNameWithNamespace added in v0.1.6

func (mr *MockTriggerMockRecorder) GetProjectNameWithNamespace() *gomock.Call

GetProjectNameWithNamespace indicates an expected call of GetProjectNameWithNamespace.

func (*MockTriggerMockRecorder) GetTriggerSource added in v0.1.6

func (mr *MockTriggerMockRecorder) GetTriggerSource() *gomock.Call

GetTriggerSource indicates an expected call of GetTriggerSource.

func (*MockTriggerMockRecorder) GetVcsProvider added in v0.1.6

func (mr *MockTriggerMockRecorder) GetVcsProvider() *gomock.Call

GetVcsProvider indicates an expected call of GetVcsProvider.

func (*MockTriggerMockRecorder) GetWorkspace added in v0.1.6

func (mr *MockTriggerMockRecorder) GetWorkspace() *gomock.Call

GetWorkspace indicates an expected call of GetWorkspace.

func (*MockTriggerMockRecorder) SetMergeRequestDiscussionID added in v0.1.6

func (mr *MockTriggerMockRecorder) SetMergeRequestDiscussionID(mrdisID any) *gomock.Call

SetMergeRequestDiscussionID indicates an expected call of SetMergeRequestDiscussionID.

func (*MockTriggerMockRecorder) SetMergeRequestRootNoteID added in v0.1.6

func (mr *MockTriggerMockRecorder) SetMergeRequestRootNoteID(id any) *gomock.Call

SetMergeRequestRootNoteID indicates an expected call of SetMergeRequestRootNoteID.

func (*MockTriggerMockRecorder) TriggerCleanupEvent

func (mr *MockTriggerMockRecorder) TriggerCleanupEvent(arg0 any) *gomock.Call

TriggerCleanupEvent indicates an expected call of TriggerCleanupEvent.

func (*MockTriggerMockRecorder) TriggerTFCEvents

func (mr *MockTriggerMockRecorder) TriggerTFCEvents(arg0 any) *gomock.Call

TriggerTFCEvents indicates an expected call of TriggerTFCEvents.

type RegexMatcher

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

func (*RegexMatcher) Matches

func (r *RegexMatcher) Matches(x interface{}) bool

func (*RegexMatcher) String

func (r *RegexMatcher) String() string

String describes what the matcher matches.

type TestGitRepo

type TestGitRepo struct {
	Repo *git.Repository
}

func InitGitTestRepo

func InitGitTestRepo(t *testing.T) (*TestGitRepo, string)

InitGitTestRepo create an in memory git repo and returns itself and the initial commit hash

func (*TestGitRepo) CreateCommitFileOnCurrentBranch

func (t *TestGitRepo) CreateCommitFileOnCurrentBranch(fileName, commitMessage string) (string, error)

CreateFileOnCurrentBranch creates a file on the current active branch and commits it

func (*TestGitRepo) SwitchToBranch

func (t *TestGitRepo) SwitchToBranch(branch string) error

SwitchToBranch will switch to a new branch and create it if needed

type TestMetaData

type TestMetaData struct {
	MRIID         int
	ProjectNameNS string
	CommonSHA     string
	TargetBranch  string
	SourceBranch  string
	TFBuddyConfig []byte
}

type TestOverrides

type TestOverrides struct {
	ProjectConfig *tfc_trigger.ProjectConfig
}

type TestSuite

type TestSuite struct {
	MockGitClient    *MockGitClient
	MockGitMR        *MockDetailedMR
	MockGitRepo      *MockGitRepo
	MockGitDisc      *MockMRDiscussionNotes
	MockMRNote       *MockMRNote
	MockApiClient    *MockApiClient
	MockStreamClient *MockStreamClient
	MockProject      *MockProject
	MetaData         *TestMetaData
}

func CreateTestSuite

func CreateTestSuite(mockCtrl *gomock.Controller, overrides TestOverrides, t *testing.T) *TestSuite

func (*TestSuite) InitTestSuite

func (ts *TestSuite) InitTestSuite()

Jump to

Keyboard shortcuts

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