mocks

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: BSD-2-Clause Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT. Copyright (c) 2026 Benjamin Borbe All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Code generated by counterfeiter. DO NOT EDIT. Copyright (c) 2026 Benjamin Borbe All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Code generated by counterfeiter. DO NOT EDIT. Copyright (c) 2026 Benjamin Borbe All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Code generated by counterfeiter. DO NOT EDIT. Copyright (c) 2026 Benjamin Borbe All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Code generated by counterfeiter. DO NOT EDIT. Copyright (c) 2026 Benjamin Borbe All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Code generated by counterfeiter. DO NOT EDIT. Copyright (c) 2026 Benjamin Borbe All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Code generated by counterfeiter. DO NOT EDIT. Copyright (c) 2026 Benjamin Borbe All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Code generated by counterfeiter. DO NOT EDIT. Copyright (c) 2026 Benjamin Borbe All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileContentFetcher

type FileContentFetcher struct {
	GetFileContentStub func(context.Context, string, string, string, string) ([]byte, error)
	// contains filtered or unexported fields
}

func (*FileContentFetcher) GetFileContent

func (fake *FileContentFetcher) GetFileContent(arg1 context.Context, arg2 string, arg3 string, arg4 string, arg5 string) ([]byte, error)

func (*FileContentFetcher) GetFileContentArgsForCall

func (fake *FileContentFetcher) GetFileContentArgsForCall(i int) (context.Context, string, string, string, string)

func (*FileContentFetcher) GetFileContentCallCount

func (fake *FileContentFetcher) GetFileContentCallCount() int

func (*FileContentFetcher) GetFileContentCalls

func (fake *FileContentFetcher) GetFileContentCalls(stub func(context.Context, string, string, string, string) ([]byte, error))

func (*FileContentFetcher) GetFileContentReturns

func (fake *FileContentFetcher) GetFileContentReturns(result1 []byte, result2 error)

func (*FileContentFetcher) GetFileContentReturnsOnCall

func (fake *FileContentFetcher) GetFileContentReturnsOnCall(i int, result1 []byte, result2 error)

func (*FileContentFetcher) Invocations

func (fake *FileContentFetcher) Invocations() map[string][][]interface{}

type GitHubClient

type GitHubClient struct {
	GetDefaultBranchStub func(context.Context, string, string) (string, error)

	GetFileContentStub func(context.Context, string, string, string, string) ([]byte, error)

	GetJobLogStub func(context.Context, string, string, int64) ([]byte, error)

	GetJobsForRunStub func(context.Context, string, string, int64) ([]pkg.WorkflowJobInfo, error)

	GetWorkflowRunsStub func(context.Context, string, string, string) ([]pkg.WorkflowRun, error)

	ListOwnerReposStub func(context.Context, string) ([]string, error)
	// contains filtered or unexported fields
}

func (*GitHubClient) GetDefaultBranch

func (fake *GitHubClient) GetDefaultBranch(arg1 context.Context, arg2 string, arg3 string) (string, error)

func (*GitHubClient) GetDefaultBranchArgsForCall

func (fake *GitHubClient) GetDefaultBranchArgsForCall(i int) (context.Context, string, string)

func (*GitHubClient) GetDefaultBranchCallCount

func (fake *GitHubClient) GetDefaultBranchCallCount() int

func (*GitHubClient) GetDefaultBranchCalls

func (fake *GitHubClient) GetDefaultBranchCalls(stub func(context.Context, string, string) (string, error))

func (*GitHubClient) GetDefaultBranchReturns

func (fake *GitHubClient) GetDefaultBranchReturns(result1 string, result2 error)

func (*GitHubClient) GetDefaultBranchReturnsOnCall

func (fake *GitHubClient) GetDefaultBranchReturnsOnCall(i int, result1 string, result2 error)

func (*GitHubClient) GetFileContent

func (fake *GitHubClient) GetFileContent(arg1 context.Context, arg2 string, arg3 string, arg4 string, arg5 string) ([]byte, error)

func (*GitHubClient) GetFileContentArgsForCall

func (fake *GitHubClient) GetFileContentArgsForCall(i int) (context.Context, string, string, string, string)

func (*GitHubClient) GetFileContentCallCount

func (fake *GitHubClient) GetFileContentCallCount() int

func (*GitHubClient) GetFileContentCalls

func (fake *GitHubClient) GetFileContentCalls(stub func(context.Context, string, string, string, string) ([]byte, error))

