Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: repository.go
Generated by this command:
mockgen -source=repository.go -destination=../mock/domains/mock.go -package=domains -typed
Package domains is a generated GoMock package.
Index ¶
- type MockRepository
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) Same(ctx context.Context, network string, c contract.Contract, limit, offset int, ...) ([]domains.Same, error)
- func (m *MockRepository) SameCount(ctx context.Context, c contract.Contract, availiableNetworks ...string) (int, error)
- type MockRepositoryMockRecorder
- type RepositorySameCall
- type RepositorySameCountCall
- func (c_2 *RepositorySameCountCall) Do(f func(context.Context, contract.Contract, ...string) (int, error)) *RepositorySameCountCall
- func (c_2 *RepositorySameCountCall) DoAndReturn(f func(context.Context, contract.Contract, ...string) (int, error)) *RepositorySameCountCall
- func (c_2 *RepositorySameCountCall) Return(arg0 int, arg1 error) *RepositorySameCountCall
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) Same ¶
func (mr *MockRepositoryMockRecorder) Same(ctx, network, c, limit, offset any, availiableNetworks ...any) *RepositorySameCall
Same indicates an expected call of Same.
func (*MockRepositoryMockRecorder) SameCount ¶
func (mr *MockRepositoryMockRecorder) SameCount(ctx, c any, availiableNetworks ...any) *RepositorySameCountCall
SameCount indicates an expected call of SameCount.
type RepositorySameCall ¶
RepositorySameCall wrap *gomock.Call
func (*RepositorySameCall) Do ¶
func (c_2 *RepositorySameCall) Do(f func(context.Context, string, contract.Contract, int, int, ...string) ([]domains.Same, error)) *RepositorySameCall
Do rewrite *gomock.Call.Do
func (*RepositorySameCall) DoAndReturn ¶
func (c_2 *RepositorySameCall) DoAndReturn(f func(context.Context, string, contract.Contract, int, int, ...string) ([]domains.Same, error)) *RepositorySameCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*RepositorySameCall) Return ¶
func (c_2 *RepositorySameCall) Return(arg0 []domains.Same, arg1 error) *RepositorySameCall
Return rewrite *gomock.Call.Return
type RepositorySameCountCall ¶
RepositorySameCountCall wrap *gomock.Call
func (*RepositorySameCountCall) Do ¶
func (c_2 *RepositorySameCountCall) Do(f func(context.Context, contract.Contract, ...string) (int, error)) *RepositorySameCountCall
Do rewrite *gomock.Call.Do
func (*RepositorySameCountCall) DoAndReturn ¶
func (c_2 *RepositorySameCountCall) DoAndReturn(f func(context.Context, contract.Contract, ...string) (int, error)) *RepositorySameCountCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*RepositorySameCountCall) Return ¶
func (c_2 *RepositorySameCountCall) Return(arg0 int, arg1 error) *RepositorySameCountCall
Return rewrite *gomock.Call.Return