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 ¶
- type MockRepository
- type MockRepositoryMockRecorder
- type RepositoryGetByIDCall
- func (c *RepositoryGetByIDCall) Do(f func(context.Context, int64) (protocol.Protocol, error)) *RepositoryGetByIDCall
- func (c *RepositoryGetByIDCall) DoAndReturn(f func(context.Context, int64) (protocol.Protocol, error)) *RepositoryGetByIDCall
- func (c *RepositoryGetByIDCall) Return(response protocol.Protocol, err error) *RepositoryGetByIDCall
- type RepositoryGetCall
- func (c *RepositoryGetCall) Do(f func(context.Context, string, int64) (protocol.Protocol, error)) *RepositoryGetCall
- func (c *RepositoryGetCall) DoAndReturn(f func(context.Context, string, int64) (protocol.Protocol, error)) *RepositoryGetCall
- func (c *RepositoryGetCall) Return(arg0 protocol.Protocol, arg1 error) *RepositoryGetCall
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, hash, level any) *RepositoryGetCall
Get indicates an expected call of Get.
func (*MockRepositoryMockRecorder) GetByID ¶
func (mr *MockRepositoryMockRecorder) GetByID(ctx, id any) *RepositoryGetByIDCall
GetByID indicates an expected call of GetByID.
type RepositoryGetByIDCall ¶
RepositoryGetByIDCall wrap *gomock.Call
func (*RepositoryGetByIDCall) Do ¶
func (c *RepositoryGetByIDCall) Do(f func(context.Context, int64) (protocol.Protocol, error)) *RepositoryGetByIDCall
Do rewrite *gomock.Call.Do
func (*RepositoryGetByIDCall) DoAndReturn ¶
func (c *RepositoryGetByIDCall) DoAndReturn(f func(context.Context, int64) (protocol.Protocol, error)) *RepositoryGetByIDCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*RepositoryGetByIDCall) Return ¶
func (c *RepositoryGetByIDCall) Return(response protocol.Protocol, err error) *RepositoryGetByIDCall
Return rewrite *gomock.Call.Return
type RepositoryGetCall ¶
RepositoryGetCall wrap *gomock.Call
func (*RepositoryGetCall) Do ¶
func (c *RepositoryGetCall) Do(f func(context.Context, string, int64) (protocol.Protocol, error)) *RepositoryGetCall
Do rewrite *gomock.Call.Do
func (*RepositoryGetCall) DoAndReturn ¶
func (c *RepositoryGetCall) DoAndReturn(f func(context.Context, string, int64) (protocol.Protocol, error)) *RepositoryGetCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*RepositoryGetCall) Return ¶
func (c *RepositoryGetCall) Return(arg0 protocol.Protocol, arg1 error) *RepositoryGetCall
Return rewrite *gomock.Call.Return