mocks

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockApplyLockChecker

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

func NewMockApplyLockChecker

func NewMockApplyLockChecker(options ...pegomock.Option) *MockApplyLockChecker

func (*MockApplyLockChecker) CheckApplyLock

func (mock *MockApplyLockChecker) CheckApplyLock() (locking.ApplyCommandLock, error)

func (*MockApplyLockChecker) FailHandler

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

func (*MockApplyLockChecker) SetFailHandler

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

func (*MockApplyLockChecker) VerifyWasCalled

func (mock *MockApplyLockChecker) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockApplyLockChecker

func (*MockApplyLockChecker) VerifyWasCalledEventually

func (mock *MockApplyLockChecker) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockApplyLockChecker

func (*MockApplyLockChecker) VerifyWasCalledInOrder

func (mock *MockApplyLockChecker) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, inOrderContext *pegomock.InOrderContext) *VerifierMockApplyLockChecker

func (*MockApplyLockChecker) VerifyWasCalledOnce

func (mock *MockApplyLockChecker) VerifyWasCalledOnce() *VerifierMockApplyLockChecker

type MockApplyLockChecker_CheckApplyLock_OngoingVerification

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

func (*MockApplyLockChecker_CheckApplyLock_OngoingVerification) GetAllCapturedArguments

func (c *MockApplyLockChecker_CheckApplyLock_OngoingVerification) GetAllCapturedArguments()

func (*MockApplyLockChecker_CheckApplyLock_OngoingVerification) GetCapturedArguments

type MockApplyLocker

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

func NewMockApplyLocker

func NewMockApplyLocker(options ...pegomock.Option) *MockApplyLocker

func (*MockApplyLocker) CheckApplyLock

func (mock *MockApplyLocker) CheckApplyLock() (locking.ApplyCommandLock, error)

func (*MockApplyLocker) FailHandler

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

func (*MockApplyLocker) LockApply

func (mock *MockApplyLocker) LockApply() (locking.ApplyCommandLock, error)

func (*MockApplyLocker) SetFailHandler

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

func (*MockApplyLocker) UnlockApply

func (mock *MockApplyLocker) UnlockApply() error

func (*MockApplyLocker) VerifyWasCalled

func (mock *MockApplyLocker) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockApplyLocker

func (*MockApplyLocker) VerifyWasCalledEventually

func (mock *MockApplyLocker) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockApplyLocker

func (*MockApplyLocker) VerifyWasCalledInOrder

func (mock *MockApplyLocker) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, inOrderContext *pegomock.InOrderContext) *VerifierMockApplyLocker

func (*MockApplyLocker) VerifyWasCalledOnce

func (mock *MockApplyLocker) VerifyWasCalledOnce() *VerifierMockApplyLocker

type MockApplyLocker_CheckApplyLock_OngoingVerification

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

func (*MockApplyLocker_CheckApplyLock_OngoingVerification) GetAllCapturedArguments

func (c *MockApplyLocker_CheckApplyLock_OngoingVerification) GetAllCapturedArguments()

func (*MockApplyLocker_CheckApplyLock_OngoingVerification) GetCapturedArguments

func (c *MockApplyLocker_CheckApplyLock_OngoingVerification) GetCapturedArguments()

type MockApplyLocker_LockApply_OngoingVerification

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

func (*MockApplyLocker_LockApply_OngoingVerification) GetAllCapturedArguments

func (c *MockApplyLocker_LockApply_OngoingVerification) GetAllCapturedArguments()

func (*MockApplyLocker_LockApply_OngoingVerification) GetCapturedArguments

func (c *MockApplyLocker_LockApply_OngoingVerification) GetCapturedArguments()

type MockApplyLocker_UnlockApply_OngoingVerification

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

func (*MockApplyLocker_UnlockApply_OngoingVerification) GetAllCapturedArguments

func (c *MockApplyLocker_UnlockApply_OngoingVerification) GetAllCapturedArguments()

func (*MockApplyLocker_UnlockApply_OngoingVerification) GetCapturedArguments

func (c *MockApplyLocker_UnlockApply_OngoingVerification) GetCapturedArguments()

type MockLocker

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

func NewMockLocker

func NewMockLocker(options ...pegomock.Option) *MockLocker

