mock

package
v0.3.0-20261120180237-... Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Storage Mocks

Generated mocks for all extension/storage interfaces using gomock.

Mocks are checked in and generated by the mockgen CLI tool. Run make mocks to regenerate all mocks after modifying an interface.

Adding a new store interface

When a new store interface file is added to extension/storage/:

  1. Add a //go:generate directive to the new file:

    //go:generate mockgen -source=new_store.go -destination=mock/new_store_mock.go -package=mock
    
  2. Run make mocks to generate the mock file.

  3. Run make gazelle to update BUILD.bazel files.

  4. Commit the generated mock file.

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBatchDependentStore

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

MockBatchDependentStore is a mock of BatchDependentStore interface.

func NewMockBatchDependentStore

func NewMockBatchDependentStore(ctrl *gomock.Controller) *MockBatchDependentStore

NewMockBatchDependentStore creates a new mock instance.

func (*MockBatchDependentStore) Create

func (m *MockBatchDependentStore) Create(ctx context.Context, batchDependent entity.BatchDependent) error

Create mocks base method.

func (*MockBatchDependentStore) EXPECT

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

func (*MockBatchDependentStore) Get

Get mocks base method.

func (*MockBatchDependentStore) Update

func (m *MockBatchDependentStore) Update(ctx context.Context, batchDependent entity.BatchDependent, oldVersion, newVersion int32) error

Update mocks base method.

type MockBatchDependentStoreMockRecorder

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

MockBatchDependentStoreMockRecorder is the mock recorder for MockBatchDependentStore.

func (*MockBatchDependentStoreMockRecorder) Create

func (mr *MockBatchDependentStoreMockRecorder) Create(ctx, batchDependent any) *gomock.Call

Create indicates an expected call of Create.

func (*MockBatchDependentStoreMockRecorder) Get

func (mr *MockBatchDependentStoreMockRecorder) Get(ctx, batchID any) *gomock.Call

Get indicates an expected call of Get.

func (*MockBatchDependentStoreMockRecorder) Update

func (mr *MockBatchDependentStoreMockRecorder) Update(ctx, batchDependent, oldVersion, newVersion any) *gomock.Call

Update indicates an expected call of Update.

type MockBatchStore

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

MockBatchStore is a mock of BatchStore interface.

func NewMockBatchStore

func NewMockBatchStore(ctrl *gomock.Controller) *MockBatchStore

NewMockBatchStore creates a new mock instance.

func (*MockBatchStore) Create

func (m *MockBatchStore) Create(ctx context.Context, batch entity.Batch) error

Create mocks base method.

func (*MockBatchStore) EXPECT

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

func (*MockBatchStore) Get

func (m *MockBatchStore) Get(ctx context.Context, id string) (entity.Batch, error)

Get mocks base method.

func (*MockBatchStore) Update

func (m *MockBatchStore) Update(ctx context.Context, batch entity.Batch, oldVersion, newVersion int32) error

Update mocks base method.

type MockBatchStoreMockRecorder

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

MockBatchStoreMockRecorder is the mock recorder for MockBatchStore.

func (*MockBatchStoreMockRecorder) Create

func (mr *MockBatchStoreMockRecorder) Create(ctx, batch any) *gomock.Call

Create indicates an expected call of Create.

func (*MockBatchStoreMockRecorder) Get

func (mr *MockBatchStoreMockRecorder) Get(ctx, id any) *gomock.Call

Get indicates an expected call of Get.

func (*MockBatchStoreMockRecorder) Update

func (mr *MockBatchStoreMockRecorder) Update(ctx, batch, oldVersion, newVersion any) *gomock.Call

Update indicates an expected call of Update.

type MockBuildStore

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

MockBuildStore is a mock of BuildStore interface.

func NewMockBuildStore

func NewMockBuildStore(ctrl *gomock.Controller) *MockBuildStore

NewMockBuildStore creates a new mock instance.

func (*MockBuildStore) Create

func (m *MockBuildStore) Create(ctx context.Context, build entity.Build) error

Create mocks base method.

func (*MockBuildStore) EXPECT

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

func (*MockBuildStore) Get

func (m *MockBuildStore) Get(ctx context.Context, id string) (entity.Build, error)

Get mocks base method.

func (*MockBuildStore) Update

func (m *MockBuildStore) Update(ctx context.Context, build entity.Build) error

Update mocks base method.

type MockBuildStoreMockRecorder

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

MockBuildStoreMockRecorder is the mock recorder for MockBuildStore.

