Documentation ¶
Index ¶
- type MockPreWorkflowHookRunner
- func (mock *MockPreWorkflowHookRunner) FailHandler() pegomock.FailHandler
- func (mock *MockPreWorkflowHookRunner) Run(ctx models.PreWorkflowHookCommandContext, command string, path string) (string, error)
- func (mock *MockPreWorkflowHookRunner) SetFailHandler(fh pegomock.FailHandler)
- func (mock *MockPreWorkflowHookRunner) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockPreWorkflowHookRunner
- func (mock *MockPreWorkflowHookRunner) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockPreWorkflowHookRunner
- func (mock *MockPreWorkflowHookRunner) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, ...) *VerifierMockPreWorkflowHookRunner
- func (mock *MockPreWorkflowHookRunner) VerifyWasCalledOnce() *VerifierMockPreWorkflowHookRunner
- type MockPreWorkflowHookRunner_Run_OngoingVerification
- type MockPullApprovedChecker
- func (mock *MockPullApprovedChecker) FailHandler() pegomock.FailHandler
- func (mock *MockPullApprovedChecker) PullIsApproved(baseRepo models.Repo, pull models.PullRequest) (bool, error)
- func (mock *MockPullApprovedChecker) SetFailHandler(fh pegomock.FailHandler)
- func (mock *MockPullApprovedChecker) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockPullApprovedChecker
- func (mock *MockPullApprovedChecker) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockPullApprovedChecker
- func (mock *MockPullApprovedChecker) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, ...) *VerifierMockPullApprovedChecker
- func (mock *MockPullApprovedChecker) VerifyWasCalledOnce() *VerifierMockPullApprovedChecker
- type MockPullApprovedChecker_PullIsApproved_OngoingVerification
- type MockRunner
- func (mock *MockRunner) FailHandler() pegomock.FailHandler
- func (mock *MockRunner) Run(ctx models.ProjectCommandContext, extraArgs []string, path string, ...) (string, error)
- func (mock *MockRunner) SetFailHandler(fh pegomock.FailHandler)
- func (mock *MockRunner) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockRunner
- func (mock *MockRunner) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockRunner
- func (mock *MockRunner) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, ...) *VerifierMockRunner
- func (mock *MockRunner) VerifyWasCalledOnce() *VerifierMockRunner
- type MockRunner_Run_OngoingVerification
- type MockVersionedExecutorWorkflow
- func (mock *MockVersionedExecutorWorkflow) EnsureExecutorVersion(log logging.SimpleLogging, v *go_version.Version) (string, error)
- func (mock *MockVersionedExecutorWorkflow) FailHandler() pegomock.FailHandler
- func (mock *MockVersionedExecutorWorkflow) Run(ctx models.ProjectCommandContext, executablePath string, ...) (string, error)
- func (mock *MockVersionedExecutorWorkflow) SetFailHandler(fh pegomock.FailHandler)
- func (mock *MockVersionedExecutorWorkflow) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockVersionedExecutorWorkflow
- func (mock *MockVersionedExecutorWorkflow) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockVersionedExecutorWorkflow
- func (mock *MockVersionedExecutorWorkflow) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, ...) *VerifierMockVersionedExecutorWorkflow
- func (mock *MockVersionedExecutorWorkflow) VerifyWasCalledOnce() *VerifierMockVersionedExecutorWorkflow
- type MockVersionedExecutorWorkflow_EnsureExecutorVersion_OngoingVerification
- func (c *MockVersionedExecutorWorkflow_EnsureExecutorVersion_OngoingVerification) GetAllCapturedArguments() (_param0 []logging.SimpleLogging, _param1 []*go_version.Version)
- func (c *MockVersionedExecutorWorkflow_EnsureExecutorVersion_OngoingVerification) GetCapturedArguments() (logging.SimpleLogging, *go_version.Version)
- type MockVersionedExecutorWorkflow_Run_OngoingVerification
- func (c *MockVersionedExecutorWorkflow_Run_OngoingVerification) GetAllCapturedArguments() (_param0 []models.ProjectCommandContext, _param1 []string, ...)
- func (c *MockVersionedExecutorWorkflow_Run_OngoingVerification) GetCapturedArguments() (models.ProjectCommandContext, string, map[string]string, string, []string)
- type VerifierMockPreWorkflowHookRunner
- type VerifierMockPullApprovedChecker
- type VerifierMockRunner
- type VerifierMockVersionedExecutorWorkflow
- func (verifier *VerifierMockVersionedExecutorWorkflow) EnsureExecutorVersion(log logging.SimpleLogging, v *go_version.Version) *MockVersionedExecutorWorkflow_EnsureExecutorVersion_OngoingVerification
- func (verifier *VerifierMockVersionedExecutorWorkflow) Run(ctx models.ProjectCommandContext, executablePath string, ...) *MockVersionedExecutorWorkflow_Run_OngoingVerification
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPreWorkflowHookRunner ¶ added in v0.17.0
type MockPreWorkflowHookRunner struct {
// contains filtered or unexported fields
}
func NewMockPreWorkflowHookRunner ¶ added in v0.17.0
func NewMockPreWorkflowHookRunner(options ...pegomock.Option) *MockPreWorkflowHookRunner
func (*MockPreWorkflowHookRunner) FailHandler ¶ added in v0.17.0
func (mock *MockPreWorkflowHookRunner) FailHandler() pegomock.FailHandler
func (*MockPreWorkflowHookRunner) Run ¶ added in v0.17.0
func (mock *MockPreWorkflowHookRunner) Run(ctx models.PreWorkflowHookCommandContext, command string, path string) (string, error)
func (*MockPreWorkflowHookRunner) SetFailHandler ¶ added in v0.17.0
func (mock *MockPreWorkflowHookRunner) SetFailHandler(fh pegomock.FailHandler)
func (*MockPreWorkflowHookRunner) VerifyWasCalled ¶ added in v0.17.0
func (mock *MockPreWorkflowHookRunner) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockPreWorkflowHookRunner
func (*MockPreWorkflowHookRunner) VerifyWasCalledEventually ¶ added in v0.17.0
func (mock *MockPreWorkflowHookRunner) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockPreWorkflowHookRunner
func (*MockPreWorkflowHookRunner) VerifyWasCalledInOrder ¶ added in v0.17.0
func (mock *MockPreWorkflowHookRunner) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, inOrderContext *pegomock.InOrderContext) *VerifierMockPreWorkflowHookRunner
func (*MockPreWorkflowHookRunner) VerifyWasCalledOnce ¶ added in v0.17.0
func (mock *MockPreWorkflowHookRunner) VerifyWasCalledOnce() *VerifierMockPreWorkflowHookRunner
type MockPreWorkflowHookRunner_Run_OngoingVerification ¶ added in v0.17.0
type MockPreWorkflowHookRunner_Run_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockPreWorkflowHookRunner_Run_OngoingVerification) GetAllCapturedArguments ¶ added in v0.17.0
func (c *MockPreWorkflowHookRunner_Run_OngoingVerification) GetAllCapturedArguments() (_param0 []models.PreWorkflowHookCommandContext, _param1 []string, _param2 []string)
func (*MockPreWorkflowHookRunner_Run_OngoingVerification) GetCapturedArguments ¶ added in v0.17.0
func (c *MockPreWorkflowHookRunner_Run_OngoingVerification) GetCapturedArguments() (models.PreWorkflowHookCommandContext, string, string)
type MockPullApprovedChecker ¶
type MockPullApprovedChecker struct {
// contains filtered or unexported fields
}
func NewMockPullApprovedChecker ¶
func NewMockPullApprovedChecker(options ...pegomock.Option) *MockPullApprovedChecker
func (*MockPullApprovedChecker) FailHandler ¶ added in v0.6.0
func (mock *MockPullApprovedChecker) FailHandler() pegomock.FailHandler
func (*MockPullApprovedChecker) PullIsApproved ¶
func (mock *MockPullApprovedChecker) PullIsApproved(baseRepo models.Repo, pull models.PullRequest) (bool, error)
func (*MockPullApprovedChecker) SetFailHandler ¶ added in v0.6.0
func (mock *MockPullApprovedChecker) SetFailHandler(fh pegomock.FailHandler)
func (*MockPullApprovedChecker) VerifyWasCalled ¶
func (mock *MockPullApprovedChecker) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockPullApprovedChecker
func (*MockPullApprovedChecker) VerifyWasCalledEventually ¶ added in v0.4.13
func (mock *MockPullApprovedChecker) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockPullApprovedChecker
func (*MockPullApprovedChecker) VerifyWasCalledInOrder ¶
func (mock *MockPullApprovedChecker) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, inOrderContext *pegomock.InOrderContext) *VerifierMockPullApprovedChecker
func (*MockPullApprovedChecker) VerifyWasCalledOnce ¶
func (mock *MockPullApprovedChecker) VerifyWasCalledOnce() *VerifierMockPullApprovedChecker
type MockPullApprovedChecker_PullIsApproved_OngoingVerification ¶ added in v0.8.3
type MockPullApprovedChecker_PullIsApproved_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockPullApprovedChecker_PullIsApproved_OngoingVerification) GetAllCapturedArguments ¶ added in v0.8.3
func (c *MockPullApprovedChecker_PullIsApproved_OngoingVerification) GetAllCapturedArguments() (_param0 []models.Repo, _param1 []models.PullRequest)
func (*MockPullApprovedChecker_PullIsApproved_OngoingVerification) GetCapturedArguments ¶ added in v0.8.3
func (c *MockPullApprovedChecker_PullIsApproved_OngoingVerification) GetCapturedArguments() (models.Repo, models.PullRequest)
type MockRunner ¶ added in v0.17.0
type MockRunner struct {
// contains filtered or unexported fields
}
func NewMockRunner ¶ added in v0.17.0
func NewMockRunner(options ...pegomock.Option) *MockRunner
func (*MockRunner) FailHandler ¶ added in v0.17.0
func (mock *MockRunner) FailHandler() pegomock.FailHandler
func (*MockRunner) Run ¶ added in v0.17.0
func (mock *MockRunner) Run(ctx models.ProjectCommandContext, extraArgs []string, path string, envs map[string]string) (string, error)
func (*MockRunner) SetFailHandler ¶ added in v0.17.0
func (mock *MockRunner) SetFailHandler(fh pegomock.FailHandler)
func (*MockRunner) VerifyWasCalled ¶ added in v0.17.0
func (mock *MockRunner) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockRunner
func (*MockRunner) VerifyWasCalledEventually ¶ added in v0.17.0
func (mock *MockRunner) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockRunner
func (*MockRunner) VerifyWasCalledInOrder ¶ added in v0.17.0
func (mock *MockRunner) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, inOrderContext *pegomock.InOrderContext) *VerifierMockRunner
func (*MockRunner) VerifyWasCalledOnce ¶ added in v0.17.0
func (mock *MockRunner) VerifyWasCalledOnce() *VerifierMockRunner
type MockRunner_Run_OngoingVerification ¶ added in v0.17.0
type MockRunner_Run_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockRunner_Run_OngoingVerification) GetAllCapturedArguments ¶ added in v0.17.0
func (c *MockRunner_Run_OngoingVerification) GetAllCapturedArguments() (_param0 []models.ProjectCommandContext, _param1 [][]string, _param2 []string, _param3 []map[string]string)
func (*MockRunner_Run_OngoingVerification) GetCapturedArguments ¶ added in v0.17.0
func (c *MockRunner_Run_OngoingVerification) GetCapturedArguments() (models.ProjectCommandContext, []string, string, map[string]string)
type MockVersionedExecutorWorkflow ¶ added in v0.17.0
type MockVersionedExecutorWorkflow struct {
// contains filtered or unexported fields
}
func NewMockVersionedExecutorWorkflow ¶ added in v0.17.0
func NewMockVersionedExecutorWorkflow(options ...pegomock.Option) *MockVersionedExecutorWorkflow
func (*MockVersionedExecutorWorkflow) EnsureExecutorVersion ¶ added in v0.17.0
func (mock *MockVersionedExecutorWorkflow) EnsureExecutorVersion(log logging.SimpleLogging, v *go_version.Version) (string, error)
func (*MockVersionedExecutorWorkflow) FailHandler ¶ added in v0.17.0
func (mock *MockVersionedExecutorWorkflow) FailHandler() pegomock.FailHandler
func (*MockVersionedExecutorWorkflow) Run ¶ added in v0.17.0
func (mock *MockVersionedExecutorWorkflow) Run(ctx models.ProjectCommandContext, executablePath string, envs map[string]string, workdir string, extraArgs []string) (string, error)
func (*MockVersionedExecutorWorkflow) SetFailHandler ¶ added in v0.17.0
func (mock *MockVersionedExecutorWorkflow) SetFailHandler(fh pegomock.FailHandler)
func (*MockVersionedExecutorWorkflow) VerifyWasCalled ¶ added in v0.17.0
func (mock *MockVersionedExecutorWorkflow) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockVersionedExecutorWorkflow
func (*MockVersionedExecutorWorkflow) VerifyWasCalledEventually ¶ added in v0.17.0
func (mock *MockVersionedExecutorWorkflow) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockVersionedExecutorWorkflow
func (*MockVersionedExecutorWorkflow) VerifyWasCalledInOrder ¶ added in v0.17.0
func (mock *MockVersionedExecutorWorkflow) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, inOrderContext *pegomock.InOrderContext) *VerifierMockVersionedExecutorWorkflow
func (*MockVersionedExecutorWorkflow) VerifyWasCalledOnce ¶ added in v0.17.0
func (mock *MockVersionedExecutorWorkflow) VerifyWasCalledOnce() *VerifierMockVersionedExecutorWorkflow
type MockVersionedExecutorWorkflow_EnsureExecutorVersion_OngoingVerification ¶ added in v0.17.0
type MockVersionedExecutorWorkflow_EnsureExecutorVersion_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockVersionedExecutorWorkflow_EnsureExecutorVersion_OngoingVerification) GetAllCapturedArguments ¶ added in v0.17.0
func (c *MockVersionedExecutorWorkflow_EnsureExecutorVersion_OngoingVerification) GetAllCapturedArguments() (_param0 []logging.SimpleLogging, _param1 []*go_version.Version)
func (*MockVersionedExecutorWorkflow_EnsureExecutorVersion_OngoingVerification) GetCapturedArguments ¶ added in v0.17.0
func (c *MockVersionedExecutorWorkflow_EnsureExecutorVersion_OngoingVerification) GetCapturedArguments() (logging.SimpleLogging, *go_version.Version)
type MockVersionedExecutorWorkflow_Run_OngoingVerification ¶ added in v0.17.0
type MockVersionedExecutorWorkflow_Run_OngoingVerification struct {
// contains filtered or unexported fields
}
func (*MockVersionedExecutorWorkflow_Run_OngoingVerification) GetAllCapturedArguments ¶ added in v0.17.0
func (c *MockVersionedExecutorWorkflow_Run_OngoingVerification) GetAllCapturedArguments() (_param0 []models.ProjectCommandContext, _param1 []string, _param2 []map[string]string, _param3 []string, _param4 [][]string)
func (*MockVersionedExecutorWorkflow_Run_OngoingVerification) GetCapturedArguments ¶ added in v0.17.0
func (c *MockVersionedExecutorWorkflow_Run_OngoingVerification) GetCapturedArguments() (models.ProjectCommandContext, string, map[string]string, string, []string)
type VerifierMockPreWorkflowHookRunner ¶ added in v0.17.0
type VerifierMockPreWorkflowHookRunner struct {
// contains filtered or unexported fields
}
func (*VerifierMockPreWorkflowHookRunner) Run ¶ added in v0.17.0
func (verifier *VerifierMockPreWorkflowHookRunner) Run(ctx models.PreWorkflowHookCommandContext, command string, path string) *MockPreWorkflowHookRunner_Run_OngoingVerification
type VerifierMockPullApprovedChecker ¶ added in v0.8.3
type VerifierMockPullApprovedChecker struct {
// contains filtered or unexported fields
}
func (*VerifierMockPullApprovedChecker) PullIsApproved ¶ added in v0.8.3
func (verifier *VerifierMockPullApprovedChecker) PullIsApproved(baseRepo models.Repo, pull models.PullRequest) *MockPullApprovedChecker_PullIsApproved_OngoingVerification
type VerifierMockRunner ¶ added in v0.17.0
type VerifierMockRunner struct {
// contains filtered or unexported fields
}
func (*VerifierMockRunner) Run ¶ added in v0.17.0
func (verifier *VerifierMockRunner) Run(ctx models.ProjectCommandContext, extraArgs []string, path string, envs map[string]string) *MockRunner_Run_OngoingVerification
type VerifierMockVersionedExecutorWorkflow ¶ added in v0.17.0
type VerifierMockVersionedExecutorWorkflow struct {
// contains filtered or unexported fields
}
func (*VerifierMockVersionedExecutorWorkflow) EnsureExecutorVersion ¶ added in v0.17.0
func (verifier *VerifierMockVersionedExecutorWorkflow) EnsureExecutorVersion(log logging.SimpleLogging, v *go_version.Version) *MockVersionedExecutorWorkflow_EnsureExecutorVersion_OngoingVerification
func (*VerifierMockVersionedExecutorWorkflow) Run ¶ added in v0.17.0
func (verifier *VerifierMockVersionedExecutorWorkflow) Run(ctx models.ProjectCommandContext, executablePath string, envs map[string]string, workdir string, extraArgs []string) *MockVersionedExecutorWorkflow_Run_OngoingVerification
Source Files ¶
Click to show internal directories.
Click to hide internal directories.