mocks

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 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 MockProjectCommandOutputHandler

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

func NewMockProjectCommandOutputHandler

func NewMockProjectCommandOutputHandler(options ...pegomock.Option) *MockProjectCommandOutputHandler

func (*MockProjectCommandOutputHandler) CleanUp

func (mock *MockProjectCommandOutputHandler) CleanUp(pullInfo jobs.PullInfo)

func (*MockProjectCommandOutputHandler) Deregister

func (mock *MockProjectCommandOutputHandler) Deregister(jobID string, receiver chan string)

func (*MockProjectCommandOutputHandler) FailHandler

func (*MockProjectCommandOutputHandler) Handle

func (mock *MockProjectCommandOutputHandler) Handle()

func (*MockProjectCommandOutputHandler) IsKeyExists

func (mock *MockProjectCommandOutputHandler) IsKeyExists(key string) bool

func (*MockProjectCommandOutputHandler) Register

func (mock *MockProjectCommandOutputHandler) Register(jobID string, receiver chan string)

func (*MockProjectCommandOutputHandler) Send

func (mock *MockProjectCommandOutputHandler) Send(ctx command.ProjectContext, msg string, operationComplete bool)

func (*MockProjectCommandOutputHandler) SendWorkflowHook added in v0.22.0

func (mock *MockProjectCommandOutputHandler) SendWorkflowHook(ctx models.WorkflowHookCommandContext, msg string, operationComplete bool)

func (*MockProjectCommandOutputHandler) SetFailHandler

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

func (*MockProjectCommandOutputHandler) VerifyWasCalled

func (*MockProjectCommandOutputHandler) VerifyWasCalledEventually

func (mock *MockProjectCommandOutputHandler) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockProjectCommandOutputHandler

func (*MockProjectCommandOutputHandler) VerifyWasCalledInOrder

func (mock *MockProjectCommandOutputHandler) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, inOrderContext *pegomock.InOrderContext) *VerifierMockProjectCommandOutputHandler

func (*MockProjectCommandOutputHandler) VerifyWasCalledOnce

type MockProjectCommandOutputHandler_CleanUp_OngoingVerification

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

func (*MockProjectCommandOutputHandler_CleanUp_OngoingVerification) GetAllCapturedArguments

func (c *MockProjectCommandOutputHandler_CleanUp_OngoingVerification) GetAllCapturedArguments() (_param0 []jobs.PullInfo)

func (*MockProjectCommandOutputHandler_CleanUp_OngoingVerification) GetCapturedArguments

type MockProjectCommandOutputHandler_Deregister_OngoingVerification

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

func (*MockProjectCommandOutputHandler_Deregister_OngoingVerification) GetAllCapturedArguments

func (c *MockProjectCommandOutputHandler_Deregister_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []chan string)

func (*MockProjectCommandOutputHandler_Deregister_OngoingVerification) GetCapturedArguments

type MockProjectCommandOutputHandler_Handle_OngoingVerification

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

func (*MockProjectCommandOutputHandler_Handle_OngoingVerification) GetAllCapturedArguments

func (*MockProjectCommandOutputHandler_Handle_OngoingVerification) GetCapturedArguments

type MockProjectCommandOutputHandler_IsKeyExists_OngoingVerification

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

func (*MockProjectCommandOutputHandler_IsKeyExists_OngoingVerification) GetAllCapturedArguments

func (c *MockProjectCommandOutputHandler_IsKeyExists_OngoingVerification) GetAllCapturedArguments() (_param0 []string)

func (*MockProjectCommandOutputHandler_IsKeyExists_OngoingVerification) GetCapturedArguments

type MockProjectCommandOutputHandler_Register_OngoingVerification

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

func (*MockProjectCommandOutputHandler_Register_OngoingVerification) GetAllCapturedArguments

func (c *MockProjectCommandOutputHandler_Register_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []chan string)

func (*MockProjectCommandOutputHandler_Register_OngoingVerification) GetCapturedArguments

type MockProjectCommandOutputHandler_SendWorkflowHook_OngoingVerification added in v0.22.0

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

func (*MockProjectCommandOutputHandler_SendWorkflowHook_OngoingVerification) GetAllCapturedArguments added in v0.22.0

func (c *MockProjectCommandOutputHandler_SendWorkflowHook_OngoingVerification) GetAllCapturedArguments() (_param0 []models.WorkflowHookCommandContext, _param1 []string, _param2 []bool)

func (*MockProjectCommandOutputHandler_SendWorkflowHook_OngoingVerification) GetCapturedArguments added in v0.22.0

