db

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: AGPL-3.0 Imports: 7 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 ExchangesSuite

type ExchangesSuite struct {
	suite.Suite
	DB Port
}

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

func (m *MockPort) CreateExchanges(ctx context.Context, exchanges ...exchange.Exchange) error

CreateExchanges mocks base method.

func (*MockPort) DeleteExchanges

func (m *MockPort) DeleteExchanges(ctx context.Context, names ...string) error

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

func (m *MockPort) ReadExchanges(ctx context.Context, names ...string) ([]exchange.Exchange, error)

ReadExchanges mocks base method.

func (*MockPort) UpdateExchanges

func (m *MockPort) UpdateExchanges(ctx context.Context, exchanges ...exchange.Exchange) error

UpdateExchanges 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
}

Jump to

Keyboard shortcuts

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