mocks

package
v0.0.0-...-b6f29ee Latest Latest
Warning

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

Go to latest
Published: Sep 24, 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 ChangelistLandedUpdater

type ChangelistLandedUpdater struct {
	mock.Mock
}

ChangelistLandedUpdater is an autogenerated mock type for the ChangelistLandedUpdater type

func NewChangelistLandedUpdater

func NewChangelistLandedUpdater(t interface {
	mock.TestingT
	Cleanup(func())
}) *ChangelistLandedUpdater

NewChangelistLandedUpdater creates a new instance of ChangelistLandedUpdater. 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 (*ChangelistLandedUpdater) UpdateChangelistsAsLanded

func (_m *ChangelistLandedUpdater) UpdateChangelistsAsLanded(ctx context.Context, commits []*vcsinfo.LongCommit) error

UpdateChangelistsAsLanded provides a mock function with given fields: ctx, commits

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

NewClient creates a new instance of Client. 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 (*Client) CommentOn

func (_m *Client) CommentOn(ctx context.Context, clID string, message string) error

CommentOn provides a mock function with given fields: ctx, clID, message

func (*Client) GetChangelist

func (_m *Client) GetChangelist(ctx context.Context, id string) (code_review.Changelist, error)

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

func (*Client) GetChangelistIDForCommit

func (_m *Client) GetChangelistIDForCommit(ctx context.Context, commit *vcsinfo.LongCommit) (string, error)

GetChangelistIDForCommit provides a mock function with given fields: ctx, commit

func (*Client) GetPatchset

func (_m *Client) GetPatchset(ctx context.Context, clID string, psID string, psOrder int) (code_review.Patchset, error)

GetPatchset provides a mock function with given fields: ctx, clID, psID, psOrder

Jump to

Keyboard shortcuts

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