mocks

package
v0.0.0-...-1b86ce5 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GerritInterface

type GerritInterface struct {
	mock.Mock
}

GerritInterface is an autogenerated mock type for the GerritInterface type

func NewGerritInterface

func NewGerritInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *GerritInterface

NewGerritInterface creates a new instance of GerritInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*GerritInterface) Abandon

func (_m *GerritInterface) Abandon(_a0 context.Context, _a1 *gerrit.ChangeInfo, _a2 string) error

Abandon provides a mock function with given fields: _a0, _a1, _a2

func (*GerritInterface) AddCC

func (_m *GerritInterface) AddCC(_a0 context.Context, _a1 *gerrit.ChangeInfo, _a2 []string) error

AddCC provides a mock function with given fields: _a0, _a1, _a2

func (*GerritInterface) AddComment

func (_m *GerritInterface) AddComment(_a0 context.Context, _a1 *gerrit.ChangeInfo, _a2 string) error

AddComment provides a mock function with given fields: _a0, _a1, _a2

func (*GerritInterface) Approve

func (_m *GerritInterface) Approve(_a0 context.Context, _a1 *gerrit.ChangeInfo, _a2 string) error

Approve provides a mock function with given fields: _a0, _a1, _a2

func (*GerritInterface) Config

func (_m *GerritInterface) Config() *gerrit.Config

Config provides a mock function with given fields:

func (*GerritInterface) CreateChange

func (_m *GerritInterface) CreateChange(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 string, _a5 string) (*gerrit.ChangeInfo, error)

CreateChange provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5

func (*GerritInterface) CreateCherryPickChange

func (_m *GerritInterface) CreateCherryPickChange(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 string) (*gerrit.ChangeInfo, error)

CreateCherryPickChange provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4

func (*GerritInterface) DeleteChangeEdit

func (_m *GerritInterface) DeleteChangeEdit(_a0 context.Context, _a1 *gerrit.ChangeInfo) error

DeleteChangeEdit provides a mock function with given fields: _a0, _a1

func (*GerritInterface) DeleteFile

func (_m *GerritInterface) DeleteFile(_a0 context.Context, _a1 *gerrit.ChangeInfo, _a2 string) error

DeleteFile provides a mock function with given fields: _a0, _a1, _a2

func (*GerritInterface) DeleteVote

func (_m *GerritInterface) DeleteVote(_a0 context.Context, _a1 int64, _a2 string, _a3 int, _a4 gerrit.NotifyOption, _a5 bool) error

DeleteVote provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5

func (*GerritInterface) Disapprove

func (_m *GerritInterface) Disapprove(_a0 context.Context, _a1 *gerrit.ChangeInfo, _a2 string) error

Disapprove provides a mock function with given fields: _a0, _a1, _a2

func (*GerritInterface) DownloadCommitMsgHook

func (_m *GerritInterface) DownloadCommitMsgHook(ctx context.Context, dest string) error

DownloadCommitMsgHook provides a mock function with given fields: ctx, dest

func (*GerritInterface) EditFile

func (_m *GerritInterface) EditFile(_a0 context.Context, _a1 *gerrit.ChangeInfo, _a2 string, _a3 string) error

EditFile provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*GerritInterface) ExtractIssueFromCommit

func (_m *GerritInterface) ExtractIssueFromCommit(_a0 string) (int64, error)

ExtractIssueFromCommit provides a mock function with given fields: _a0

func (*GerritInterface) Files

func (_m *GerritInterface) Files(ctx context.Context, issue int64, patch string) (map[string]*gerrit.FileInfo, error)

Files provides a mock function with given fields: ctx, issue, patch

func (*GerritInterface) GetChange

func (_m *GerritInterface) GetChange(ctx context.Context, id string) (*gerrit.ChangeInfo, error)

GetChange provides a mock function with given fields: ctx, id

func (*GerritInterface) GetCommit

func (_m *GerritInterface) GetCommit(ctx context.Context, issue int64, revision string) (*gerrit.CommitInfo, error)

GetCommit provides a mock function with given fields: ctx, issue, revision

func (*GerritInterface) GetContent

func (_m *GerritInterface) GetContent(_a0 context.Context, _a1 int64, _a2 string, _a3 string) (string, error)

GetContent provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*GerritInterface) GetFileNames

func (_m *GerritInterface) GetFileNames(ctx context.Context, issue int64, patch string) ([]string, error)

GetFileNames provides a mock function with given fields: ctx, issue, patch

func (*GerritInterface) GetFilesToContent

func (_m *GerritInterface) GetFilesToContent(ctx context.Context, issue int64, revision string) (map[string]string, error)

GetFilesToContent provides a mock function with given fields: ctx, issue, revision

func (*GerritInterface) GetIssueProperties

func (_m *GerritInterface) GetIssueProperties(_a0 context.Context, _a1 int64) (*gerrit.ChangeInfo, error)

GetIssueProperties provides a mock function with given fields: _a0, _a1

func (*GerritInterface) GetPatch

func (_m *GerritInterface) GetPatch(_a0 context.Context, _a1 int64, _a2 string) (string, error)

GetPatch provides a mock function with given fields: _a0, _a1, _a2

