db

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package db is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("not-found")
)

Functions

This section is empty.

Types

type CandlesticksSuite

type CandlesticksSuite struct {
	suite.Suite
	DB Port
}

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

func (m *MockPort) CreateCandlesticks(ctx context.Context, cs *candlestick.List) error

CreateCandlesticks mocks base method.

func (*MockPort) DeleteCandlesticks

func (m *MockPort) DeleteCandlesticks(ctx context.Context, cs *candlestick.List) error

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

func (m *MockPort) UpdateCandlesticks(ctx context.Context, cs *candlestick.List) error

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL