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

atomicmock

package
v1.16.19 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

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