mocks

package
v0.0.0-...-f6b5871 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 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 CodeReview

type CodeReview struct {
	mock.Mock
}

CodeReview is an autogenerated mock type for the CodeReview type

func NewCodeReview

func NewCodeReview(t interface {
	mock.TestingT
	Cleanup(func())
}) *CodeReview

NewCodeReview creates a new instance of CodeReview. 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 (*CodeReview) AddComment

func (_m *CodeReview) AddComment(ctx context.Context, ci *gerrit.ChangeInfo, comment string, notify codereview.NotifyOption, notifyReason string) error

AddComment provides a mock function with given fields: ctx, ci, comment, notify, notifyReason

func (*CodeReview) GetCQVoters

func (_m *CodeReview) GetCQVoters(ctx context.Context, ci *gerrit.ChangeInfo) []string

GetCQVoters provides a mock function with given fields: ctx, ci

func (*CodeReview) GetChangeRef

func (_m *CodeReview) GetChangeRef(ci *gerrit.ChangeInfo) string

GetChangeRef provides a mock function with given fields: ci

func (*CodeReview) GetCommitAuthor

func (_m *CodeReview) GetCommitAuthor(ctx context.Context, issue int64, revision string) (string, error)

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

func (*CodeReview) GetCommitMessage

func (_m *CodeReview) GetCommitMessage(ctx context.Context, issue int64) (string, error)

GetCommitMessage provides a mock function with given fields: ctx, issue

func (*CodeReview) GetEarliestEquivalentPatchSetID

func (_m *CodeReview) GetEarliestEquivalentPatchSetID(ci *gerrit.ChangeInfo) int64

GetEarliestEquivalentPatchSetID provides a mock function with given fields: ci

func (*CodeReview) GetEquivalentPatchSetIDs

func (_m *CodeReview) GetEquivalentPatchSetIDs(ci *gerrit.ChangeInfo, patchsetID int64) []int64

GetEquivalentPatchSetIDs provides a mock function with given fields: ci, patchsetID

func (*CodeReview) GetFileNames

func (_m *CodeReview) GetFileNames(ctx context.Context, ci *gerrit.ChangeInfo) ([]string, error)

GetFileNames provides a mock function with given fields: ctx, ci

func (*CodeReview) GetIssueProperties

func (_m *CodeReview) GetIssueProperties(ctx context.Context, issue int64) (*gerrit.ChangeInfo, error)

GetIssueProperties provides a mock function with given fields: ctx, issue

func (*CodeReview) GetLatestPatchSetID

func (_m *CodeReview) GetLatestPatchSetID(ci *gerrit.ChangeInfo) int64

GetLatestPatchSetID provides a mock function with given fields: ci

func (*CodeReview) GetRepoUrl

func (_m *CodeReview) GetRepoUrl(ci *gerrit.ChangeInfo) string

GetRepoUrl provides a mock function with given fields: ci

func (*CodeReview) GetSubmittedTogether

func (_m *CodeReview) GetSubmittedTogether(ctx context.Context, ci *gerrit.ChangeInfo) ([]*gerrit.ChangeInfo, error)

GetSubmittedTogether provides a mock function with given fields: ctx, ci

func (*CodeReview) IsCQ

func (_m *CodeReview) IsCQ(ctx context.Context, ci *gerrit.ChangeInfo) bool

IsCQ provides a mock function with given fields: ctx, ci

func (*CodeReview) IsDryRun

func (_m *CodeReview) IsDryRun(ctx context.Context, ci *gerrit.ChangeInfo) bool

IsDryRun provides a mock function with given fields: ctx, ci

func (*CodeReview) RemoveFromCQ

func (_m *CodeReview) RemoveFromCQ(ctx context.Context, ci *gerrit.ChangeInfo, comment string, notifyReason string)

RemoveFromCQ provides a mock function with given fields: ctx, ci, comment, notifyReason

func (*CodeReview) Search

func (_m *CodeReview) Search(ctx context.Context) ([]*gerrit.ChangeInfo, error)

Search provides a mock function with given fields: ctx

func (*CodeReview) SetReadyForReview

func (_m *CodeReview) SetReadyForReview(ctx context.Context, ci *gerrit.ChangeInfo) error

SetReadyForReview provides a mock function with given fields: ctx, ci

func (*CodeReview) Submit

func (_m *CodeReview) Submit(ctx context.Context, ci *gerrit.ChangeInfo) error

Submit provides a mock function with given fields: ctx, ci

func (*CodeReview) Url

func (_m *CodeReview) Url(issueID int64) string

Url provides a mock function with given fields: issueID

Jump to

Keyboard shortcuts

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