Documentation
¶
Overview ¶
Package mock_repository is a generated GoMock package.
Index ¶
- type ExecuteKey
- type MockInterface
- func (m *MockInterface) ConvertToCommonErr(arg0 error) error
- func (m *MockInterface) CreateReservation(arg0 context.Context, arg1 *dto.NumberDateStateProducts) error
- func (m *MockInterface) CreateSoldRecord(arg0 context.Context, arg1 *dto.ArticlePriceAmountDate) error
- func (m *MockInterface) CreateStock(arg0 context.Context, arg1 *dto.ArticlePriceNameAmount) error
- func (m *MockInterface) DeleteReservation(arg0 context.Context, arg1 *dto.Number) error
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) ReadReservation(arg0 context.Context, arg1 *dto.Number) (dto.NumberDateStateProducts, error)
- func (m *MockInterface) ReadSoldAmount(arg0 context.Context, arg1 *dto.Article) (uint, error)
- func (m *MockInterface) ReadSoldAmountInPeriod(arg0 context.Context, arg1 *dto.ArticleFromTo) (uint, error)
- func (m *MockInterface) ReadSoldRecords(arg0 context.Context, arg1 *dto.Article) ([]dto.ArticlePriceAmountDate, error)
- func (m *MockInterface) ReadSoldRecordsInPeriod(arg0 context.Context, arg1 *dto.ArticleFromTo) ([]dto.ArticlePriceAmountDate, error)
- func (m *MockInterface) ReadStock(arg0 context.Context, arg1 *dto.Article) (dto.ArticlePriceNameAmount, error)
- func (m *MockInterface) ReadStockAmount(arg0 context.Context, arg1 *dto.Article) (uint, error)
- func (m *MockInterface) ReadStockPrice(arg0 context.Context, arg1 *dto.Article) (float64, error)
- func (m *MockInterface) UpdateReservation(arg0 context.Context, arg1 *dto.NumberDateStateProducts) error
- func (m *MockInterface) UpdateStock(arg0 context.Context, arg1 *dto.ArticlePriceNameAmount) error
- func (m *MockInterface) UpdateStockAmount(arg0 context.Context, arg1 *dto.ArticleAmount) error
- func (m *MockInterface) UpdateStockPrice(arg0 context.Context, arg1 *dto.ArticlePrice) error
- func (m *MockInterface) WithinTransaction(arg0 context.Context, arg1 func(context.Context) error) error
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) ConvertToCommonErr(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) CreateReservation(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) CreateSoldRecord(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) CreateStock(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) DeleteReservation(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) ReadReservation(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) ReadSoldAmount(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) ReadSoldAmountInPeriod(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) ReadSoldRecords(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) ReadSoldRecordsInPeriod(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) ReadStock(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) ReadStockAmount(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) ReadStockPrice(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) UpdateReservation(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) UpdateStock(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) UpdateStockAmount(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) UpdateStockPrice(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) WithinTransaction(arg0, arg1 interface{}) *gomock.Call
- type MockSQLDBInterface
- type MockSQLDBInterfaceMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecuteKey ¶
type ExecuteKey struct{}
ключ для указания в контексте необходимости выполнения передаваемой функции, а не имитации её вызова
type MockInterface ¶
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of Interface interface.
func NewMockInterface ¶
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance.
func (*MockInterface) ConvertToCommonErr ¶
func (m *MockInterface) ConvertToCommonErr(arg0 error) error
ConvertToCommonErr mocks base method.
func (*MockInterface) CreateReservation ¶
func (m *MockInterface) CreateReservation(arg0 context.Context, arg1 *dto.NumberDateStateProducts) error
CreateReservation mocks base method.
func (*MockInterface) CreateSoldRecord ¶
func (m *MockInterface) CreateSoldRecord(arg0 context.Context, arg1 *dto.ArticlePriceAmountDate) error
CreateSoldRecord mocks base method.
func (*MockInterface) CreateStock ¶
func (m *MockInterface) CreateStock(arg0 context.Context, arg1 *dto.ArticlePriceNameAmount) error
CreateStock mocks base method.
func (*MockInterface) DeleteReservation ¶
DeleteReservation mocks base method.
func (*MockInterface) EXPECT ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInterface) ReadReservation ¶
func (m *MockInterface) ReadReservation(arg0 context.Context, arg1 *dto.Number) (dto.NumberDateStateProducts, error)
ReadReservation mocks base method.
func (*MockInterface) ReadSoldAmount ¶
ReadSoldAmount mocks base method.
func (*MockInterface) ReadSoldAmountInPeriod ¶
func (m *MockInterface) ReadSoldAmountInPeriod(arg0 context.Context, arg1 *dto.ArticleFromTo) (uint, error)
ReadSoldAmountInPeriod mocks base method.
func (*MockInterface) ReadSoldRecords ¶
func (m *MockInterface) ReadSoldRecords(arg0 context.Context, arg1 *dto.Article) ([]dto.ArticlePriceAmountDate, error)
ReadSoldRecords mocks base method.
func (*MockInterface) ReadSoldRecordsInPeriod ¶
func (m *MockInterface) ReadSoldRecordsInPeriod(arg0 context.Context, arg1 *dto.ArticleFromTo) ([]dto.ArticlePriceAmountDate, error)
ReadSoldRecordsInPeriod mocks base method.
func (*MockInterface) ReadStock ¶
func (m *MockInterface) ReadStock(arg0 context.Context, arg1 *dto.Article) (dto.ArticlePriceNameAmount, error)
ReadStock mocks base method.
func (*MockInterface) ReadStockAmount ¶
ReadStockAmount mocks base method.
func (*MockInterface) ReadStockPrice ¶
ReadStockPrice mocks base method.
func (*MockInterface) UpdateReservation ¶
func (m *MockInterface) UpdateReservation(arg0 context.Context, arg1 *dto.NumberDateStateProducts) error
UpdateReservation mocks base method.
func (*MockInterface) UpdateStock ¶
func (m *MockInterface) UpdateStock(arg0 context.Context, arg1 *dto.ArticlePriceNameAmount) error
UpdateStock mocks base method.
func (*MockInterface) UpdateStockAmount ¶
func (m *MockInterface) UpdateStockAmount(arg0 context.Context, arg1 *dto.ArticleAmount) error
UpdateStockAmount mocks base method.
func (*MockInterface) UpdateStockPrice ¶
func (m *MockInterface) UpdateStockPrice(arg0 context.Context, arg1 *dto.ArticlePrice) error
UpdateStockPrice mocks base method.
func (*MockInterface) WithinTransaction ¶
func (m *MockInterface) WithinTransaction(arg0 context.Context, arg1 func(context.Context) error) error
WithinTransaction mocks base method.
type MockInterfaceMockRecorder ¶
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface.
func (*MockInterfaceMockRecorder) ConvertToCommonErr ¶
func (mr *MockInterfaceMockRecorder) ConvertToCommonErr(arg0 interface{}) *gomock.Call
ConvertToCommonErr indicates an expected call of ConvertToCommonErr.
func (*MockInterfaceMockRecorder) CreateReservation ¶
func (mr *MockInterfaceMockRecorder) CreateReservation(arg0, arg1 interface{}) *gomock.Call
CreateReservation indicates an expected call of CreateReservation.
func (*MockInterfaceMockRecorder) CreateSoldRecord ¶
func (mr *MockInterfaceMockRecorder) CreateSoldRecord(arg0, arg1 interface{}) *gomock.Call
CreateSoldRecord indicates an expected call of CreateSoldRecord.
func (*MockInterfaceMockRecorder) CreateStock ¶
func (mr *MockInterfaceMockRecorder) CreateStock(arg0, arg1 interface{}) *gomock.Call
CreateStock indicates an expected call of CreateStock.
func (*MockInterfaceMockRecorder) DeleteReservation ¶
func (mr *MockInterfaceMockRecorder) DeleteReservation(arg0, arg1 interface{}) *gomock.Call
DeleteReservation indicates an expected call of DeleteReservation.
func (*MockInterfaceMockRecorder) ReadReservation ¶
func (mr *MockInterfaceMockRecorder) ReadReservation(arg0, arg1 interface{}) *gomock.Call
ReadReservation indicates an expected call of ReadReservation.
func (*MockInterfaceMockRecorder) ReadSoldAmount ¶
func (mr *MockInterfaceMockRecorder) ReadSoldAmount(arg0, arg1 interface{}) *gomock.Call
ReadSoldAmount indicates an expected call of ReadSoldAmount.
func (*MockInterfaceMockRecorder) ReadSoldAmountInPeriod ¶
func (mr *MockInterfaceMockRecorder) ReadSoldAmountInPeriod(arg0, arg1 interface{}) *gomock.Call
ReadSoldAmountInPeriod indicates an expected call of ReadSoldAmountInPeriod.
func (*MockInterfaceMockRecorder) ReadSoldRecords ¶
func (mr *MockInterfaceMockRecorder) ReadSoldRecords(arg0, arg1 interface{}) *gomock.Call
ReadSoldRecords indicates an expected call of ReadSoldRecords.
func (*MockInterfaceMockRecorder) ReadSoldRecordsInPeriod ¶
func (mr *MockInterfaceMockRecorder) ReadSoldRecordsInPeriod(arg0, arg1 interface{}) *gomock.Call
ReadSoldRecordsInPeriod indicates an expected call of ReadSoldRecordsInPeriod.
func (*MockInterfaceMockRecorder) ReadStock ¶
func (mr *MockInterfaceMockRecorder) ReadStock(arg0, arg1 interface{}) *gomock.Call
ReadStock indicates an expected call of ReadStock.
func (*MockInterfaceMockRecorder) ReadStockAmount ¶
func (mr *MockInterfaceMockRecorder) ReadStockAmount(arg0, arg1 interface{}) *gomock.Call
ReadStockAmount indicates an expected call of ReadStockAmount.
func (*MockInterfaceMockRecorder) ReadStockPrice ¶
func (mr *MockInterfaceMockRecorder) ReadStockPrice(arg0, arg1 interface{}) *gomock.Call
ReadStockPrice indicates an expected call of ReadStockPrice.
func (*MockInterfaceMockRecorder) UpdateReservation ¶
func (mr *MockInterfaceMockRecorder) UpdateReservation(arg0, arg1 interface{}) *gomock.Call
UpdateReservation indicates an expected call of UpdateReservation.
func (*MockInterfaceMockRecorder) UpdateStock ¶
func (mr *MockInterfaceMockRecorder) UpdateStock(arg0, arg1 interface{}) *gomock.Call
UpdateStock indicates an expected call of UpdateStock.
func (*MockInterfaceMockRecorder) UpdateStockAmount ¶
func (mr *MockInterfaceMockRecorder) UpdateStockAmount(arg0, arg1 interface{}) *gomock.Call
UpdateStockAmount indicates an expected call of UpdateStockAmount.
func (*MockInterfaceMockRecorder) UpdateStockPrice ¶
func (mr *MockInterfaceMockRecorder) UpdateStockPrice(arg0, arg1 interface{}) *gomock.Call
UpdateStockPrice indicates an expected call of UpdateStockPrice.
func (*MockInterfaceMockRecorder) WithinTransaction ¶
func (mr *MockInterfaceMockRecorder) WithinTransaction(arg0, arg1 interface{}) *gomock.Call
WithinTransaction indicates an expected call of WithinTransaction.
type MockSQLDBInterface ¶
type MockSQLDBInterface struct {
// contains filtered or unexported fields
}
MockSQLDBInterface is a mock of SQLDBInterface interface.
func NewMockSQLDBInterface ¶
func NewMockSQLDBInterface(ctrl *gomock.Controller) *MockSQLDBInterface
NewMockSQLDBInterface creates a new mock instance.
func (*MockSQLDBInterface) Close ¶
func (m *MockSQLDBInterface) Close() error
Close mocks base method.
func (*MockSQLDBInterface) EXPECT ¶
func (m *MockSQLDBInterface) EXPECT() *MockSQLDBInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockSQLDBInterfaceMockRecorder ¶
type MockSQLDBInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockSQLDBInterfaceMockRecorder is the mock recorder for MockSQLDBInterface.
func (*MockSQLDBInterfaceMockRecorder) Close ¶
func (mr *MockSQLDBInterfaceMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockSQLDBInterfaceMockRecorder) DB ¶
func (mr *MockSQLDBInterfaceMockRecorder) DB() *gomock.Call
DB indicates an expected call of DB.