mocks

package
v0.0.0-...-3674750 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BHS

type BHS struct {
	mock.Mock
}

BHS is an autogenerated mock type for the BHS type

func NewBHS

func NewBHS(t interface {
	mock.TestingT
	Cleanup(func())
}) *BHS

NewBHS creates a new instance of BHS. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*BHS) IsStored

func (_m *BHS) IsStored(ctx context.Context, blockNum uint64) (bool, error)

IsStored provides a mock function with given fields: ctx, blockNum

func (*BHS) IsTrusted

func (_m *BHS) IsTrusted() bool

IsTrusted provides a mock function with given fields:

func (*BHS) Store

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

Store provides a mock function with given fields: ctx, blockNum

func (*BHS) StoreEarliest

func (_m *BHS) StoreEarliest(ctx context.Context) error

StoreEarliest provides a mock function with given fields: ctx

func (*BHS) StoreTrusted

func (_m *BHS) StoreTrusted(ctx context.Context, blockNums []uint64, blockhashes []common.Hash, recentBlock uint64, recentBlockhash common.Hash) error

StoreTrusted provides a mock function with given fields: ctx, blockNums, blockhashes, recentBlock, recentBlockhash

type Timer

type Timer struct {
	mock.Mock
}

Timer is an autogenerated mock type for the Timer type

func NewTimer

func NewTimer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Timer

NewTimer creates a new instance of Timer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Timer) After

func (_m *Timer) After(d time.Duration) <-chan time.Time

After provides a mock function with given fields: d

Jump to

Keyboard shortcuts

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