Documentation ¶
Overview ¶
Package db is a generated GoMock package.
Index ¶
- Variables
- type CandlesticksSuite
- func (suite *CandlesticksSuite) TestCreate()
- func (suite *CandlesticksSuite) TestCreateTwice()
- func (suite *CandlesticksSuite) TestDelete()
- func (suite *CandlesticksSuite) TestRead()
- func (suite *CandlesticksSuite) TestReadEmpty()
- func (suite *CandlesticksSuite) TestReadLimit()
- func (suite *CandlesticksSuite) TestUpdate()
- func (suite *CandlesticksSuite) TestUpdateInexistantTwice()
- type MockPort
- func (m *MockPort) CreateCandlesticks(ctx context.Context, cs *candlestick.List) error
- func (m *MockPort) DeleteCandlesticks(ctx context.Context, cs *candlestick.List) error
- func (m *MockPort) EXPECT() *MockPortMockRecorder
- func (m *MockPort) ReadCandlesticks(ctx context.Context, cs *candlestick.List, start, end time.Time, limit uint) error
- func (m *MockPort) UpdateCandlesticks(ctx context.Context, cs *candlestick.List) error
- type MockPortMockRecorder
- func (mr *MockPortMockRecorder) CreateCandlesticks(ctx, cs interface{}) *gomock.Call
- func (mr *MockPortMockRecorder) DeleteCandlesticks(ctx, cs interface{}) *gomock.Call
- func (mr *MockPortMockRecorder) ReadCandlesticks(ctx, cs, start, end, limit interface{}) *gomock.Call
- func (mr *MockPortMockRecorder) UpdateCandlesticks(ctx, cs interface{}) *gomock.Call
- type Port
Constants ¶
This section is empty.
Variables ¶
var (
ErrNotFound = errors.New("not-found")
)
Functions ¶
This section is empty.
Types ¶
type CandlesticksSuite ¶
func (*CandlesticksSuite) TestCreate ¶
func (suite *CandlesticksSuite) TestCreate()
func (*CandlesticksSuite) TestCreateTwice ¶
func (suite *CandlesticksSuite) TestCreateTwice()
func (*CandlesticksSuite) TestDelete ¶
func (suite *CandlesticksSuite) TestDelete()
func (*CandlesticksSuite) TestRead ¶
func (suite *CandlesticksSuite) TestRead()
func (*CandlesticksSuite) TestReadEmpty ¶
func (suite *CandlesticksSuite) TestReadEmpty()
func (*CandlesticksSuite) TestReadLimit ¶
func (suite *CandlesticksSuite) TestReadLimit()
func (*CandlesticksSuite) TestUpdate ¶
func (suite *CandlesticksSuite) TestUpdate()
func (*CandlesticksSuite) TestUpdateInexistantTwice ¶
func (suite *CandlesticksSuite) TestUpdateInexistantTwice()
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) CreateCandlesticks ¶
CreateCandlesticks mocks base method.
func (*MockPort) DeleteCandlesticks ¶
DeleteCandlesticks 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) ReadCandlesticks ¶
func (m *MockPort) ReadCandlesticks(ctx context.Context, cs *candlestick.List, start, end time.Time, limit uint) error
ReadCandlesticks mocks base method.
func (*MockPort) UpdateCandlesticks ¶
UpdateCandlesticks mocks base method.
type MockPortMockRecorder ¶
type MockPortMockRecorder struct {
// contains filtered or unexported fields
}
MockPortMockRecorder is the mock recorder for MockPort.
func (*MockPortMockRecorder) CreateCandlesticks ¶
func (mr *MockPortMockRecorder) CreateCandlesticks(ctx, cs interface{}) *gomock.Call
CreateCandlesticks indicates an expected call of CreateCandlesticks.
func (*MockPortMockRecorder) DeleteCandlesticks ¶
func (mr *MockPortMockRecorder) DeleteCandlesticks(ctx, cs interface{}) *gomock.Call
DeleteCandlesticks indicates an expected call of DeleteCandlesticks.
func (*MockPortMockRecorder) ReadCandlesticks ¶
func (mr *MockPortMockRecorder) ReadCandlesticks(ctx, cs, start, end, limit interface{}) *gomock.Call
ReadCandlesticks indicates an expected call of ReadCandlesticks.
func (*MockPortMockRecorder) UpdateCandlesticks ¶
func (mr *MockPortMockRecorder) UpdateCandlesticks(ctx, cs interface{}) *gomock.Call
UpdateCandlesticks indicates an expected call of UpdateCandlesticks.
type Port ¶
type Port interface { CreateCandlesticks(ctx context.Context, cs *candlestick.List) error ReadCandlesticks(ctx context.Context, cs *candlestick.List, start, end time.Time, limit uint) error UpdateCandlesticks(ctx context.Context, cs *candlestick.List) error DeleteCandlesticks(ctx context.Context, cs *candlestick.List) error }