func (*MockBuildStoreMockRecorder) Create

func (mr *MockBuildStoreMockRecorder) Create(ctx, build any) *gomock.Call

Create indicates an expected call of Create.

func (*MockBuildStoreMockRecorder) Get

func (mr *MockBuildStoreMockRecorder) Get(ctx, id any) *gomock.Call

Get indicates an expected call of Get.

func (*MockBuildStoreMockRecorder) Update

func (mr *MockBuildStoreMockRecorder) Update(ctx, build any) *gomock.Call

Update indicates an expected call of Update.

type MockChangeStore

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

MockChangeStore is a mock of ChangeStore interface.

func NewMockChangeStore

func NewMockChangeStore(ctrl *gomock.Controller) *MockChangeStore

NewMockChangeStore creates a new mock instance.

func (*MockChangeStore) Create

func (m *MockChangeStore) Create(ctx context.Context, record entity.ChangeRecord) error

Create mocks base method.

func (*MockChangeStore) EXPECT

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

func (*MockChangeStore) GetByURI

func (m *MockChangeStore) GetByURI(ctx context.Context, uri string) ([]entity.ChangeRecord, error)

GetByURI mocks base method.

type MockChangeStoreMockRecorder

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

MockChangeStoreMockRecorder is the mock recorder for MockChangeStore.

func (*MockChangeStoreMockRecorder) Create

func (mr *MockChangeStoreMockRecorder) Create(ctx, record any) *gomock.Call

Create indicates an expected call of Create.

func (*MockChangeStoreMockRecorder) GetByURI

func (mr *MockChangeStoreMockRecorder) GetByURI(ctx, uri any) *gomock.Call

GetByURI indicates an expected call of GetByURI.

type MockPathBuildStore

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

MockPathBuildStore is a mock of PathBuildStore interface.

func NewMockPathBuildStore

func NewMockPathBuildStore(ctrl *gomock.Controller) *MockPathBuildStore

NewMockPathBuildStore creates a new mock instance.

func (*MockPathBuildStore) Create

func (m *MockPathBuildStore) Create(ctx context.Context, pathBuild entity.PathBuild) error

Create mocks base method.

func (*MockPathBuildStore) EXPECT

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

func (*MockPathBuildStore) Get

func (m *MockPathBuildStore) Get(ctx context.Context, pathID string, attempt int) (entity.PathBuild, error)

Get mocks base method.

type MockPathBuildStoreMockRecorder

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

MockPathBuildStoreMockRecorder is the mock recorder for MockPathBuildStore.

func (*MockPathBuildStoreMockRecorder) Create

func (mr *MockPathBuildStoreMockRecorder) Create(ctx, pathBuild any) *gomock.Call

Create indicates an expected call of Create.

func (*MockPathBuildStoreMockRecorder) Get

func (mr *MockPathBuildStoreMockRecorder) Get(ctx, pathID, attempt any) *gomock.Call

Get indicates an expected call of Get.

type MockQueueBatchStateStore

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

MockQueueBatchStateStore is a mock of QueueBatchStateStore interface.

func NewMockQueueBatchStateStore

func NewMockQueueBatchStateStore(ctrl *gomock.Controller) *MockQueueBatchStateStore

NewMockQueueBatchStateStore creates a new mock instance.

func (*MockQueueBatchStateStore) Delete

func (m *MockQueueBatchStateStore) Delete(ctx context.Context, state entity.BatchState, batchID string) error

Delete mocks base method.

func (*MockQueueBatchStateStore) EXPECT

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

func (*MockQueueBatchStateStore) List

List mocks base method.

func (*MockQueueBatchStateStore) Put

Put mocks base method.

type MockQueueBatchStateStoreMockRecorder

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

MockQueueBatchStateStoreMockRecorder is the mock recorder for MockQueueBatchStateStore.

func (*MockQueueBatchStateStoreMockRecorder) Delete

func (mr *MockQueueBatchStateStoreMockRecorder) Delete(ctx, state, batchID any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockQueueBatchStateStoreMockRecorder) List

func (mr *MockQueueBatchStateStoreMockRecorder) List(ctx, state any) *gomock.Call

List indicates an expected call of List.

func (*MockQueueBatchStateStoreMockRecorder) Put

func (mr *MockQueueBatchStateStoreMockRecorder) Put(ctx, record any) *gomock.Call

Put indicates an expected call of Put.

type MockRequestBatchStore

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

MockRequestBatchStore is a mock of RequestBatchStore interface.

