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 ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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 ¶
func (mr *MockRepositoryMockRecorder) Last(ctx any) *RepositoryLastCall
Last indicates an expected call of Last.
type RepositoryGetCall ¶
RepositoryGetCall wrap *gomock.Call
func (*RepositoryGetCall) Do ¶
func (c *RepositoryGetCall) Do(f func(context.Context, int64) (block.Block, error)) *RepositoryGetCall
Do rewrite *gomock.Call.Do
func (*RepositoryGetCall) DoAndReturn ¶
func (c *RepositoryGetCall) DoAndReturn(f func(context.Context, int64) (block.Block, error)) *RepositoryGetCall
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 ¶
RepositoryLastCall wrap *gomock.Call
func (*RepositoryLastCall) Do ¶
func (c *RepositoryLastCall) Do(f func(context.Context) (block.Block, error)) *RepositoryLastCall
Do rewrite *gomock.Call.Do
func (*RepositoryLastCall) DoAndReturn ¶
func (c *RepositoryLastCall) DoAndReturn(f func(context.Context) (block.Block, error)) *RepositoryLastCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*RepositoryLastCall) Return ¶
func (c *RepositoryLastCall) Return(arg0 block.Block, arg1 error) *RepositoryLastCall
Return rewrite *gomock.Call.Return