func (*GitHubClient) GetFileContentReturns

func (fake *GitHubClient) GetFileContentReturns(result1 []byte, result2 error)

func (*GitHubClient) GetFileContentReturnsOnCall

func (fake *GitHubClient) GetFileContentReturnsOnCall(i int, result1 []byte, result2 error)

func (*GitHubClient) GetJobLog

func (fake *GitHubClient) GetJobLog(arg1 context.Context, arg2 string, arg3 string, arg4 int64) ([]byte, error)

func (*GitHubClient) GetJobLogArgsForCall

func (fake *GitHubClient) GetJobLogArgsForCall(i int) (context.Context, string, string, int64)

func (*GitHubClient) GetJobLogCallCount

func (fake *GitHubClient) GetJobLogCallCount() int

func (*GitHubClient) GetJobLogCalls

func (fake *GitHubClient) GetJobLogCalls(stub func(context.Context, string, string, int64) ([]byte, error))

func (*GitHubClient) GetJobLogReturns

func (fake *GitHubClient) GetJobLogReturns(result1 []byte, result2 error)

func (*GitHubClient) GetJobLogReturnsOnCall

func (fake *GitHubClient) GetJobLogReturnsOnCall(i int, result1 []byte, result2 error)

func (*GitHubClient) GetJobsForRun

func (fake *GitHubClient) GetJobsForRun(arg1 context.Context, arg2 string, arg3 string, arg4 int64) ([]pkg.WorkflowJobInfo, error)

func (*GitHubClient) GetJobsForRunArgsForCall

func (fake *GitHubClient) GetJobsForRunArgsForCall(i int) (context.Context, string, string, int64)

func (*GitHubClient) GetJobsForRunCallCount

func (fake *GitHubClient) GetJobsForRunCallCount() int

func (*GitHubClient) GetJobsForRunCalls

func (fake *GitHubClient) GetJobsForRunCalls(stub func(context.Context, string, string, int64) ([]pkg.WorkflowJobInfo, error))

func (*GitHubClient) GetJobsForRunReturns

func (fake *GitHubClient) GetJobsForRunReturns(result1 []pkg.WorkflowJobInfo, result2 error)

func (*GitHubClient) GetJobsForRunReturnsOnCall

func (fake *GitHubClient) GetJobsForRunReturnsOnCall(i int, result1 []pkg.WorkflowJobInfo, result2 error)

func (*GitHubClient) GetWorkflowRuns

func (fake *GitHubClient) GetWorkflowRuns(arg1 context.Context, arg2 string, arg3 string, arg4 string) ([]pkg.WorkflowRun, error)

func (*GitHubClient) GetWorkflowRunsArgsForCall

func (fake *GitHubClient) GetWorkflowRunsArgsForCall(i int) (context.Context, string, string, string)

func (*GitHubClient) GetWorkflowRunsCallCount

func (fake *GitHubClient) GetWorkflowRunsCallCount() int

func (*GitHubClient) GetWorkflowRunsCalls

func (fake *GitHubClient) GetWorkflowRunsCalls(stub func(context.Context, string, string, string) ([]pkg.WorkflowRun, error))

func (*GitHubClient) GetWorkflowRunsReturns

func (fake *GitHubClient) GetWorkflowRunsReturns(result1 []pkg.WorkflowRun, result2 error)

func (*GitHubClient) GetWorkflowRunsReturnsOnCall

func (fake *GitHubClient) GetWorkflowRunsReturnsOnCall(i int, result1 []pkg.WorkflowRun, result2 error)

func (*GitHubClient) Invocations

func (fake *GitHubClient) Invocations() map[string][][]interface{}

func (*GitHubClient) ListOwnerRepos

func (fake *GitHubClient) ListOwnerRepos(arg1 context.Context, arg2 string) ([]string, error)

func (*GitHubClient) ListOwnerReposArgsForCall

func (fake *GitHubClient) ListOwnerReposArgsForCall(i int) (context.Context, string)

func (*GitHubClient) ListOwnerReposCallCount

func (fake *GitHubClient) ListOwnerReposCallCount() int

func (*GitHubClient) ListOwnerReposCalls

func (fake *GitHubClient) ListOwnerReposCalls(stub func(context.Context, string) ([]string, error))

func (*GitHubClient) ListOwnerReposReturns

func (fake *GitHubClient) ListOwnerReposReturns(result1 []string, result2 error)

func (*GitHubClient) ListOwnerReposReturnsOnCall

