forgetest

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package forgetest is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockForge

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

MockForge is a mock of Forge interface.

func NewMockForge

func NewMockForge(ctrl *gomock.Controller) *MockForge

NewMockForge creates a new mock instance.

func (*MockForge) AuthenticationFlow

func (m *MockForge) AuthenticationFlow(ctx context.Context) (forge.AuthenticationToken, error)

AuthenticationFlow mocks base method.

func (*MockForge) CLIPlugin

func (m *MockForge) CLIPlugin() any

CLIPlugin mocks base method.

func (*MockForge) ChangeTemplatePaths

func (m *MockForge) ChangeTemplatePaths() []string

ChangeTemplatePaths mocks base method.

func (*MockForge) ClearAuthenticationToken

func (m *MockForge) ClearAuthenticationToken(arg0 secret.Stash) error

ClearAuthenticationToken mocks base method.

func (*MockForge) EXPECT

func (m *MockForge) EXPECT() *MockForgeMockRecorder

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

func (*MockForge) ID

func (m *MockForge) ID() string

ID mocks base method.

func (*MockForge) LoadAuthenticationToken

func (m *MockForge) LoadAuthenticationToken(arg0 secret.Stash) (forge.AuthenticationToken, error)

LoadAuthenticationToken mocks base method.

func (*MockForge) MarshalChangeMetadata

func (m *MockForge) MarshalChangeMetadata(arg0 forge.ChangeMetadata) (json.RawMessage, error)

MarshalChangeMetadata mocks base method.

func (*MockForge) MatchURL

func (m *MockForge) MatchURL(remoteURL string) bool

MatchURL mocks base method.

func (*MockForge) OpenURL

func (m *MockForge) OpenURL(ctx context.Context, tok forge.AuthenticationToken, remoteURL string) (forge.Repository, error)

OpenURL mocks base method.

func (*MockForge) SaveAuthenticationToken

func (m *MockForge) SaveAuthenticationToken(arg0 secret.Stash, arg1 forge.AuthenticationToken) error

SaveAuthenticationToken mocks base method.

func (*MockForge) UnmarshalChangeMetadata

func (m *MockForge) UnmarshalChangeMetadata(arg0 json.RawMessage) (forge.ChangeMetadata, error)

UnmarshalChangeMetadata mocks base method.

type MockForgeAuthenticationFlowCall

type MockForgeAuthenticationFlowCall struct {
	*gomock.Call
}

MockForgeAuthenticationFlowCall wrap *gomock.Call

func (*MockForgeAuthenticationFlowCall) Do

Do rewrite *gomock.Call.Do

func (*MockForgeAuthenticationFlowCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockForgeAuthenticationFlowCall) Return

Return rewrite *gomock.Call.Return

type MockForgeCLIPluginCall

type MockForgeCLIPluginCall struct {
	*gomock.Call
}

MockForgeCLIPluginCall wrap *gomock.Call

func (*MockForgeCLIPluginCall) Do

Do rewrite *gomock.Call.Do

func (*MockForgeCLIPluginCall) DoAndReturn

func (c *MockForgeCLIPluginCall) DoAndReturn(f func() any) *MockForgeCLIPluginCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockForgeCLIPluginCall) Return

Return rewrite *gomock.Call.Return

type MockForgeChangeTemplatePathsCall

type MockForgeChangeTemplatePathsCall struct {
	*gomock.Call
}

MockForgeChangeTemplatePathsCall wrap *gomock.Call

func (*MockForgeChangeTemplatePathsCall) Do

Do rewrite *gomock.Call.Do

func (*MockForgeChangeTemplatePathsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockForgeChangeTemplatePathsCall) Return

Return rewrite *gomock.Call.Return

type MockForgeClearAuthenticationTokenCall

type MockForgeClearAuthenticationTokenCall struct {
	*gomock.Call
}

MockForgeClearAuthenticationTokenCall wrap *gomock.Call

func (*MockForgeClearAuthenticationTokenCall) Do

