mocks

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPreWorkflowHookRunner

type MockPreWorkflowHookRunner struct {
	// contains filtered or unexported fields
}

func NewMockPreWorkflowHookRunner

func NewMockPreWorkflowHookRunner(options ...pegomock.Option) *MockPreWorkflowHookRunner

func (*MockPreWorkflowHookRunner) FailHandler

func (mock *MockPreWorkflowHookRunner) FailHandler() pegomock.FailHandler

func (*MockPreWorkflowHookRunner) Run

func (*MockPreWorkflowHookRunner) SetFailHandler

func (mock *MockPreWorkflowHookRunner) SetFailHandler(fh pegomock.FailHandler)

func (*MockPreWorkflowHookRunner) VerifyWasCalled

func (mock *MockPreWorkflowHookRunner) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockPreWorkflowHookRunner

func (*MockPreWorkflowHookRunner) VerifyWasCalledEventually

func (mock *MockPreWorkflowHookRunner) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockPreWorkflowHookRunner

func (*MockPreWorkflowHookRunner) VerifyWasCalledInOrder

func (mock *MockPreWorkflowHookRunner) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, inOrderContext *pegomock.InOrderContext) *VerifierMockPreWorkflowHookRunner

func (*MockPreWorkflowHookRunner) VerifyWasCalledOnce

func (mock *MockPreWorkflowHookRunner) VerifyWasCalledOnce() *VerifierMockPreWorkflowHookRunner

type MockPreWorkflowHookRunner_Run_OngoingVerification

type MockPreWorkflowHookRunner_Run_OngoingVerification struct {
	// contains filtered or unexported fields
}

func (*MockPreWorkflowHookRunner_Run_OngoingVerification) GetAllCapturedArguments

func (c *MockPreWorkflowHookRunner_Run_OngoingVerification) GetAllCapturedArguments() (_param0 []models.PreWorkflowHookCommandContext, _param1 []string, _param2 []string)

func (*MockPreWorkflowHookRunner_Run_OngoingVerification) GetCapturedArguments

type MockPullApprovedChecker

type MockPullApprovedChecker struct {
	// contains filtered or unexported fields
}

func NewMockPullApprovedChecker

func NewMockPullApprovedChecker(options ...pegomock.Option) *MockPullApprovedChecker

func (*MockPullApprovedChecker) FailHandler

func (mock *MockPullApprovedChecker) FailHandler() pegomock.FailHandler

func (*MockPullApprovedChecker) PullIsApproved

func (mock *MockPullApprovedChecker) PullIsApproved(_param0 models.Repo, _param1 models.PullRequest) (models.ApprovalStatus, error)

func (*MockPullApprovedChecker) SetFailHandler

func (mock *MockPullApprovedChecker) SetFailHandler(fh pegomock.FailHandler)

func (*MockPullApprovedChecker) VerifyWasCalled

func (mock *MockPullApprovedChecker) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockPullApprovedChecker

func (*MockPullApprovedChecker) VerifyWasCalledEventually

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

type MockPullApprovedChecker_PullIsApproved_OngoingVerification struct {
	// contains filtered or unexported fields
}

func (*MockPullApprovedChecker_PullIsApproved_OngoingVerification) GetAllCapturedArguments

func (c *MockPullApprovedChecker_PullIsApproved_OngoingVerification) GetAllCapturedArguments() (_param0 []models.Repo, _param1 []models.PullRequest)

func (*MockPullApprovedChecker_PullIsApproved_OngoingVerification) GetCapturedArguments

type MockRunner

type MockRunner struct {
	// contains filtered or unexported fields
}

func NewMockRunner

func NewMockRunner(options ...pegomock.Option) *MockRunner

func (*MockRunner) FailHandler

func (mock *MockRunner) FailHandler() pegomock.FailHandler

func (*MockRunner) Run

func (mock *MockRunner) Run(ctx models.ProjectCommandContext, extraArgs []string, path string, envs map[string]string) (string, error)

func (*MockRunner) SetFailHandler

func (mock *MockRunner) SetFailHandler(fh pegomock.FailHandler)

func (*MockRunner) VerifyWasCalled

func (mock *MockRunner) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockRunner

func (*MockRunner) VerifyWasCalledEventually

func (mock *MockRunner) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockRunner

func (*MockRunner) VerifyWasCalledInOrder