func NewMockRequestBatchStore

func NewMockRequestBatchStore(ctrl *gomock.Controller) *MockRequestBatchStore

NewMockRequestBatchStore creates a new mock instance.

func (*MockRequestBatchStore) Create

func (m *MockRequestBatchStore) Create(ctx context.Context, association entity.RequestBatch) error

Create mocks base method.

func (*MockRequestBatchStore) EXPECT

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

func (*MockRequestBatchStore) GetByRequestID

func (m *MockRequestBatchStore) GetByRequestID(ctx context.Context, requestID string) ([]entity.RequestBatch, error)

GetByRequestID mocks base method.

type MockRequestBatchStoreMockRecorder

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

MockRequestBatchStoreMockRecorder is the mock recorder for MockRequestBatchStore.

func (*MockRequestBatchStoreMockRecorder) Create

func (mr *MockRequestBatchStoreMockRecorder) Create(ctx, association any) *gomock.Call

Create indicates an expected call of Create.

func (*MockRequestBatchStoreMockRecorder) GetByRequestID

func (mr *MockRequestBatchStoreMockRecorder) GetByRequestID(ctx, requestID any) *gomock.Call

GetByRequestID indicates an expected call of GetByRequestID.

type MockRequestLogStore

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

MockRequestLogStore is a mock of RequestLogStore interface.

func NewMockRequestLogStore

func NewMockRequestLogStore(ctrl *gomock.Controller) *MockRequestLogStore

NewMockRequestLogStore creates a new mock instance.

func (*MockRequestLogStore) EXPECT

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

func (*MockRequestLogStore) Insert

Insert mocks base method.

func (*MockRequestLogStore) List

func (m *MockRequestLogStore) List(ctx context.Context, requestID string) ([]entity.RequestLog, error)

List mocks base method.

type MockRequestLogStoreMockRecorder

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

MockRequestLogStoreMockRecorder is the mock recorder for MockRequestLogStore.

func (*MockRequestLogStoreMockRecorder) Insert

func (mr *MockRequestLogStoreMockRecorder) Insert(ctx, log any) *gomock.Call

Insert indicates an expected call of Insert.

func (*MockRequestLogStoreMockRecorder) List

func (mr *MockRequestLogStoreMockRecorder) List(ctx, requestID any) *gomock.Call

List indicates an expected call of List.

type MockRequestReceiptStore

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

MockRequestReceiptStore is a mock of RequestReceiptStore interface.

func NewMockRequestReceiptStore

func NewMockRequestReceiptStore(ctrl *gomock.Controller) *MockRequestReceiptStore

NewMockRequestReceiptStore creates a new mock instance.

func (*MockRequestReceiptStore) Create

Create mocks base method.

func (*MockRequestReceiptStore) EXPECT

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

func (*MockRequestReceiptStore) List

List mocks base method.

type MockRequestReceiptStoreMockRecorder

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

MockRequestReceiptStoreMockRecorder is the mock recorder for MockRequestReceiptStore.

func (*MockRequestReceiptStoreMockRecorder) Create

func (mr *MockRequestReceiptStoreMockRecorder) Create(ctx, receipt any) *gomock.Call

Create indicates an expected call of Create.

func (*MockRequestReceiptStoreMockRecorder) List

func (mr *MockRequestReceiptStoreMockRecorder) List(ctx, bounds any) *gomock.Call

List indicates an expected call of List.

type MockRequestStore

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

MockRequestStore is a mock of RequestStore interface.

func NewMockRequestStore

func NewMockRequestStore(ctrl *gomock.Controller) *MockRequestStore

NewMockRequestStore creates a new mock instance.

func (*MockRequestStore) Create

func (m *MockRequestStore) Create(ctx context.Context, request entity.Request) error

Create mocks base method.

func (*MockRequestStore) EXPECT

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

func (*MockRequestStore) Get

Get mocks base method.

func (*MockRequestStore) Update

func (m *MockRequestStore) Update(ctx context.Context, request entity.Request, oldVersion, newVersion int32) error

Update mocks base method.

type MockRequestStoreMockRecorder

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

MockRequestStoreMockRecorder is the mock recorder for MockRequestStore.

func (*MockRequestStoreMockRecorder) Create

func (mr *MockRequestStoreMockRecorder) Create(ctx, request any) *gomock.Call

Create indicates an expected call of Create.

func (*MockRequestStoreMockRecorder) Get

func (mr *MockRequestStoreMockRecorder) Get(ctx, id any) *gomock.Call

