mocks

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2019 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func (*Store) CountBlocks added in v0.11.0

func (_m *Store) CountBlocks(ctx context.Context) (uint64, error)

CountBlocks provides a mock function with given fields: ctx

func (*Store) Delete

func (_m *Store) Delete(ctx context.Context, from int64, to int64) error

Delete provides a mock function with given fields: ctx, from, to

func (*Store) FindBlockByHash

func (_m *Store) FindBlockByHash(ctx context.Context, hash []byte) (*model.Header, error)

FindBlockByHash provides a mock function with given fields: ctx, hash

func (*Store) FindBlockByNumber

func (_m *Store) FindBlockByNumber(ctx context.Context, blockNumber int64) (*model.Header, error)

FindBlockByNumber provides a mock function with given fields: ctx, blockNumber

func (*Store) FindLatestBlock

func (_m *Store) FindLatestBlock(ctx context.Context) (*model.Header, error)

FindLatestBlock provides a mock function with given fields: ctx

func (*Store) FindTd

func (_m *Store) FindTd(ctx context.Context, hash []byte) (*model.TotalDifficulty, error)

FindTd provides a mock function with given fields: ctx, hash

func (*Store) Insert

func (_m *Store) Insert(ctx context.Context, data *model.Header) error

Insert provides a mock function with given fields: ctx, data

func (*Store) InsertTd

func (_m *Store) InsertTd(ctx context.Context, data *model.TotalDifficulty) error

InsertTd provides a mock function with given fields: ctx, data

Jump to

Keyboard shortcuts

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