Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type InterfaceMocks
- type MockCustomerRepository
- func (m *MockCustomerRepository) Create(ctx context.Context, customer model.Customer) (int64, error)
- func (m *MockCustomerRepository) Delete(ctx context.Context, id int64) (bool, error)
- func (m *MockCustomerRepository) EXPECT() *MockCustomerRepositoryMockRecorder
- func (m *MockCustomerRepository) FindByEmail(ctx context.Context, email string) (*model.Customer, error)
- func (m *MockCustomerRepository) FindById(ctx context.Context, id int64) (*model.Customer, error)
- func (m *MockCustomerRepository) Update(ctx context.Context, customer model.Customer) (bool, error)
- type MockCustomerRepositoryMockRecorder
- func (mr *MockCustomerRepositoryMockRecorder) Create(ctx, customer interface{}) *gomock.Call
- func (mr *MockCustomerRepositoryMockRecorder) Delete(ctx, id interface{}) *gomock.Call
- func (mr *MockCustomerRepositoryMockRecorder) FindByEmail(ctx, email interface{}) *gomock.Call
- func (mr *MockCustomerRepositoryMockRecorder) FindById(ctx, id interface{}) *gomock.Call
- func (mr *MockCustomerRepositoryMockRecorder) Update(ctx, customer interface{}) *gomock.Call
- type MockLogger
- func (m *MockLogger) Debug(arg0 ...interface{})
- func (m *MockLogger) Debugf(arg0 string, arg1 ...interface{})
- func (m *MockLogger) EXPECT() *MockLoggerMockRecorder
- func (m *MockLogger) Error(arg0 ...interface{})
- func (m *MockLogger) Errorf(arg0 string, arg1 ...interface{})
- func (m *MockLogger) Fatal(arg0 ...interface{})
- func (m *MockLogger) Fatalf(arg0 string, arg1 ...interface{})
- func (m *MockLogger) Info(arg0 ...interface{})
- func (m *MockLogger) Infof(arg0 string, arg1 ...interface{})
- func (m *MockLogger) Panic(arg0 ...interface{})
- func (m *MockLogger) Panicf(arg0 string, arg1 ...interface{})
- func (m *MockLogger) Print(arg0 ...interface{})
- func (m *MockLogger) Printf(arg0 string, arg1 ...interface{})
- func (m *MockLogger) Warn(arg0 ...interface{})
- func (m *MockLogger) Warnf(arg0 string, arg1 ...interface{})
- func (m *MockLogger) WithFields(arg0 map[string]interface{}) model.Logger
- func (m *MockLogger) WithRequestId(arg0 context.Context) model.Logger
- type MockLoggerMockRecorder
- func (mr *MockLoggerMockRecorder) Debug(arg0 ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Debugf(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Error(arg0 ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Errorf(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Fatal(arg0 ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Fatalf(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Info(arg0 ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Infof(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Panic(arg0 ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Panicf(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Print(arg0 ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Printf(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Warn(arg0 ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Warnf(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) WithFields(arg0 interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) WithRequestId(arg0 interface{}) *gomock.Call
- type MockSellerRepository
- func (m *MockSellerRepository) Create(ctx context.Context, seller model.Seller) (int64, error)
- func (m *MockSellerRepository) Delete(ctx context.Context, id int64) (bool, error)
- func (m *MockSellerRepository) EXPECT() *MockSellerRepositoryMockRecorder
- func (m *MockSellerRepository) FindById(ctx context.Context, id int64) (*model.Seller, error)
- func (m *MockSellerRepository) FindByName(ctx context.Context, name string) (*model.Seller, error)
- func (m *MockSellerRepository) Update(ctx context.Context, seller model.Seller) (bool, error)
- type MockSellerRepositoryMockRecorder
- func (mr *MockSellerRepositoryMockRecorder) Create(ctx, seller interface{}) *gomock.Call
- func (mr *MockSellerRepositoryMockRecorder) Delete(ctx, id interface{}) *gomock.Call
- func (mr *MockSellerRepositoryMockRecorder) FindById(ctx, id interface{}) *gomock.Call
- func (mr *MockSellerRepositoryMockRecorder) FindByName(ctx, name interface{}) *gomock.Call
- func (mr *MockSellerRepositoryMockRecorder) Update(ctx, seller interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InterfaceMocks ¶
type InterfaceMocks struct { Logger *MockLogger CustomerRepo *MockCustomerRepository SellerRepo *MockSellerRepository }
func NewInterfaceMocks ¶
func NewInterfaceMocks(t *testing.T) *InterfaceMocks
NewInterfaceMocks create an *InterfaceMocks with their mocked interfaces initialized
type MockCustomerRepository ¶
type MockCustomerRepository struct {
// contains filtered or unexported fields
}
MockCustomerRepository is a mock of CustomerRepository interface.
func NewMockCustomerRepository ¶
func NewMockCustomerRepository(ctrl *gomock.Controller) *MockCustomerRepository
NewMockCustomerRepository creates a new mock instance.
func (*MockCustomerRepository) Create ¶
func (m *MockCustomerRepository) Create(ctx context.Context, customer model.Customer) (int64, error)
Create mocks base method.
func (*MockCustomerRepository) EXPECT ¶
func (m *MockCustomerRepository) EXPECT() *MockCustomerRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCustomerRepository) FindByEmail ¶
func (m *MockCustomerRepository) FindByEmail(ctx context.Context, email string) (*model.Customer, error)
FindByEmail mocks base method.
type MockCustomerRepositoryMockRecorder ¶
type MockCustomerRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockCustomerRepositoryMockRecorder is the mock recorder for MockCustomerRepository.
func (*MockCustomerRepositoryMockRecorder) Create ¶
func (mr *MockCustomerRepositoryMockRecorder) Create(ctx, customer interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockCustomerRepositoryMockRecorder) Delete ¶
func (mr *MockCustomerRepositoryMockRecorder) Delete(ctx, id interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockCustomerRepositoryMockRecorder) FindByEmail ¶
func (mr *MockCustomerRepositoryMockRecorder) FindByEmail(ctx, email interface{}) *gomock.Call
FindByEmail indicates an expected call of FindByEmail.
func (*MockCustomerRepositoryMockRecorder) FindById ¶
func (mr *MockCustomerRepositoryMockRecorder) FindById(ctx, id interface{}) *gomock.Call
FindById indicates an expected call of FindById.
func (*MockCustomerRepositoryMockRecorder) Update ¶
func (mr *MockCustomerRepositoryMockRecorder) Update(ctx, customer interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockLogger ¶
type MockLogger struct {
// contains filtered or unexported fields
}
MockLogger is a mock of Logger interface.
func NewMockLogger ¶
func NewMockLogger(ctrl *gomock.Controller) *MockLogger
NewMockLogger creates a new mock instance.
func (*MockLogger) Debugf ¶
func (m *MockLogger) Debugf(arg0 string, arg1 ...interface{})
Debugf mocks base method.
func (*MockLogger) EXPECT ¶
func (m *MockLogger) EXPECT() *MockLoggerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLogger) Errorf ¶
func (m *MockLogger) Errorf(arg0 string, arg1 ...interface{})
Errorf mocks base method.
func (*MockLogger) Fatalf ¶
func (m *MockLogger) Fatalf(arg0 string, arg1 ...interface{})
Fatalf mocks base method.
func (*MockLogger) Infof ¶
func (m *MockLogger) Infof(arg0 string, arg1 ...interface{})
Infof mocks base method.
func (*MockLogger) Panicf ¶
func (m *MockLogger) Panicf(arg0 string, arg1 ...interface{})
Panicf mocks base method.
func (*MockLogger) Printf ¶
func (m *MockLogger) Printf(arg0 string, arg1 ...interface{})
Printf mocks base method.
func (*MockLogger) Warnf ¶
func (m *MockLogger) Warnf(arg0 string, arg1 ...interface{})
Warnf mocks base method.
func (*MockLogger) WithFields ¶
func (m *MockLogger) WithFields(arg0 map[string]interface{}) model.Logger
WithFields mocks base method.
func (*MockLogger) WithRequestId ¶
func (m *MockLogger) WithRequestId(arg0 context.Context) model.Logger
WithRequestId mocks base method.
type MockLoggerMockRecorder ¶
type MockLoggerMockRecorder struct {
// contains filtered or unexported fields
}
MockLoggerMockRecorder is the mock recorder for MockLogger.
func (*MockLoggerMockRecorder) Debug ¶
func (mr *MockLoggerMockRecorder) Debug(arg0 ...interface{}) *gomock.Call
Debug indicates an expected call of Debug.
func (*MockLoggerMockRecorder) Debugf ¶
func (mr *MockLoggerMockRecorder) Debugf(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Debugf indicates an expected call of Debugf.
func (*MockLoggerMockRecorder) Error ¶
func (mr *MockLoggerMockRecorder) Error(arg0 ...interface{}) *gomock.Call
Error indicates an expected call of Error.
func (*MockLoggerMockRecorder) Errorf ¶
func (mr *MockLoggerMockRecorder) Errorf(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Errorf indicates an expected call of Errorf.
func (*MockLoggerMockRecorder) Fatal ¶
func (mr *MockLoggerMockRecorder) Fatal(arg0 ...interface{}) *gomock.Call
Fatal indicates an expected call of Fatal.
func (*MockLoggerMockRecorder) Fatalf ¶
func (mr *MockLoggerMockRecorder) Fatalf(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Fatalf indicates an expected call of Fatalf.
func (*MockLoggerMockRecorder) Info ¶
func (mr *MockLoggerMockRecorder) Info(arg0 ...interface{}) *gomock.Call
Info indicates an expected call of Info.
func (*MockLoggerMockRecorder) Infof ¶
func (mr *MockLoggerMockRecorder) Infof(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Infof indicates an expected call of Infof.
func (*MockLoggerMockRecorder) Panic ¶
func (mr *MockLoggerMockRecorder) Panic(arg0 ...interface{}) *gomock.Call
Panic indicates an expected call of Panic.
func (*MockLoggerMockRecorder) Panicf ¶
func (mr *MockLoggerMockRecorder) Panicf(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Panicf indicates an expected call of Panicf.
func (*MockLoggerMockRecorder) Print ¶
func (mr *MockLoggerMockRecorder) Print(arg0 ...interface{}) *gomock.Call
Print indicates an expected call of Print.
func (*MockLoggerMockRecorder) Printf ¶
func (mr *MockLoggerMockRecorder) Printf(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Printf indicates an expected call of Printf.
func (*MockLoggerMockRecorder) Warn ¶
func (mr *MockLoggerMockRecorder) Warn(arg0 ...interface{}) *gomock.Call
Warn indicates an expected call of Warn.
func (*MockLoggerMockRecorder) Warnf ¶
func (mr *MockLoggerMockRecorder) Warnf(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Warnf indicates an expected call of Warnf.
func (*MockLoggerMockRecorder) WithFields ¶
func (mr *MockLoggerMockRecorder) WithFields(arg0 interface{}) *gomock.Call
WithFields indicates an expected call of WithFields.
func (*MockLoggerMockRecorder) WithRequestId ¶
func (mr *MockLoggerMockRecorder) WithRequestId(arg0 interface{}) *gomock.Call
WithRequestId indicates an expected call of WithRequestId.
type MockSellerRepository ¶
type MockSellerRepository struct {
// contains filtered or unexported fields
}
MockSellerRepository is a mock of SellerRepository interface.
func NewMockSellerRepository ¶
func NewMockSellerRepository(ctrl *gomock.Controller) *MockSellerRepository
NewMockSellerRepository creates a new mock instance.
func (*MockSellerRepository) EXPECT ¶
func (m *MockSellerRepository) EXPECT() *MockSellerRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSellerRepository) FindByName ¶
FindByName mocks base method.
type MockSellerRepositoryMockRecorder ¶
type MockSellerRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockSellerRepositoryMockRecorder is the mock recorder for MockSellerRepository.
func (*MockSellerRepositoryMockRecorder) Create ¶
func (mr *MockSellerRepositoryMockRecorder) Create(ctx, seller interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockSellerRepositoryMockRecorder) Delete ¶
func (mr *MockSellerRepositoryMockRecorder) Delete(ctx, id interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockSellerRepositoryMockRecorder) FindById ¶
func (mr *MockSellerRepositoryMockRecorder) FindById(ctx, id interface{}) *gomock.Call
FindById indicates an expected call of FindById.
func (*MockSellerRepositoryMockRecorder) FindByName ¶
func (mr *MockSellerRepositoryMockRecorder) FindByName(ctx, name interface{}) *gomock.Call
FindByName indicates an expected call of FindByName.
func (*MockSellerRepositoryMockRecorder) Update ¶
func (mr *MockSellerRepositoryMockRecorder) Update(ctx, seller interface{}) *gomock.Call
Update indicates an expected call of Update.