block

package
v0.0.0-...-a9dd475 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: repository.go

Generated by this command:

mockgen -source=repository.go -destination=../mock/block/mock.go -package=block -typed

Package block is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRepository

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

MockRepository is a mock of Repository interface.

func NewMockRepository

func NewMockRepository(ctrl *gomock.Controller) *MockRepository

NewMockRepository creates a new mock instance.

func (*MockRepository) EXPECT

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

func (*MockRepository) Get

func (m *MockRepository) Get(ctx context.Context, level int64) (block.Block, error)

Get mocks base method.

func (*MockRepository) Last

func (m *MockRepository) Last(ctx context.Context) (block.Block, error)

Last mocks base method.

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository.

func (*MockRepositoryMockRecorder) Get

func (mr *MockRepositoryMockRecorder) Get(ctx, level any) *RepositoryGetCall

Get indicates an expected call of Get.

func (*MockRepositoryMockRecorder) Last

Last indicates an expected call of Last.

type RepositoryGetCall

type RepositoryGetCall struct {
	*gomock.Call
}

RepositoryGetCall wrap *gomock.Call

func (*RepositoryGetCall) Do

Do rewrite *gomock.Call.Do

func (*RepositoryGetCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*RepositoryGetCall) Return

func (c *RepositoryGetCall) Return(arg0 block.Block, arg1 error) *RepositoryGetCall

Return rewrite *gomock.Call.Return

type RepositoryLastCall

type RepositoryLastCall struct {
	*gomock.Call
}

RepositoryLastCall wrap *gomock.Call

func (*RepositoryLastCall) Do

Do rewrite *gomock.Call.Do

func (*RepositoryLastCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*RepositoryLastCall) Return

func (c *RepositoryLastCall) Return(arg0 block.Block, arg1 error) *RepositoryLastCall

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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