Do rewrite *gomock.Call.Do

func (*MockForgeClearAuthenticationTokenCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockForgeClearAuthenticationTokenCall) Return

Return rewrite *gomock.Call.Return

type MockForgeIDCall

type MockForgeIDCall struct {
	*gomock.Call
}

MockForgeIDCall wrap *gomock.Call

func (*MockForgeIDCall) Do

func (c *MockForgeIDCall) Do(f func() string) *MockForgeIDCall

Do rewrite *gomock.Call.Do

func (*MockForgeIDCall) DoAndReturn

func (c *MockForgeIDCall) DoAndReturn(f func() string) *MockForgeIDCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockForgeIDCall) Return

func (c *MockForgeIDCall) Return(arg0 string) *MockForgeIDCall

Return rewrite *gomock.Call.Return

type MockForgeLoadAuthenticationTokenCall

type MockForgeLoadAuthenticationTokenCall struct {
	*gomock.Call
}

MockForgeLoadAuthenticationTokenCall wrap *gomock.Call

func (*MockForgeLoadAuthenticationTokenCall) Do

Do rewrite *gomock.Call.Do

func (*MockForgeLoadAuthenticationTokenCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockForgeLoadAuthenticationTokenCall) Return

Return rewrite *gomock.Call.Return

type MockForgeMarshalChangeMetadataCall

type MockForgeMarshalChangeMetadataCall struct {
	*gomock.Call
}

MockForgeMarshalChangeMetadataCall wrap *gomock.Call

func (*MockForgeMarshalChangeMetadataCall) Do

Do rewrite *gomock.Call.Do

func (*MockForgeMarshalChangeMetadataCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockForgeMarshalChangeMetadataCall) Return

Return rewrite *gomock.Call.Return

type MockForgeMatchURLCall

type MockForgeMatchURLCall struct {
	*gomock.Call
}

MockForgeMatchURLCall wrap *gomock.Call

func (*MockForgeMatchURLCall) Do

Do rewrite *gomock.Call.Do

func (*MockForgeMatchURLCall) DoAndReturn

func (c *MockForgeMatchURLCall) DoAndReturn(f func(string) bool) *MockForgeMatchURLCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockForgeMatchURLCall) Return

Return rewrite *gomock.Call.Return

type MockForgeMockRecorder

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

MockForgeMockRecorder is the mock recorder for MockForge.

func (*MockForgeMockRecorder) AuthenticationFlow

func (mr *MockForgeMockRecorder) AuthenticationFlow(ctx any) *MockForgeAuthenticationFlowCall

AuthenticationFlow indicates an expected call of AuthenticationFlow.

func (*MockForgeMockRecorder) CLIPlugin

CLIPlugin indicates an expected call of CLIPlugin.

func (*MockForgeMockRecorder) ChangeTemplatePaths

func (mr *MockForgeMockRecorder) ChangeTemplatePaths() *MockForgeChangeTemplatePathsCall

ChangeTemplatePaths indicates an expected call of ChangeTemplatePaths.

func (*MockForgeMockRecorder) ClearAuthenticationToken

func (mr *MockForgeMockRecorder) ClearAuthenticationToken(arg0 any) *MockForgeClearAuthenticationTokenCall

ClearAuthenticationToken indicates an expected call of ClearAuthenticationToken.

func (*MockForgeMockRecorder) ID

ID indicates an expected call of ID.

func (*MockForgeMockRecorder) LoadAuthenticationToken

func (mr *MockForgeMockRecorder) LoadAuthenticationToken(arg0 any) *MockForgeLoadAuthenticationTokenCall

LoadAuthenticationToken indicates an expected call of LoadAuthenticationToken.

func (*MockForgeMockRecorder) MarshalChangeMetadata

func (mr *MockForgeMockRecorder) MarshalChangeMetadata(arg0 any) *MockForgeMarshalChangeMetadataCall

MarshalChangeMetadata indicates an expected call of MarshalChangeMetadata.

