protocol

package
v0.0.0-...-3eec7cb Latest Latest
Warning

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

Go to latest
Published: Nov 13, 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/protocol/mock.go -package=protocol -typed

Package protocol 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, hash string, level int64) (protocol.Protocol, error)

Get mocks base method.

func (*MockRepository) GetByID

func (m *MockRepository) GetByID(ctx context.Context, id int64) (protocol.Protocol, error)

GetByID 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, hash, level any) *RepositoryGetCall

Get indicates an expected call of Get.

func (*MockRepositoryMockRecorder) GetByID

GetByID indicates an expected call of GetByID.

type RepositoryGetByIDCall

type RepositoryGetByIDCall struct {
	*gomock.Call
}

RepositoryGetByIDCall wrap *gomock.Call

func (*RepositoryGetByIDCall) Do

Do rewrite *gomock.Call.Do

func (*RepositoryGetByIDCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*RepositoryGetByIDCall) Return

Return rewrite *gomock.Call.Return

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

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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