func (*MockLocker) FailHandler

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

func (*MockLocker) GetLock

func (mock *MockLocker) GetLock(key string) (*models.ProjectLock, error)

func (*MockLocker) List

func (mock *MockLocker) List() (map[string]models.ProjectLock, error)

func (*MockLocker) SetFailHandler

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

func (*MockLocker) TryLock

func (mock *MockLocker) TryLock(p models.Project, workspace string, pull models.PullRequest, user models.User) (locking.TryLockResponse, error)

func (*MockLocker) Unlock

func (mock *MockLocker) Unlock(key string) (*models.ProjectLock, error)

func (*MockLocker) UnlockByPull

func (mock *MockLocker) UnlockByPull(repoFullName string, pullNum int) ([]models.ProjectLock, error)

func (*MockLocker) VerifyWasCalled

func (mock *MockLocker) VerifyWasCalled(invocationCountMatcher pegomock.InvocationCountMatcher) *VerifierMockLocker

func (*MockLocker) VerifyWasCalledEventually

func (mock *MockLocker) VerifyWasCalledEventually(invocationCountMatcher pegomock.InvocationCountMatcher, timeout time.Duration) *VerifierMockLocker

func (*MockLocker) VerifyWasCalledInOrder

func (mock *MockLocker) VerifyWasCalledInOrder(invocationCountMatcher pegomock.InvocationCountMatcher, inOrderContext *pegomock.InOrderContext) *VerifierMockLocker

func (*MockLocker) VerifyWasCalledOnce

func (mock *MockLocker) VerifyWasCalledOnce() *VerifierMockLocker

type MockLocker_GetLock_OngoingVerification

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

func (*MockLocker_GetLock_OngoingVerification) GetAllCapturedArguments

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

func (*MockLocker_GetLock_OngoingVerification) GetCapturedArguments

func (c *MockLocker_GetLock_OngoingVerification) GetCapturedArguments() string

type MockLocker_List_OngoingVerification

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

func (*MockLocker_List_OngoingVerification) GetAllCapturedArguments

func (c *MockLocker_List_OngoingVerification) GetAllCapturedArguments()

func (*MockLocker_List_OngoingVerification) GetCapturedArguments

func (c *MockLocker_List_OngoingVerification) GetCapturedArguments()

type MockLocker_TryLock_OngoingVerification

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

func (*MockLocker_TryLock_OngoingVerification) GetAllCapturedArguments

func (c *MockLocker_TryLock_OngoingVerification) GetAllCapturedArguments() (_param0 []models.Project, _param1 []string, _param2 []models.PullRequest, _param3 []models.User)

func (*MockLocker_TryLock_OngoingVerification) GetCapturedArguments

type MockLocker_UnlockByPull_OngoingVerification

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

func (*MockLocker_UnlockByPull_OngoingVerification) GetAllCapturedArguments

func (c *MockLocker_UnlockByPull_OngoingVerification) GetAllCapturedArguments() (_param0 []string, _param1 []int)

func (*MockLocker_UnlockByPull_OngoingVerification) GetCapturedArguments

func (c *MockLocker_UnlockByPull_OngoingVerification) GetCapturedArguments() (string, int)

type MockLocker_Unlock_OngoingVerification

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

func (*MockLocker_Unlock_OngoingVerification) GetAllCapturedArguments

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

func (*MockLocker_Unlock_OngoingVerification) GetCapturedArguments

func (c *MockLocker_Unlock_OngoingVerification) GetCapturedArguments() string

type VerifierMockApplyLockChecker

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

func (*VerifierMockApplyLockChecker) CheckApplyLock

type VerifierMockApplyLocker

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

func (*VerifierMockApplyLocker) CheckApplyLock

func (*VerifierMockApplyLocker) LockApply

func (*VerifierMockApplyLocker) UnlockApply

type VerifierMockLocker

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

func (*VerifierMockLocker) GetLock

func (*VerifierMockLocker) List

func (*VerifierMockLocker) TryLock

func (*VerifierMockLocker) Unlock

func (*VerifierMockLocker) UnlockByPull

func (verifier *VerifierMockLocker) UnlockByPull(repoFullName string, pullNum int) *MockLocker_UnlockByPull_OngoingVerification

Jump to

Keyboard shortcuts

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