func (*MockForgeMockRecorder) MatchURL

func (mr *MockForgeMockRecorder) MatchURL(remoteURL any) *MockForgeMatchURLCall

MatchURL indicates an expected call of MatchURL.

func (*MockForgeMockRecorder) OpenURL

func (mr *MockForgeMockRecorder) OpenURL(ctx, tok, remoteURL any) *MockForgeOpenURLCall

OpenURL indicates an expected call of OpenURL.

func (*MockForgeMockRecorder) SaveAuthenticationToken

func (mr *MockForgeMockRecorder) SaveAuthenticationToken(arg0, arg1 any) *MockForgeSaveAuthenticationTokenCall

SaveAuthenticationToken indicates an expected call of SaveAuthenticationToken.

func (*MockForgeMockRecorder) UnmarshalChangeMetadata

func (mr *MockForgeMockRecorder) UnmarshalChangeMetadata(arg0 any) *MockForgeUnmarshalChangeMetadataCall

UnmarshalChangeMetadata indicates an expected call of UnmarshalChangeMetadata.

type MockForgeOpenURLCall

type MockForgeOpenURLCall struct {
	*gomock.Call
}

MockForgeOpenURLCall wrap *gomock.Call

func (*MockForgeOpenURLCall) Do

Do rewrite *gomock.Call.Do

func (*MockForgeOpenURLCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockForgeOpenURLCall) Return

Return rewrite *gomock.Call.Return

type MockForgeSaveAuthenticationTokenCall

type MockForgeSaveAuthenticationTokenCall struct {
	*gomock.Call
}

MockForgeSaveAuthenticationTokenCall wrap *gomock.Call

func (*MockForgeSaveAuthenticationTokenCall) Do

Do rewrite *gomock.Call.Do

func (*MockForgeSaveAuthenticationTokenCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockForgeSaveAuthenticationTokenCall) Return

Return rewrite *gomock.Call.Return

type MockForgeUnmarshalChangeMetadataCall

type MockForgeUnmarshalChangeMetadataCall struct {
	*gomock.Call
}

MockForgeUnmarshalChangeMetadataCall wrap *gomock.Call

func (*MockForgeUnmarshalChangeMetadataCall) Do

Do rewrite *gomock.Call.Do

func (*MockForgeUnmarshalChangeMetadataCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockForgeUnmarshalChangeMetadataCall) Return

Return rewrite *gomock.Call.Return

type MockRepository

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

MockRepository is a mock of Repository interface.

func NewMockRepository

func NewMockRepository(ctrl *gomock.Controller) *MockRepository

NewMockRepository creates a new mock instance.

func (*MockRepository) ChangesAreMerged

func (m *MockRepository) ChangesAreMerged(ctx context.Context, ids []forge.ChangeID) ([]bool, error)

ChangesAreMerged mocks base method.

func (*MockRepository) EXPECT

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

func (*MockRepository) EditChange

EditChange mocks base method.

func (*MockRepository) FindChangeByID

func (m *MockRepository) FindChangeByID(ctx context.Context, id forge.ChangeID) (*forge.FindChangeItem, error)

FindChangeByID mocks base method.

func (*MockRepository) FindChangesByBranch

func (m *MockRepository) FindChangesByBranch(ctx context.Context, branch string, opts forge.FindChangesOptions) ([]*forge.FindChangeItem, error)

FindChangesByBranch mocks base method.

func (*MockRepository) Forge

func (m *MockRepository) Forge() forge.Forge

Forge mocks base method.

func (*MockRepository) ListChangeComments

ListChangeComments mocks base method.

func (*MockRepository) ListChangeTemplates

func (m *MockRepository) ListChangeTemplates(arg0 context.Context) ([]*forge.ChangeTemplate, error)

ListChangeTemplates mocks base method.

func (*MockRepository) NewChangeMetadata

func (m *MockRepository) NewChangeMetadata(ctx context.Context, id forge.ChangeID) (forge.ChangeMetadata, error)

