mocks

package
v0.0.0-...-9eacc55 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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildbucketClient

type BuildbucketClient struct {
	mock.Mock
}

BuildbucketClient is an autogenerated mock type for the BuildbucketClient type

func NewBuildbucketClient

func NewBuildbucketClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *BuildbucketClient

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

func (_m *BuildbucketClient) CancelBuild(ctx context.Context, buildID int64, summary string) error

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

func (*BuildbucketClient) GetBuildFromWaterfall

func (_m *BuildbucketClient) GetBuildFromWaterfall(ctx context.Context, builderName string, commit string) (*buildbucketpb.Build, error)

GetBuildFromWaterfall provides a mock function with given fields: ctx, builderName, commit

func (*BuildbucketClient) GetBuildStatus

func (_m *BuildbucketClient) GetBuildStatus(ctx context.Context, buildID int64) (buildbucketpb.Status, error)

GetBuildStatus provides a mock function with given fields: ctx, buildID

func (*BuildbucketClient) GetBuildWithDeps

func (_m *BuildbucketClient) GetBuildWithDeps(ctx context.Context, builderName string, bucket string, commit string, deps map[string]string) (*buildbucketpb.Build, error)

GetBuildWithDeps provides a mock function with given fields: ctx, builderName, bucket, commit, deps

func (*BuildbucketClient) GetBuildWithPatches

func (_m *BuildbucketClient) GetBuildWithPatches(ctx context.Context, builderName string, bucket string, commit string, patches []*buildbucketpb.GerritChange) (*buildbucketpb.Build, error)

GetBuildWithPatches provides a mock function with given fields: ctx, builderName, bucket, commit, patches

func (*BuildbucketClient) GetCASReference

func (_m *BuildbucketClient) GetCASReference(ctx context.Context, buildID int64, target string) (*swarming.SwarmingRpcsCASReference, error)

GetCASReference provides a mock function with given fields: ctx, buildID, target

func (*BuildbucketClient) GetSingleBuild

func (_m *BuildbucketClient) GetSingleBuild(ctx context.Context, builderName string, bucket string, commit string, deps map[string]string, patches []*buildbucketpb.GerritChange) (*buildbucketpb.Build, error)

GetSingleBuild provides a mock function with given fields: ctx, builderName, bucket, commit, deps, patches

func (*BuildbucketClient) StartChromeBuild

func (_m *BuildbucketClient) StartChromeBuild(ctx context.Context, pinpointJobID string, requestID string, builderName string, commitHash string, deps map[string]string, patches []*buildbucketpb.GerritChange) (*buildbucketpb.Build, error)

StartChromeBuild provides a mock function with given fields: ctx, pinpointJobID, requestID, builderName, commitHash, deps, patches

type IssueTracker

type IssueTracker struct {
	mock.Mock
}

IssueTracker is an autogenerated mock type for the IssueTracker type

func NewIssueTracker

func NewIssueTracker(t interface {
	mock.TestingT
	Cleanup(func())
}) *IssueTracker

NewIssueTracker creates a new instance of IssueTracker. 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 (*IssueTracker) ReportCulprit

func (_m *IssueTracker) ReportCulprit(issueID int64, culprits []*pinpointpb.CombinedCommit) error

ReportCulprit provides a mock function with given fields: issueID, culprits

type SwarmingClient

type SwarmingClient struct {
	mock.Mock
}

SwarmingClient is an autogenerated mock type for the SwarmingClient type

func NewSwarmingClient

func NewSwarmingClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *SwarmingClient

NewSwarmingClient creates a new instance of SwarmingClient. 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 (*SwarmingClient) CancelTasks

func (_m *SwarmingClient) CancelTasks(ctx context.Context, taskIDs []string) error

CancelTasks provides a mock function with given fields: ctx, taskIDs

func (*SwarmingClient) FetchFreeBots

func (_m *SwarmingClient) FetchFreeBots(ctx context.Context, builder string) ([]*swarming.SwarmingRpcsBotInfo, error)

FetchFreeBots provides a mock function with given fields: ctx, builder

func (*SwarmingClient) GetCASOutput

func (_m *SwarmingClient) GetCASOutput(ctx context.Context, taskID string) (*swarming.SwarmingRpcsCASReference, error)

GetCASOutput provides a mock function with given fields: ctx, taskID

func (*SwarmingClient) GetStates

func (_m *SwarmingClient) GetStates(ctx context.Context, taskIDs []string) ([]string, error)

GetStates provides a mock function with given fields: ctx, taskIDs

func (*SwarmingClient) GetStatus

func (_m *SwarmingClient) GetStatus(ctx context.Context, taskID string) (string, error)

GetStatus provides a mock function with given fields: ctx, taskID

func (*SwarmingClient) ListPinpointTasks

func (_m *SwarmingClient) ListPinpointTasks(ctx context.Context, jobID string, buildArtifact *swarming.SwarmingRpcsCASReference) ([]string, error)

ListPinpointTasks provides a mock function with given fields: ctx, jobID, buildArtifact

func (*SwarmingClient) TriggerTask

TriggerTask provides a mock function with given fields: ctx, req

Jump to

Keyboard shortcuts

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