mocks

package
v0.0.0-...-0ada750 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 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 BuildBucketInterface

type BuildBucketInterface struct {
	mock.Mock
}

BuildBucketInterface is an autogenerated mock type for the BuildBucketInterface type

func NewBuildBucketInterface

func NewBuildBucketInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *BuildBucketInterface

NewBuildBucketInterface creates a new instance of BuildBucketInterface. 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 (*BuildBucketInterface) CancelBuild

func (_m *BuildBucketInterface) CancelBuild(ctx context.Context, buildID int64, summaryMarkdown string) (*buildbucketpb.Build, error)

CancelBuild provides a mock function with given fields: ctx, buildID, summaryMarkdown

func (*BuildBucketInterface) CancelBuilds

func (_m *BuildBucketInterface) CancelBuilds(ctx context.Context, buildIDs []int64, summaryMarkdown string) ([]*buildbucketpb.Build, error)

CancelBuilds provides a mock function with given fields: ctx, buildIDs, summaryMarkdown

func (*BuildBucketInterface) GetBuild

func (_m *BuildBucketInterface) GetBuild(ctx context.Context, buildId int64) (*buildbucketpb.Build, error)

GetBuild provides a mock function with given fields: ctx, buildId

func (*BuildBucketInterface) GetTrybotsForCL

func (_m *BuildBucketInterface) GetTrybotsForCL(ctx context.Context, issue int64, patchset int64, gerritUrl string, tags map[string]string) ([]*buildbucketpb.Build, error)

GetTrybotsForCL provides a mock function with given fields: ctx, issue, patchset, gerritUrl, tags

func (*BuildBucketInterface) ScheduleBuilds

func (_m *BuildBucketInterface) ScheduleBuilds(ctx context.Context, builds []string, buildsToTags map[string]map[string]string, issue int64, patchset int64, gerritUrl string, repo string, bbProject string, bbBucket string) ([]*buildbucketpb.Build, error)

ScheduleBuilds provides a mock function with given fields: ctx, builds, buildsToTags, issue, patchset, gerritUrl, repo, bbProject, bbBucket

func (*BuildBucketInterface) Search

Search provides a mock function with given fields: ctx, pred

func (*BuildBucketInterface) StartBuild

func (_m *BuildBucketInterface) StartBuild(ctx context.Context, buildId int64, taskId string, token string) (string, error)

StartBuild provides a mock function with given fields: ctx, buildId, taskId, token

func (*BuildBucketInterface) UpdateBuild

func (_m *BuildBucketInterface) UpdateBuild(ctx context.Context, build *buildbucketpb.Build, token string) error

UpdateBuild provides a mock function with given fields: ctx, build, token

Jump to

Keyboard shortcuts

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