func (*GerritInterface) GetRepoUrl

func (_m *GerritInterface) GetRepoUrl() string

GetRepoUrl provides a mock function with given fields:

func (*GerritInterface) GetTrybotResults

func (_m *GerritInterface) GetTrybotResults(_a0 context.Context, _a1 int64, _a2 int64) ([]*buildbucketpb.Build, error)

GetTrybotResults provides a mock function with given fields: _a0, _a1, _a2

func (*GerritInterface) GetUserEmail

func (_m *GerritInterface) GetUserEmail(_a0 context.Context) (string, error)

GetUserEmail provides a mock function with given fields: _a0

func (*GerritInterface) Initialized

func (_m *GerritInterface) Initialized() bool

Initialized provides a mock function with given fields:

func (*GerritInterface) IsBinaryPatch

func (_m *GerritInterface) IsBinaryPatch(ctx context.Context, issue int64, patch string) (bool, error)

IsBinaryPatch provides a mock function with given fields: ctx, issue, patch

func (*GerritInterface) MoveFile

func (_m *GerritInterface) MoveFile(_a0 context.Context, _a1 *gerrit.ChangeInfo, _a2 string, _a3 string) error

MoveFile provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*GerritInterface) NoScore

func (_m *GerritInterface) NoScore(_a0 context.Context, _a1 *gerrit.ChangeInfo, _a2 string) error

NoScore provides a mock function with given fields: _a0, _a1, _a2

func (*GerritInterface) PublishChangeEdit

func (_m *GerritInterface) PublishChangeEdit(_a0 context.Context, _a1 *gerrit.ChangeInfo) error

PublishChangeEdit provides a mock function with given fields: _a0, _a1

func (*GerritInterface) Rebase

func (_m *GerritInterface) Rebase(_a0 context.Context, _a1 *gerrit.ChangeInfo, _a2 string, _a3 bool) error

Rebase provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*GerritInterface) RemoveFromCQ

func (_m *GerritInterface) RemoveFromCQ(_a0 context.Context, _a1 *gerrit.ChangeInfo, _a2 string) error

RemoveFromCQ provides a mock function with given fields: _a0, _a1, _a2

func (*GerritInterface) Search

func (_m *GerritInterface) Search(_a0 context.Context, _a1 int, _a2 bool, _a3 ...*gerrit.SearchTerm) ([]*gerrit.ChangeInfo, error)

Search provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*GerritInterface) SelfApprove

func (_m *GerritInterface) SelfApprove(_a0 context.Context, _a1 *gerrit.ChangeInfo, _a2 string) error

SelfApprove provides a mock function with given fields: _a0, _a1, _a2

func (*GerritInterface) SendToCQ

func (_m *GerritInterface) SendToCQ(_a0 context.Context, _a1 *gerrit.ChangeInfo, _a2 string) error

SendToCQ provides a mock function with given fields: _a0, _a1, _a2

func (*GerritInterface) SendToDryRun

func (_m *GerritInterface) SendToDryRun(_a0 context.Context, _a1 *gerrit.ChangeInfo, _a2 string) error

SendToDryRun provides a mock function with given fields: _a0, _a1, _a2

func (*GerritInterface) SetCommitMessage

func (_m *GerritInterface) SetCommitMessage(_a0 context.Context, _a1 *gerrit.ChangeInfo, _a2 string) error

SetCommitMessage provides a mock function with given fields: _a0, _a1, _a2

func (*GerritInterface) SetReadyForReview

func (_m *GerritInterface) SetReadyForReview(_a0 context.Context, _a1 *gerrit.ChangeInfo) error

SetReadyForReview provides a mock function with given fields: _a0, _a1

func (*GerritInterface) SetReview

func (_m *GerritInterface) SetReview(_a0 context.Context, _a1 *gerrit.ChangeInfo, _a2 string, _a3 map[string]int, _a4 []string, _a5 gerrit.NotifyOption, _a6 gerrit.NotifyDetails, _a7 string, _a8 int, _a9 []*gerrit.AttentionSetInput) error

SetReview provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5, _a6, _a7, _a8, _a9

func (*GerritInterface) SetTopic

func (_m *GerritInterface) SetTopic(_a0 context.Context, _a1 string, _a2 int64) error

SetTopic provides a mock function with given fields: _a0, _a1, _a2

func (*GerritInterface) SetTraceIDPrefix

func (_m *GerritInterface) SetTraceIDPrefix(traceIdPrefix string)

SetTraceIDPrefix provides a mock function with given fields: traceIdPrefix

func (*GerritInterface) Submit

func (_m *GerritInterface) Submit(_a0 context.Context, _a1 *gerrit.ChangeInfo) error

Submit provides a mock function with given fields: _a0, _a1

func (*GerritInterface) SubmittedTogether

func (_m *GerritInterface) SubmittedTogether(_a0 context.Context, _a1 *gerrit.ChangeInfo) ([]*gerrit.ChangeInfo, int, error)

SubmittedTogether provides a mock function with given fields: _a0, _a1

func (*GerritInterface) Url

func (_m *GerritInterface) Url(_a0 int64) string

Url provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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