type MockProjectCommandOutputHandler_Send_OngoingVerification

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

func (*MockProjectCommandOutputHandler_Send_OngoingVerification) GetAllCapturedArguments

func (c *MockProjectCommandOutputHandler_Send_OngoingVerification) GetAllCapturedArguments() (_param0 []command.ProjectContext, _param1 []string, _param2 []bool)

func (*MockProjectCommandOutputHandler_Send_OngoingVerification) GetCapturedArguments

type MockProjectJobURLGenerator

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

func NewMockProjectJobURLGenerator

func NewMockProjectJobURLGenerator(options ...pegomock.Option) *MockProjectJobURLGenerator

func (*MockProjectJobURLGenerator) FailHandler

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

func (*MockProjectJobURLGenerator) GenerateProjectJobURL

func (mock *MockProjectJobURLGenerator) GenerateProjectJobURL(p command.ProjectContext) (string, error)

func (*MockProjectJobURLGenerator) SetFailHandler

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

func (*MockProjectJobURLGenerator) VerifyWasCalled

func (*MockProjectJobURLGenerator) VerifyWasCalledEventually

func (mock *MockProjectJobURLGenerator) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockProjectJobURLGenerator

func (*MockProjectJobURLGenerator) VerifyWasCalledInOrder

func (mock *MockProjectJobURLGenerator) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, inOrderContext *pegomock.InOrderContext) *VerifierMockProjectJobURLGenerator

func (*MockProjectJobURLGenerator) VerifyWasCalledOnce

type MockProjectJobURLGenerator_GenerateProjectJobURL_OngoingVerification

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

func (*MockProjectJobURLGenerator_GenerateProjectJobURL_OngoingVerification) GetAllCapturedArguments

func (*MockProjectJobURLGenerator_GenerateProjectJobURL_OngoingVerification) GetCapturedArguments

type MockProjectStatusUpdater

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

func NewMockProjectStatusUpdater

func NewMockProjectStatusUpdater(options ...pegomock.Option) *MockProjectStatusUpdater

func (*MockProjectStatusUpdater) FailHandler

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

func (*MockProjectStatusUpdater) SetFailHandler

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

func (*MockProjectStatusUpdater) UpdateProject

func (mock *MockProjectStatusUpdater) UpdateProject(ctx command.ProjectContext, cmdName command.Name, status models.CommitStatus, url string, result *command.ProjectResult) error

func (*MockProjectStatusUpdater) VerifyWasCalled

func (mock *MockProjectStatusUpdater) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockProjectStatusUpdater

func (*MockProjectStatusUpdater) VerifyWasCalledEventually

func (mock *MockProjectStatusUpdater) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockProjectStatusUpdater

func (*MockProjectStatusUpdater) VerifyWasCalledInOrder

func (mock *MockProjectStatusUpdater) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, inOrderContext *pegomock.InOrderContext) *VerifierMockProjectStatusUpdater

func (*MockProjectStatusUpdater) VerifyWasCalledOnce

func (mock *MockProjectStatusUpdater) VerifyWasCalledOnce() *VerifierMockProjectStatusUpdater

type MockProjectStatusUpdater_UpdateProject_OngoingVerification

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

func (*MockProjectStatusUpdater_UpdateProject_OngoingVerification) GetAllCapturedArguments

func (c *MockProjectStatusUpdater_UpdateProject_OngoingVerification) GetAllCapturedArguments() (_param0 []command.ProjectContext, _param1 []command.Name, _param2 []models.CommitStatus, _param3 []string, _param4 []*command.ProjectResult)

func (*MockProjectStatusUpdater_UpdateProject_OngoingVerification) GetCapturedArguments

type VerifierMockProjectCommandOutputHandler

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

func (*VerifierMockProjectCommandOutputHandler) CleanUp

func (*VerifierMockProjectCommandOutputHandler) Deregister

func (*VerifierMockProjectCommandOutputHandler) Handle

func (*VerifierMockProjectCommandOutputHandler) IsKeyExists

func (*VerifierMockProjectCommandOutputHandler) Register

func (*VerifierMockProjectCommandOutputHandler) Send

func (*VerifierMockProjectCommandOutputHandler) SendWorkflowHook added in v0.22.0

type VerifierMockProjectJobURLGenerator

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

type VerifierMockProjectStatusUpdater

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

func (*VerifierMockProjectStatusUpdater) UpdateProject

Jump to

Keyboard shortcuts

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