mocks

package
v0.0.0-...-4fe5f23 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: BSD-3-Clause Imports: 3 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) GetFile

func (_m *CodeReview) GetFile(ctx context.Context, filename string, ref string) ([]byte, error)

GetFile provides a mock function with given fields: ctx, filename, ref

func (*CodeReview) GetPatchsetInfo

func (_m *CodeReview) GetPatchsetInfo(ctx context.Context, issue codereview.Issue) (string, bool, error)

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

func (*CodeReview) ListModifiedFiles

func (_m *CodeReview) ListModifiedFiles(ctx context.Context, issue codereview.Issue, ref string) ([]codereview.ListModifiedFilesResult, error)

ListModifiedFiles provides a mock function with given fields: ctx, issue, ref

Jump to

Keyboard shortcuts

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