Documentation ¶
Overview ¶
Package db is a generated GoMock package.
Index ¶
- Variables
- type ExchangesSuite
- type MockPort
- func (m *MockPort) CreateExchanges(ctx context.Context, exchanges ...exchange.Exchange) error
- func (m *MockPort) DeleteExchanges(ctx context.Context, names ...string) error
- func (m *MockPort) EXPECT() *MockPortMockRecorder
- func (m *MockPort) ReadExchanges(ctx context.Context, names ...string) ([]exchange.Exchange, error)
- func (m *MockPort) UpdateExchanges(ctx context.Context, exchanges ...exchange.Exchange) error
- type MockPortMockRecorder
- func (mr *MockPortMockRecorder) CreateExchanges(ctx interface{}, exchanges ...interface{}) *gomock.Call
- func (mr *MockPortMockRecorder) DeleteExchanges(ctx interface{}, names ...interface{}) *gomock.Call
- func (mr *MockPortMockRecorder) ReadExchanges(ctx interface{}, names ...interface{}) *gomock.Call
- func (mr *MockPortMockRecorder) UpdateExchanges(ctx interface{}, exchanges ...interface{}) *gomock.Call
- type Port
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("not-found")
)
Functions ¶
This section is empty.
Types ¶
type ExchangesSuite ¶
func (*ExchangesSuite) TestCreateRead ¶
func (suite *ExchangesSuite) TestCreateRead()
func (*ExchangesSuite) TestCreateReadInexistant ¶
func (suite *ExchangesSuite) TestCreateReadInexistant()
func (*ExchangesSuite) TestDelete ¶
func (suite *ExchangesSuite) TestDelete()
func (*ExchangesSuite) TestReadAll ¶
func (suite *ExchangesSuite) TestReadAll()
func (*ExchangesSuite) TestUpdate ¶
func (suite *ExchangesSuite) TestUpdate()
type MockPort ¶
type MockPort struct {
// contains filtered or unexported fields
}
MockPort is a mock of Port interface.
func NewMockPort ¶
func NewMockPort(ctrl *gomock.Controller) *MockPort
NewMockPort creates a new mock instance.
func (*MockPort) CreateExchanges ¶
CreateExchanges mocks base method.
func (*MockPort) DeleteExchanges ¶
DeleteExchanges mocks base method.
func (*MockPort) EXPECT ¶
func (m *MockPort) EXPECT() *MockPortMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPort) ReadExchanges ¶
ReadExchanges mocks base method.
type MockPortMockRecorder ¶
type MockPortMockRecorder struct {
// contains filtered or unexported fields
}
MockPortMockRecorder is the mock recorder for MockPort.
func (*MockPortMockRecorder) CreateExchanges ¶
func (mr *MockPortMockRecorder) CreateExchanges(ctx interface{}, exchanges ...interface{}) *gomock.Call
CreateExchanges indicates an expected call of CreateExchanges.
func (*MockPortMockRecorder) DeleteExchanges ¶
func (mr *MockPortMockRecorder) DeleteExchanges(ctx interface{}, names ...interface{}) *gomock.Call
DeleteExchanges indicates an expected call of DeleteExchanges.
func (*MockPortMockRecorder) ReadExchanges ¶
func (mr *MockPortMockRecorder) ReadExchanges(ctx interface{}, names ...interface{}) *gomock.Call
ReadExchanges indicates an expected call of ReadExchanges.
func (*MockPortMockRecorder) UpdateExchanges ¶
func (mr *MockPortMockRecorder) UpdateExchanges(ctx interface{}, exchanges ...interface{}) *gomock.Call
UpdateExchanges indicates an expected call of UpdateExchanges.
type Port ¶
type Port interface { CreateExchanges(ctx context.Context, exchanges ...exchange.Exchange) error ReadExchanges(ctx context.Context, names ...string) ([]exchange.Exchange, error) UpdateExchanges(ctx context.Context, exchanges ...exchange.Exchange) error DeleteExchanges(ctx context.Context, names ...string) error }
Click to show internal directories.
Click to hide internal directories.