NewChangeMetadata mocks base method.

func (*MockRepository) PostChangeComment

func (m *MockRepository) PostChangeComment(arg0 context.Context, arg1 forge.ChangeID, arg2 string) (forge.ChangeCommentID, error)

PostChangeComment mocks base method.

func (*MockRepository) SubmitChange

SubmitChange mocks base method.

func (*MockRepository) UpdateChangeComment

func (m *MockRepository) UpdateChangeComment(arg0 context.Context, arg1 forge.ChangeCommentID, arg2 string) error

UpdateChangeComment mocks base method.

type MockRepositoryChangesAreMergedCall

type MockRepositoryChangesAreMergedCall struct {
	*gomock.Call
}

MockRepositoryChangesAreMergedCall wrap *gomock.Call

func (*MockRepositoryChangesAreMergedCall) Do

Do rewrite *gomock.Call.Do

func (*MockRepositoryChangesAreMergedCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRepositoryChangesAreMergedCall) Return

Return rewrite *gomock.Call.Return

type MockRepositoryEditChangeCall

type MockRepositoryEditChangeCall struct {
	*gomock.Call
}

MockRepositoryEditChangeCall wrap *gomock.Call

func (*MockRepositoryEditChangeCall) Do

Do rewrite *gomock.Call.Do

func (*MockRepositoryEditChangeCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRepositoryEditChangeCall) Return

Return rewrite *gomock.Call.Return

type MockRepositoryFindChangeByIDCall

type MockRepositoryFindChangeByIDCall struct {
	*gomock.Call
}

MockRepositoryFindChangeByIDCall wrap *gomock.Call

func (*MockRepositoryFindChangeByIDCall) Do

Do rewrite *gomock.Call.Do

func (*MockRepositoryFindChangeByIDCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRepositoryFindChangeByIDCall) Return

Return rewrite *gomock.Call.Return

type MockRepositoryFindChangesByBranchCall

type MockRepositoryFindChangesByBranchCall struct {
	*gomock.Call
}

MockRepositoryFindChangesByBranchCall wrap *gomock.Call

func (*MockRepositoryFindChangesByBranchCall) Do

Do rewrite *gomock.Call.Do

func (*MockRepositoryFindChangesByBranchCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRepositoryFindChangesByBranchCall) Return

Return rewrite *gomock.Call.Return

type MockRepositoryForgeCall

type MockRepositoryForgeCall struct {
	*gomock.Call
}

MockRepositoryForgeCall wrap *gomock.Call

func (*MockRepositoryForgeCall) Do

Do rewrite *gomock.Call.Do

func (*MockRepositoryForgeCall) DoAndReturn

func (c *MockRepositoryForgeCall) DoAndReturn(f func() forge.Forge) *MockRepositoryForgeCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRepositoryForgeCall) Return

Return rewrite *gomock.Call.Return

type MockRepositoryListChangeCommentsCall

type MockRepositoryListChangeCommentsCall struct {
	*gomock.Call
}

MockRepositoryListChangeCommentsCall wrap *gomock.Call

func (*MockRepositoryListChangeCommentsCall) Do

Do rewrite *gomock.Call.Do

func (*MockRepositoryListChangeCommentsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRepositoryListChangeCommentsCall) Return

Return rewrite *gomock.Call.Return

type MockRepositoryListChangeTemplatesCall

type MockRepositoryListChangeTemplatesCall struct {
	*gomock.Call
}

MockRepositoryListChangeTemplatesCall wrap *gomock.Call

func (*MockRepositoryListChangeTemplatesCall) Do

Do rewrite *gomock.Call.Do

func (*MockRepositoryListChangeTemplatesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRepositoryListChangeTemplatesCall) Return

Return rewrite *gomock.Call.Return

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository.

func (*MockRepositoryMockRecorder) ChangesAreMerged

func (mr *MockRepositoryMockRecorder) ChangesAreMerged(ctx, ids any) *MockRepositoryChangesAreMergedCall