func (fake *GitHubClient) ListOwnerReposReturnsOnCall(i int, result1 []string, result2 error)

type MaintenanceLoader

type MaintenanceLoader struct {
	LoadOverridesStub func(context.Context, string, string, string) maintenance.GithubBuildConfig
	// contains filtered or unexported fields
}

func (*MaintenanceLoader) Invocations

func (fake *MaintenanceLoader) Invocations() map[string][][]interface{}

func (*MaintenanceLoader) LoadOverrides

func (fake *MaintenanceLoader) LoadOverrides(arg1 context.Context, arg2 string, arg3 string, arg4 string) maintenance.GithubBuildConfig

func (*MaintenanceLoader) LoadOverridesArgsForCall

func (fake *MaintenanceLoader) LoadOverridesArgsForCall(i int) (context.Context, string, string, string)

func (*MaintenanceLoader) LoadOverridesCallCount

func (fake *MaintenanceLoader) LoadOverridesCallCount() int

func (*MaintenanceLoader) LoadOverridesCalls

func (fake *MaintenanceLoader) LoadOverridesCalls(stub func(context.Context, string, string, string) maintenance.GithubBuildConfig)

func (*MaintenanceLoader) LoadOverridesReturns

func (fake *MaintenanceLoader) LoadOverridesReturns(result1 maintenance.GithubBuildConfig)

func (*MaintenanceLoader) LoadOverridesReturnsOnCall

func (fake *MaintenanceLoader) LoadOverridesReturnsOnCall(i int, result1 maintenance.GithubBuildConfig)

type Metrics

type Metrics struct {
	IncPollCycleStub func(string)

	IncPollErrorStub func(string)

	IncReposCheckedStub func()

	IncStateTransitionStub func(string)

	IncTaskPublishedStub func()

	SetCurrentRedReposStub func(float64)
	// contains filtered or unexported fields
}

func (*Metrics) IncPollCycle

func (fake *Metrics) IncPollCycle(arg1 string)

func (*Metrics) IncPollCycleArgsForCall

func (fake *Metrics) IncPollCycleArgsForCall(i int) string

func (*Metrics) IncPollCycleCallCount

func (fake *Metrics) IncPollCycleCallCount() int

func (*Metrics) IncPollCycleCalls

func (fake *Metrics) IncPollCycleCalls(stub func(string))

func (*Metrics) IncPollError

func (fake *Metrics) IncPollError(arg1 string)

func (*Metrics) IncPollErrorArgsForCall

func (fake *Metrics) IncPollErrorArgsForCall(i int) string

func (*Metrics) IncPollErrorCallCount

func (fake *Metrics) IncPollErrorCallCount() int

func (*Metrics) IncPollErrorCalls

func (fake *Metrics) IncPollErrorCalls(stub func(string))

func (*Metrics) IncReposChecked

func (fake *Metrics) IncReposChecked()

func (*Metrics) IncReposCheckedCallCount

func (fake *Metrics) IncReposCheckedCallCount() int

func (*Metrics) IncReposCheckedCalls

func (fake *Metrics) IncReposCheckedCalls(stub func())

func (*Metrics) IncStateTransition

func (fake *Metrics) IncStateTransition(arg1 string)

func (*Metrics) IncStateTransitionArgsForCall

func (fake *Metrics) IncStateTransitionArgsForCall(i int) string

func (*Metrics) IncStateTransitionCallCount

func (fake *Metrics) IncStateTransitionCallCount() int

func (*Metrics) IncStateTransitionCalls

func (fake *Metrics) IncStateTransitionCalls(stub func(string))

func (*Metrics) IncTaskPublished

func (fake *Metrics) IncTaskPublished()

func (*Metrics) IncTaskPublishedCallCount

func (fake *Metrics) IncTaskPublishedCallCount() int

func (*Metrics) IncTaskPublishedCalls

func (fake *Metrics) IncTaskPublishedCalls(stub func())

func (*Metrics) Invocations

func (fake *Metrics) Invocations() map[string][][]interface{}

func (*Metrics) SetCurrentRedRepos

func (fake *Metrics) SetCurrentRedRepos(arg1 float64)

func (*Metrics) SetCurrentRedReposArgsForCall

func (fake *Metrics) SetCurrentRedReposArgsForCall(i int) float64

func (*Metrics) SetCurrentRedReposCallCount

func (fake *Metrics) SetCurrentRedReposCallCount() int

func (*Metrics) SetCurrentRedReposCalls

