mocks

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

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
}

MockApplyLockChecker is a mock of ApplyLockChecker interface.

func NewMockApplyLockChecker

func NewMockApplyLockChecker(ctrl *gomock.Controller) *MockApplyLockChecker

NewMockApplyLockChecker creates a new mock instance.

func (*MockApplyLockChecker) CheckApplyLock

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

CheckApplyLock mocks base method.

func (*MockApplyLockChecker) EXPECT added in v0.41.0

EXPECT returns an object that allows the caller to indicate expected use.

type MockApplyLockCheckerMockRecorder added in v0.41.0

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

MockApplyLockCheckerMockRecorder is the mock recorder for MockApplyLockChecker.

func (*MockApplyLockCheckerMockRecorder) CheckApplyLock added in v0.41.0

func (mr *MockApplyLockCheckerMockRecorder) CheckApplyLock() *gomock.Call

CheckApplyLock indicates an expected call of CheckApplyLock.

type MockApplyLocker

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

MockApplyLocker is a mock of ApplyLocker interface.

func NewMockApplyLocker

func NewMockApplyLocker(ctrl *gomock.Controller) *MockApplyLocker

NewMockApplyLocker creates a new mock instance.

func (*MockApplyLocker) CheckApplyLock

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

CheckApplyLock mocks base method.

func (*MockApplyLocker) EXPECT added in v0.41.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockApplyLocker) LockApply

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

LockApply mocks base method.

func (*MockApplyLocker) UnlockApply

func (m *MockApplyLocker) UnlockApply() error

UnlockApply mocks base method.

type MockApplyLockerMockRecorder added in v0.41.0

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

MockApplyLockerMockRecorder is the mock recorder for MockApplyLocker.

func (*MockApplyLockerMockRecorder) CheckApplyLock added in v0.41.0

func (mr *MockApplyLockerMockRecorder) CheckApplyLock() *gomock.Call

CheckApplyLock indicates an expected call of CheckApplyLock.

func (*MockApplyLockerMockRecorder) LockApply added in v0.41.0

func (mr *MockApplyLockerMockRecorder) LockApply() *gomock.Call

LockApply indicates an expected call of LockApply.

func (*MockApplyLockerMockRecorder) UnlockApply added in v0.41.0

func (mr *MockApplyLockerMockRecorder) UnlockApply() *gomock.Call

UnlockApply indicates an expected call of UnlockApply.

type MockLocker

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

MockLocker is a mock of Locker interface.

func NewMockLocker

func NewMockLocker(ctrl *gomock.Controller) *MockLocker

NewMockLocker creates a new mock instance.

func (*MockLocker) EXPECT added in v0.41.0

func (m *MockLocker) EXPECT() *MockLockerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockLocker) GetLock

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

GetLock mocks base method.

func (*MockLocker) List

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

List mocks base method.

func (*MockLocker) TryLock

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

TryLock mocks base method.

func (*MockLocker) Unlock

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

Unlock mocks base method.

func (*MockLocker) UnlockByPull

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

UnlockByPull mocks base method.

type MockLockerMockRecorder added in v0.41.0

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

MockLockerMockRecorder is the mock recorder for MockLocker.

func (*MockLockerMockRecorder) GetLock added in v0.41.0

func (mr *MockLockerMockRecorder) GetLock(key any) *gomock.Call

GetLock indicates an expected call of GetLock.

func (*MockLockerMockRecorder) List added in v0.41.0

func (mr *MockLockerMockRecorder) List() *gomock.Call

List indicates an expected call of List.

func (*MockLockerMockRecorder) TryLock added in v0.41.0

func (mr *MockLockerMockRecorder) TryLock(p, workspace, pull, user any) *gomock.Call

TryLock indicates an expected call of TryLock.

func (*MockLockerMockRecorder) Unlock added in v0.41.0

func (mr *MockLockerMockRecorder) Unlock(key any) *gomock.Call

Unlock indicates an expected call of Unlock.

func (*MockLockerMockRecorder) UnlockByPull added in v0.41.0

func (mr *MockLockerMockRecorder) UnlockByPull(repoFullName, pullNum any) *gomock.Call

UnlockByPull indicates an expected call of UnlockByPull.

Jump to

Keyboard shortcuts

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