Get indicates an expected call of Get.

func (*MockRequestStoreMockRecorder) Update

func (mr *MockRequestStoreMockRecorder) Update(ctx, request, oldVersion, newVersion any) *gomock.Call

Update indicates an expected call of Update.

type MockRequestSummaryStore

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

MockRequestSummaryStore is a mock of RequestSummaryStore interface.

func NewMockRequestSummaryStore

func NewMockRequestSummaryStore(ctrl *gomock.Controller) *MockRequestSummaryStore

NewMockRequestSummaryStore creates a new mock instance.

func (*MockRequestSummaryStore) Create

Create mocks base method.

func (*MockRequestSummaryStore) EXPECT

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

func (*MockRequestSummaryStore) Get

Get mocks base method.

func (*MockRequestSummaryStore) Update

func (m *MockRequestSummaryStore) Update(ctx context.Context, summary entity.RequestSummary, oldVersion, newVersion int32) error

Update mocks base method.

type MockRequestSummaryStoreMockRecorder

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

MockRequestSummaryStoreMockRecorder is the mock recorder for MockRequestSummaryStore.

func (*MockRequestSummaryStoreMockRecorder) Create

func (mr *MockRequestSummaryStoreMockRecorder) Create(ctx, summary any) *gomock.Call

Create indicates an expected call of Create.

func (*MockRequestSummaryStoreMockRecorder) Get

func (mr *MockRequestSummaryStoreMockRecorder) Get(ctx, requestID any) *gomock.Call

Get indicates an expected call of Get.

func (*MockRequestSummaryStoreMockRecorder) Update

func (mr *MockRequestSummaryStoreMockRecorder) Update(ctx, summary, oldVersion, newVersion any) *gomock.Call

Update indicates an expected call of Update.

type MockRequestURIStore

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

MockRequestURIStore is a mock of RequestURIStore interface.

func NewMockRequestURIStore

func NewMockRequestURIStore(ctrl *gomock.Controller) *MockRequestURIStore

NewMockRequestURIStore creates a new mock instance.

func (*MockRequestURIStore) Create

func (m *MockRequestURIStore) Create(ctx context.Context, mapping entity.RequestURI) error

Create mocks base method.

func (*MockRequestURIStore) EXPECT

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

func (*MockRequestURIStore) ListByURI

func (m *MockRequestURIStore) ListByURI(ctx context.Context, changeURI string, limit int) ([]entity.RequestURI, error)

ListByURI mocks base method.

type MockRequestURIStoreMockRecorder

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

MockRequestURIStoreMockRecorder is the mock recorder for MockRequestURIStore.

func (*MockRequestURIStoreMockRecorder) Create

func (mr *MockRequestURIStoreMockRecorder) Create(ctx, mapping any) *gomock.Call

Create indicates an expected call of Create.

func (*MockRequestURIStoreMockRecorder) ListByURI

func (mr *MockRequestURIStoreMockRecorder) ListByURI(ctx, changeURI, limit any) *gomock.Call

ListByURI indicates an expected call of ListByURI.

type MockSpeculationPathSetStore

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

MockSpeculationPathSetStore is a mock of SpeculationPathSetStore interface.

func NewMockSpeculationPathSetStore

func NewMockSpeculationPathSetStore(ctrl *gomock.Controller) *MockSpeculationPathSetStore

NewMockSpeculationPathSetStore creates a new mock instance.

func (*MockSpeculationPathSetStore) Create

Create mocks base method.

func (*MockSpeculationPathSetStore) EXPECT

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

func (*MockSpeculationPathSetStore) Get

Get mocks base method.

func (*MockSpeculationPathSetStore) Update

func (m *MockSpeculationPathSetStore) Update(ctx context.Context, set entity.SpeculationPathSet, oldVersion, newVersion int32) error

Update mocks base method.

type MockSpeculationPathSetStoreMockRecorder

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

MockSpeculationPathSetStoreMockRecorder is the mock recorder for MockSpeculationPathSetStore.

func (*MockSpeculationPathSetStoreMockRecorder) Create

Create indicates an expected call of Create.

func (*MockSpeculationPathSetStoreMockRecorder) Get

Get indicates an expected call of Get.

func (*MockSpeculationPathSetStoreMockRecorder) Update

func (mr *MockSpeculationPathSetStoreMockRecorder) Update(ctx, set, oldVersion, newVersion any) *gomock.Call

Update indicates an expected call of Update.

Jump to

Keyboard shortcuts

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