func (fake *Metrics) SetCurrentRedReposCalls(stub func(float64))

type RepoFilter

type RepoFilter struct {
	SkipStub func(string) bool
	// contains filtered or unexported fields
}

func (*RepoFilter) Invocations

func (fake *RepoFilter) Invocations() map[string][][]interface{}

func (*RepoFilter) Skip

func (fake *RepoFilter) Skip(arg1 string) bool

func (*RepoFilter) SkipArgsForCall

func (fake *RepoFilter) SkipArgsForCall(i int) string

func (*RepoFilter) SkipCallCount

func (fake *RepoFilter) SkipCallCount() int

func (*RepoFilter) SkipCalls

func (fake *RepoFilter) SkipCalls(stub func(string) bool)

func (*RepoFilter) SkipReturns

func (fake *RepoFilter) SkipReturns(result1 bool)

func (*RepoFilter) SkipReturnsOnCall

func (fake *RepoFilter) SkipReturnsOnCall(i int, result1 bool)

type TriggerBuildCheckCommandSender

type TriggerBuildCheckCommandSender struct {
	SendCommandStub func(context.Context, command.TriggerBuildCheckCommand) error
	// contains filtered or unexported fields
}

func (*TriggerBuildCheckCommandSender) Invocations

func (fake *TriggerBuildCheckCommandSender) Invocations() map[string][][]interface{}

func (*TriggerBuildCheckCommandSender) SendCommand

func (*TriggerBuildCheckCommandSender) SendCommandArgsForCall

func (*TriggerBuildCheckCommandSender) SendCommandCallCount

func (fake *TriggerBuildCheckCommandSender) SendCommandCallCount() int

func (*TriggerBuildCheckCommandSender) SendCommandCalls

func (*TriggerBuildCheckCommandSender) SendCommandReturns

func (fake *TriggerBuildCheckCommandSender) SendCommandReturns(result1 error)

func (*TriggerBuildCheckCommandSender) SendCommandReturnsOnCall

func (fake *TriggerBuildCheckCommandSender) SendCommandReturnsOnCall(i int, result1 error)

type TriggerBuildCheckHandler

type TriggerBuildCheckHandler struct {
	ServeHTTPStub func(context.Context, http.ResponseWriter, *http.Request) error
	// contains filtered or unexported fields
}

func (*TriggerBuildCheckHandler) Invocations

func (fake *TriggerBuildCheckHandler) Invocations() map[string][][]interface{}

func (*TriggerBuildCheckHandler) ServeHTTP

func (fake *TriggerBuildCheckHandler) ServeHTTP(arg1 context.Context, arg2 http.ResponseWriter, arg3 *http.Request) error

func (*TriggerBuildCheckHandler) ServeHTTPArgsForCall

func (fake *TriggerBuildCheckHandler) ServeHTTPArgsForCall(i int) (context.Context, http.ResponseWriter, *http.Request)

func (*TriggerBuildCheckHandler) ServeHTTPCallCount

func (fake *TriggerBuildCheckHandler) ServeHTTPCallCount() int

func (*TriggerBuildCheckHandler) ServeHTTPCalls

func (fake *TriggerBuildCheckHandler) ServeHTTPCalls(stub func(context.Context, http.ResponseWriter, *http.Request) error)

func (*TriggerBuildCheckHandler) ServeHTTPReturns

func (fake *TriggerBuildCheckHandler) ServeHTTPReturns(result1 error)

func (*TriggerBuildCheckHandler) ServeHTTPReturnsOnCall

func (fake *TriggerBuildCheckHandler) ServeHTTPReturnsOnCall(i int, result1 error)

type Watcher

type Watcher struct {
	PollStub func(context.Context, bool) error
	// contains filtered or unexported fields
}

func (*Watcher) Invocations

func (fake *Watcher) Invocations() map[string][][]interface{}

func (*Watcher) Poll

func (fake *Watcher) Poll(arg1 context.Context, arg2 bool) error

func (*Watcher) PollArgsForCall

func (fake *Watcher) PollArgsForCall(i int) (context.Context, bool)

func (*Watcher) PollCallCount

func (fake *Watcher) PollCallCount() int

func (*Watcher) PollCalls

func (fake *Watcher) PollCalls(stub func(context.Context, bool) error)

func (*Watcher) PollReturns

func (fake *Watcher) PollReturns(result1 error)

func (*Watcher) PollReturnsOnCall

func (fake *Watcher) PollReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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