tests

package
v0.0.0-...-df1b72c Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoldPriceClientMock

type GoldPriceClientMock struct {
	mock.Mock
	services.GoldPriceClient
}

func (GoldPriceClientMock) Get

type RepositoryMock

type RepositoryMock struct {
	mock.Mock
	repository.Repository
}

func (*RepositoryMock) AllHoldings

func (r *RepositoryMock) AllHoldings() ([]repository.Holding, error)

func (*RepositoryMock) DeleteHolding

func (r *RepositoryMock) DeleteHolding(id int64) error

func (*RepositoryMock) GetHoldingByID

func (r *RepositoryMock) GetHoldingByID(id int) (*repository.Holding, error)

func (*RepositoryMock) InsertHolding

func (r *RepositoryMock) InsertHolding(h repository.Holding) (*repository.Holding, error)

func (*RepositoryMock) Migrate

func (r *RepositoryMock) Migrate() error

func (*RepositoryMock) UpdateHolding

func (r *RepositoryMock) UpdateHolding(id int64, updated repository.Holding) error

Jump to

Keyboard shortcuts

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