mocks

package
v0.0.0-...-a89155a Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BigQueryClient

type BigQueryClient struct {
	mock.Mock
}

BigQueryClient is an autogenerated mock type for the BigQueryClient type

func NewBigQueryClient

func NewBigQueryClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *BigQueryClient

NewBigQueryClient creates a new instance of BigQueryClient. 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 (*BigQueryClient) CreateTable

func (_m *BigQueryClient) CreateTable(ctx context.Context, datasetID string, tableName string, schema interface{}) error

CreateTable provides a mock function with given fields: ctx, datasetID, tableName, schema

func (*BigQueryClient) Insert

func (_m *BigQueryClient) Insert(ctx context.Context, datasetID string, tableName string, rows interface{}) error

Insert provides a mock function with given fields: ctx, datasetID, tableName, rows

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) (*apipb.CASReference, 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) StartBuild

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

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 CrrevClient

type CrrevClient struct {
	mock.Mock
}

CrrevClient is an autogenerated mock type for the CrrevClient type

func NewCrrevClient

func NewCrrevClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *CrrevClient

NewCrrevClient creates a new instance of CrrevClient. 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 (*CrrevClient) GetCommitInfo

func (_m *CrrevClient) GetCommitInfo(ctx context.Context, commit string) (*backends.CrrevResponse, error)

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

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) ([]*apipb.BotInfo, error)

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

func (*SwarmingClient) GetBotTasksBetweenTwoTasks

func (_m *SwarmingClient) GetBotTasksBetweenTwoTasks(ctx context.Context, botID string, taskID1 string, taskID2 string) (*apipb.TaskListResponse, error)

GetBotTasksBetweenTwoTasks provides a mock function with given fields: ctx, botID, taskID1, taskID2

func (*SwarmingClient) GetCASOutput

func (_m *SwarmingClient) GetCASOutput(ctx context.Context, taskID string) (*apipb.CASReference, error)

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

func (*SwarmingClient) GetStartTime

func (_m *SwarmingClient) GetStartTime(ctx context.Context, taskID string) (*timestamppb.Timestamp, error)

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

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) 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