Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v0.48.2 Latest Latest
Warning

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

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

Documentation

Overview

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 MockDatabase

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

MockDatabase is a mock of Database interface.

func NewMockDatabase

func NewMockDatabase(ctrl *gomock.Controller) *MockDatabase

NewMockDatabase creates a new mock instance.

func (*MockDatabase) CheckCommandLock

func (m *MockDatabase) CheckCommandLock(cmdName command.Name) (*command.Lock, error)

CheckCommandLock mocks base method.

func (*MockDatabase) Close

func (m *MockDatabase) Close() error

Close mocks base method.

func (*MockDatabase) DeletePullStatus

func (m *MockDatabase) DeletePullStatus(pull models.PullRequest) error

DeletePullStatus mocks base method.

func (*MockDatabase) EXPECT added in v0.41.0

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

func (*MockDatabase) GetLock

func (m *MockDatabase) GetLock(project models.Project, workspace string) (*models.ProjectLock, error)

GetLock mocks base method.

func (*MockDatabase) GetPullStatus

func (m *MockDatabase) GetPullStatus(pull models.PullRequest) (*models.PullStatus, error)

GetPullStatus mocks base method.

func (*MockDatabase) List

func (m *MockDatabase) List() ([]models.ProjectLock, error)

List mocks base method.

func (*MockDatabase) LockCommand

func (m *MockDatabase) LockCommand(cmdName command.Name, lockTime time.Time) (*command.Lock, error)

LockCommand mocks base method.

func (*MockDatabase) Ping added in v0.44.0

func (m *MockDatabase) Ping() error

Ping mocks base method.

func (*MockDatabase) TryLock

TryLock mocks base method.

func (*MockDatabase) Unlock

func (m *MockDatabase) Unlock(project models.Project, workspace string) (*models.ProjectLock, error)

Unlock mocks base method.

func (*MockDatabase) UnlockByPull

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

UnlockByPull mocks base method.

func (*MockDatabase) UnlockCommand

func (m *MockDatabase) UnlockCommand(cmdName command.Name) error

UnlockCommand mocks base method.

func (*MockDatabase) UnlockIfOwnedByPull added in v0.46.0

func (m *MockDatabase) UnlockIfOwnedByPull(project models.Project, workspace string, pullNum int) (*models.ProjectLock, error)

UnlockIfOwnedByPull mocks base method.

func (*MockDatabase) UpdateProjectStatus

func (m *MockDatabase) UpdateProjectStatus(pull models.PullRequest, workspace, repoRelDir string, newStatus models.ProjectPlanStatus) error

UpdateProjectStatus mocks base method.

func (*MockDatabase) UpdatePullWithResults

func (m *MockDatabase) UpdatePullWithResults(pull models.PullRequest, newResults []command.ProjectResult) (models.PullStatus, error)

UpdatePullWithResults mocks base method.

type MockDatabaseMockRecorder added in v0.41.0

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

MockDatabaseMockRecorder is the mock recorder for MockDatabase.

func (*MockDatabaseMockRecorder) CheckCommandLock added in v0.41.0

func (mr *MockDatabaseMockRecorder) CheckCommandLock(cmdName any) *gomock.Call

CheckCommandLock indicates an expected call of CheckCommandLock.

func (*MockDatabaseMockRecorder) Close added in v0.41.0

func (mr *MockDatabaseMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockDatabaseMockRecorder) DeletePullStatus added in v0.41.0

func (mr *MockDatabaseMockRecorder) DeletePullStatus(pull any) *gomock.Call

DeletePullStatus indicates an expected call of DeletePullStatus.

func (*MockDatabaseMockRecorder) GetLock added in v0.41.0

func (mr *MockDatabaseMockRecorder) GetLock(project, workspace any) *gomock.Call

GetLock indicates an expected call of GetLock.

func (*MockDatabaseMockRecorder) GetPullStatus added in v0.41.0

func (mr *MockDatabaseMockRecorder) GetPullStatus(pull any) *gomock.Call

GetPullStatus indicates an expected call of GetPullStatus.

func (*MockDatabaseMockRecorder) List added in v0.41.0

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

List indicates an expected call of List.

func (*MockDatabaseMockRecorder) LockCommand added in v0.41.0

func (mr *MockDatabaseMockRecorder) LockCommand(cmdName, lockTime any) *gomock.Call

LockCommand indicates an expected call of LockCommand.

func (*MockDatabaseMockRecorder) Ping added in v0.44.0

func (mr *MockDatabaseMockRecorder) Ping() *gomock.Call

Ping indicates an expected call of Ping.

func (*MockDatabaseMockRecorder) TryLock added in v0.41.0

func (mr *MockDatabaseMockRecorder) TryLock(lock any) *gomock.Call

TryLock indicates an expected call of TryLock.

func (*MockDatabaseMockRecorder) Unlock added in v0.41.0

func (mr *MockDatabaseMockRecorder) Unlock(project, workspace any) *gomock.Call

Unlock indicates an expected call of Unlock.

func (*MockDatabaseMockRecorder) UnlockByPull added in v0.41.0

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

UnlockByPull indicates an expected call of UnlockByPull.

func (*MockDatabaseMockRecorder) UnlockCommand added in v0.41.0

func (mr *MockDatabaseMockRecorder) UnlockCommand(cmdName any) *gomock.Call

UnlockCommand indicates an expected call of UnlockCommand.

func (*MockDatabaseMockRecorder) UnlockIfOwnedByPull added in v0.46.0

func (mr *MockDatabaseMockRecorder) UnlockIfOwnedByPull(project, workspace, pullNum any) *gomock.Call

UnlockIfOwnedByPull indicates an expected call of UnlockIfOwnedByPull.

func (*MockDatabaseMockRecorder) UpdateProjectStatus added in v0.41.0

func (mr *MockDatabaseMockRecorder) UpdateProjectStatus(pull, workspace, repoRelDir, newStatus any) *gomock.Call

UpdateProjectStatus indicates an expected call of UpdateProjectStatus.

func (*MockDatabaseMockRecorder) UpdatePullWithResults added in v0.41.0

func (mr *MockDatabaseMockRecorder) UpdatePullWithResults(pull, newResults any) *gomock.Call

UpdatePullWithResults indicates an expected call of UpdatePullWithResults.

Jump to

Keyboard shortcuts

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