ChangesAreMerged indicates an expected call of ChangesAreMerged.

func (*MockRepositoryMockRecorder) EditChange

func (mr *MockRepositoryMockRecorder) EditChange(ctx, id, opts any) *MockRepositoryEditChangeCall

EditChange indicates an expected call of EditChange.

func (*MockRepositoryMockRecorder) FindChangeByID

FindChangeByID indicates an expected call of FindChangeByID.

func (*MockRepositoryMockRecorder) FindChangesByBranch

func (mr *MockRepositoryMockRecorder) FindChangesByBranch(ctx, branch, opts any) *MockRepositoryFindChangesByBranchCall

FindChangesByBranch indicates an expected call of FindChangesByBranch.

func (*MockRepositoryMockRecorder) Forge

Forge indicates an expected call of Forge.

func (*MockRepositoryMockRecorder) ListChangeComments

func (mr *MockRepositoryMockRecorder) ListChangeComments(arg0, arg1, arg2 any) *MockRepositoryListChangeCommentsCall

ListChangeComments indicates an expected call of ListChangeComments.

func (*MockRepositoryMockRecorder) ListChangeTemplates

ListChangeTemplates indicates an expected call of ListChangeTemplates.

func (*MockRepositoryMockRecorder) NewChangeMetadata

func (mr *MockRepositoryMockRecorder) NewChangeMetadata(ctx, id any) *MockRepositoryNewChangeMetadataCall

NewChangeMetadata indicates an expected call of NewChangeMetadata.

func (*MockRepositoryMockRecorder) PostChangeComment

func (mr *MockRepositoryMockRecorder) PostChangeComment(arg0, arg1, arg2 any) *MockRepositoryPostChangeCommentCall

PostChangeComment indicates an expected call of PostChangeComment.

func (*MockRepositoryMockRecorder) SubmitChange

SubmitChange indicates an expected call of SubmitChange.

func (*MockRepositoryMockRecorder) UpdateChangeComment

func (mr *MockRepositoryMockRecorder) UpdateChangeComment(arg0, arg1, arg2 any) *MockRepositoryUpdateChangeCommentCall

UpdateChangeComment indicates an expected call of UpdateChangeComment.

type MockRepositoryNewChangeMetadataCall

type MockRepositoryNewChangeMetadataCall struct {
	*gomock.Call
}

MockRepositoryNewChangeMetadataCall wrap *gomock.Call

func (*MockRepositoryNewChangeMetadataCall) Do

Do rewrite *gomock.Call.Do

func (*MockRepositoryNewChangeMetadataCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRepositoryNewChangeMetadataCall) Return

Return rewrite *gomock.Call.Return

type MockRepositoryPostChangeCommentCall

type MockRepositoryPostChangeCommentCall struct {
	*gomock.Call
}

MockRepositoryPostChangeCommentCall wrap *gomock.Call

func (*MockRepositoryPostChangeCommentCall) Do

Do rewrite *gomock.Call.Do

func (*MockRepositoryPostChangeCommentCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRepositoryPostChangeCommentCall) Return

Return rewrite *gomock.Call.Return

type MockRepositorySubmitChangeCall

type MockRepositorySubmitChangeCall struct {
	*gomock.Call
}

MockRepositorySubmitChangeCall wrap *gomock.Call

func (*MockRepositorySubmitChangeCall) Do

Do rewrite *gomock.Call.Do

func (*MockRepositorySubmitChangeCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRepositorySubmitChangeCall) Return

Return rewrite *gomock.Call.Return

type MockRepositoryUpdateChangeCommentCall

type MockRepositoryUpdateChangeCommentCall struct {
	*gomock.Call
}

MockRepositoryUpdateChangeCommentCall wrap *gomock.Call

func (*MockRepositoryUpdateChangeCommentCall) Do

Do rewrite *gomock.Call.Do

func (*MockRepositoryUpdateChangeCommentCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRepositoryUpdateChangeCommentCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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