func (mock *MockRunner) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, inOrderContext *pegomock.InOrderContext) *VerifierMockRunner

func (*MockRunner) VerifyWasCalledOnce

func (mock *MockRunner) VerifyWasCalledOnce() *VerifierMockRunner

type MockRunner_Run_OngoingVerification

type MockRunner_Run_OngoingVerification struct {
	// contains filtered or unexported fields
}

func (*MockRunner_Run_OngoingVerification) GetAllCapturedArguments

func (c *MockRunner_Run_OngoingVerification) GetAllCapturedArguments() (_param0 []models.ProjectCommandContext, _param1 [][]string, _param2 []string, _param3 []map[string]string)

func (*MockRunner_Run_OngoingVerification) GetCapturedArguments

type MockVersionedExecutorWorkflow

type MockVersionedExecutorWorkflow struct {
	// contains filtered or unexported fields
}

func NewMockVersionedExecutorWorkflow

func NewMockVersionedExecutorWorkflow(options ...pegomock.Option) *MockVersionedExecutorWorkflow

func (*MockVersionedExecutorWorkflow) EnsureExecutorVersion

func (mock *MockVersionedExecutorWorkflow) EnsureExecutorVersion(log logging.SimpleLogging, v *go_version.Version) (string, error)

func (*MockVersionedExecutorWorkflow) FailHandler

func (*MockVersionedExecutorWorkflow) Run

func (mock *MockVersionedExecutorWorkflow) Run(ctx models.ProjectCommandContext, executablePath string, envs map[string]string, workdir string, extraArgs []string) (string, error)

func (*MockVersionedExecutorWorkflow) SetFailHandler

func (mock *MockVersionedExecutorWorkflow) SetFailHandler(fh pegomock.FailHandler)

func (*MockVersionedExecutorWorkflow) VerifyWasCalled

func (*MockVersionedExecutorWorkflow) VerifyWasCalledEventually

func (mock *MockVersionedExecutorWorkflow) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockVersionedExecutorWorkflow

func (*MockVersionedExecutorWorkflow) VerifyWasCalledInOrder

func (mock *MockVersionedExecutorWorkflow) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, inOrderContext *pegomock.InOrderContext) *VerifierMockVersionedExecutorWorkflow

func (*MockVersionedExecutorWorkflow) VerifyWasCalledOnce

type MockVersionedExecutorWorkflow_EnsureExecutorVersion_OngoingVerification

type MockVersionedExecutorWorkflow_EnsureExecutorVersion_OngoingVerification struct {
	// contains filtered or unexported fields
}

func (*MockVersionedExecutorWorkflow_EnsureExecutorVersion_OngoingVerification) GetAllCapturedArguments

func (*MockVersionedExecutorWorkflow_EnsureExecutorVersion_OngoingVerification) GetCapturedArguments

type MockVersionedExecutorWorkflow_Run_OngoingVerification

type MockVersionedExecutorWorkflow_Run_OngoingVerification struct {
	// contains filtered or unexported fields
}

func (*MockVersionedExecutorWorkflow_Run_OngoingVerification) GetAllCapturedArguments

func (c *MockVersionedExecutorWorkflow_Run_OngoingVerification) GetAllCapturedArguments() (_param0 []models.ProjectCommandContext, _param1 []string, _param2 []map[string]string, _param3 []string, _param4 [][]string)

func (*MockVersionedExecutorWorkflow_Run_OngoingVerification) GetCapturedArguments

type VerifierMockPreWorkflowHookRunner

type VerifierMockPreWorkflowHookRunner struct {
	// contains filtered or unexported fields
}

func (*VerifierMockPreWorkflowHookRunner) Run

type VerifierMockPullApprovedChecker

type VerifierMockPullApprovedChecker struct {
	// contains filtered or unexported fields
}

func (*VerifierMockPullApprovedChecker) PullIsApproved

type VerifierMockRunner

type VerifierMockRunner struct {
	// contains filtered or unexported fields
}

func (*VerifierMockRunner) Run

type VerifierMockVersionedExecutorWorkflow

type VerifierMockVersionedExecutorWorkflow struct {
	// contains filtered or unexported fields
}

func (*VerifierMockVersionedExecutorWorkflow) Run

Directories

Path Synopsis
Code generated by pegomock.
Code generated by pegomock.

Jump to

Keyboard shortcuts

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