Documentation ¶
Index ¶
- type BigQueryClient
- type BuildbucketClient
- func (_m *BuildbucketClient) CancelBuild(ctx context.Context, buildID int64, summary string) error
- func (_m *BuildbucketClient) GetBuildFromWaterfall(ctx context.Context, builderName string, commit string) (*buildbucketpb.Build, error)
- func (_m *BuildbucketClient) GetBuildStatus(ctx context.Context, buildID int64) (buildbucketpb.Status, error)
- func (_m *BuildbucketClient) GetBuildWithDeps(ctx context.Context, builderName string, bucket string, commit string, ...) (*buildbucketpb.Build, error)
- func (_m *BuildbucketClient) GetBuildWithPatches(ctx context.Context, builderName string, bucket string, commit string, ...) (*buildbucketpb.Build, error)
- func (_m *BuildbucketClient) GetCASReference(ctx context.Context, buildID int64, target string) (*apipb.CASReference, error)
- func (_m *BuildbucketClient) GetSingleBuild(ctx context.Context, builderName string, bucket string, commit string, ...) (*buildbucketpb.Build, error)
- func (_m *BuildbucketClient) StartBuild(ctx context.Context, req *buildbucketpb.ScheduleBuildRequest) (*buildbucketpb.Build, error)
- func (_m *BuildbucketClient) StartChromeBuild(ctx context.Context, pinpointJobID string, requestID string, ...) (*buildbucketpb.Build, error)
- type CrrevClient
- type IssueTracker
- type SwarmingClient
- func (_m *SwarmingClient) CancelTasks(ctx context.Context, taskIDs []string) error
- func (_m *SwarmingClient) FetchFreeBots(ctx context.Context, builder string) ([]*apipb.BotInfo, error)
- func (_m *SwarmingClient) GetBotTasksBetweenTwoTasks(ctx context.Context, botID string, taskID1 string, taskID2 string) (*apipb.TaskListResponse, error)
- func (_m *SwarmingClient) GetCASOutput(ctx context.Context, taskID string) (*apipb.CASReference, error)
- func (_m *SwarmingClient) GetStartTime(ctx context.Context, taskID string) (*timestamppb.Timestamp, error)
- func (_m *SwarmingClient) GetStatus(ctx context.Context, taskID string) (string, error)
- func (_m *SwarmingClient) TriggerTask(ctx context.Context, req *apipb.NewTaskRequest) (*apipb.TaskRequestMetadataResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BigQueryClient ¶
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
type BuildbucketClient ¶
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 ¶
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 ¶
func (_m *BuildbucketClient) StartBuild(ctx context.Context, req *buildbucketpb.ScheduleBuildRequest) (*buildbucketpb.Build, error)
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 ¶
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 ¶
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 ¶
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 ¶
GetStatus provides a mock function with given fields: ctx, taskID
func (*SwarmingClient) TriggerTask ¶
func (_m *SwarmingClient) TriggerTask(ctx context.Context, req *apipb.NewTaskRequest) (*apipb.TaskRequestMetadataResponse, error)
TriggerTask provides a mock function with given fields: ctx, req