mocks

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumerDB

type ConsumerDB struct {
	mock.Mock
}

ConsumerDB is an autogenerated mock type for the ConsumerDB type

func NewConsumerDB

func NewConsumerDB(t mockConstructorTestingTNewConsumerDB) *ConsumerDB

NewConsumerDB creates a new instance of ConsumerDB. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ConsumerDB) GetAddressRanking added in v0.0.15

func (_m *ConsumerDB) GetAddressRanking(ctx context.Context, query string) ([]*model.AddressRanking, error)

GetAddressRanking provides a mock function with given fields: ctx, query

func (*ConsumerDB) GetAllChainIDs added in v0.0.9

func (_m *ConsumerDB) GetAllChainIDs(ctx context.Context) ([]int, error)

GetAllChainIDs provides a mock function with given fields: ctx

func (*ConsumerDB) GetBridgeEvent added in v0.0.15

func (_m *ConsumerDB) GetBridgeEvent(ctx context.Context, query string) (*sql.BridgeEvent, error)

GetBridgeEvent provides a mock function with given fields: ctx, query

func (*ConsumerDB) GetDateResults added in v0.0.15

func (_m *ConsumerDB) GetDateResults(ctx context.Context, query string) ([]*model.DateResult, error)

GetDateResults provides a mock function with given fields: ctx, query

func (*ConsumerDB) GetFloat64 added in v0.0.15

func (_m *ConsumerDB) GetFloat64(ctx context.Context, query string) (float64, error)

GetFloat64 provides a mock function with given fields: ctx, query

func (*ConsumerDB) GetStringArray added in v0.0.15

func (_m *ConsumerDB) GetStringArray(ctx context.Context, query string) ([]string, error)

GetStringArray provides a mock function with given fields: ctx, query

func (*ConsumerDB) GetUint64 added in v0.0.15

func (_m *ConsumerDB) GetUint64(ctx context.Context, query string) (uint64, error)

GetUint64 provides a mock function with given fields: ctx, query

func (*ConsumerDB) PartialInfosFromIdentifiers added in v0.0.9

func (_m *ConsumerDB) PartialInfosFromIdentifiers(ctx context.Context, query string) ([]*model.PartialInfo, error)

PartialInfosFromIdentifiers provides a mock function with given fields: ctx, query

func (*ConsumerDB) StoreEvent

func (_m *ConsumerDB) StoreEvent(ctx context.Context, bridgeEvent *sql.BridgeEvent, swapEvent *sql.SwapEvent) error

StoreEvent provides a mock function with given fields: ctx, bridgeEvent, swapEvent

func (*ConsumerDB) StoreLastBlock added in v0.0.11

func (_m *ConsumerDB) StoreLastBlock(ctx context.Context, chainID uint32, blockNumber uint64) error

StoreLastBlock provides a mock function with given fields: ctx, chainID, blockNumber

func (*ConsumerDB) UNSAFE_DB added in v0.0.9

func (_m *ConsumerDB) UNSAFE_DB() *gorm.DB

UNSAFE_DB provides a mock function with given fields:

Jump to

Keyboard shortcuts

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