atomicmock

package
v1.22.83 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0 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.

Documentation

Overview

Package atomicmock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SharedMemory

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

SharedMemory is a mock of SharedMemory interface.

func NewSharedMemory

func NewSharedMemory(ctrl *gomock.Controller) *SharedMemory

NewSharedMemory creates a new mock instance.

func (*SharedMemory) Apply

func (m *SharedMemory) Apply(requests map[ids.ID]*atomic.Requests, batches ...database.Batch) error

Apply mocks base method.

func (*SharedMemory) EXPECT

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

func (*SharedMemory) Get

func (m *SharedMemory) Get(peerChainID ids.ID, keys [][]byte) ([][]byte, error)

Get mocks base method.

func (*SharedMemory) Indexed

func (m *SharedMemory) Indexed(peerChainID ids.ID, traits [][]byte, startTrait, startKey []byte, limit int) ([][]byte, []byte, []byte, error)

Indexed mocks base method.

type SharedMemoryMockRecorder

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

SharedMemoryMockRecorder is the mock recorder for SharedMemory.

func (*SharedMemoryMockRecorder) Apply

func (mr *SharedMemoryMockRecorder) Apply(requests any, batches ...any) *gomock.Call

Apply indicates an expected call of Apply.

func (*SharedMemoryMockRecorder) Get

func (mr *SharedMemoryMockRecorder) Get(peerChainID, keys any) *gomock.Call

Get indicates an expected call of Get.

func (*SharedMemoryMockRecorder) Indexed

func (mr *SharedMemoryMockRecorder) Indexed(peerChainID, traits, startTrait, startKey, limit any) *gomock.Call

Indexed indicates an expected call of Indexed.

Jump to

Keyboard shortcuts

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