mocks

package
v2.11.0-beta0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbigenContract

type AbigenContract struct {
	mock.Mock
}

AbigenContract is an autogenerated mock type for the AbigenContract type

func NewAbigenContract

func NewAbigenContract(t interface {
	mock.TestingT
	Cleanup(func())
}) *AbigenContract

NewAbigenContract creates a new instance of AbigenContract. 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 (*AbigenContract) Address

func (_m *AbigenContract) Address() common.Address

Address provides a mock function with given fields:

func (*AbigenContract) ParseLog

func (_m *AbigenContract) ParseLog(_a0 types.Log) (generated.AbigenLog, error)

ParseLog provides a mock function with given fields: _a0

type Broadcast

type Broadcast struct {
	mock.Mock
}

Broadcast is an autogenerated mock type for the Broadcast type

func NewBroadcast

func NewBroadcast(t interface {
	mock.TestingT
	Cleanup(func())
}) *Broadcast

NewBroadcast creates a new instance of Broadcast. 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 (*Broadcast) DecodedLog

func (_m *Broadcast) DecodedLog() interface{}

DecodedLog provides a mock function with given fields:

func (*Broadcast) EVMChainID

func (_m *Broadcast) EVMChainID() big.Int

EVMChainID provides a mock function with given fields:

func (*Broadcast) JobID

func (_m *Broadcast) JobID() int32

JobID provides a mock function with given fields:

func (*Broadcast) LatestBlockHash

func (_m *Broadcast) LatestBlockHash() common.Hash

LatestBlockHash provides a mock function with given fields:

func (*Broadcast) LatestBlockNumber

func (_m *Broadcast) LatestBlockNumber() uint64

LatestBlockNumber provides a mock function with given fields:

func (*Broadcast) RawLog

func (_m *Broadcast) RawLog() types.Log

RawLog provides a mock function with given fields:

func (*Broadcast) ReceiptsRoot

func (_m *Broadcast) ReceiptsRoot() common.Hash

ReceiptsRoot provides a mock function with given fields:

func (*Broadcast) StateRoot

func (_m *Broadcast) StateRoot() common.Hash

StateRoot provides a mock function with given fields:

func (*Broadcast) String

func (_m *Broadcast) String() string

String provides a mock function with given fields:

func (*Broadcast) TransactionsRoot

func (_m *Broadcast) TransactionsRoot() common.Hash

TransactionsRoot provides a mock function with given fields:

type Broadcaster

type Broadcaster struct {
	mock.Mock
}

Broadcaster is an autogenerated mock type for the Broadcaster type

func NewBroadcaster

func NewBroadcaster(t interface {
	mock.TestingT
	Cleanup(func())
}) *Broadcaster

NewBroadcaster creates a new instance of Broadcaster. 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 (*Broadcaster) AddDependents

func (_m *Broadcaster) AddDependents(n int)

AddDependents provides a mock function with given fields: n

func (*Broadcaster) AwaitDependents

func (_m *Broadcaster) AwaitDependents() <-chan struct{}

AwaitDependents provides a mock function with given fields:

func (*Broadcaster) Close

func (_m *Broadcaster) Close() error

Close provides a mock function with given fields:

func (*Broadcaster) DependentReady

func (_m *Broadcaster) DependentReady()

DependentReady provides a mock function with given fields:

func (*Broadcaster) HealthReport

func (_m *Broadcaster) HealthReport() map[string]error

HealthReport provides a mock function with given fields:

func (*Broadcaster) IsConnected

func (_m *Broadcaster) IsConnected() bool

IsConnected provides a mock function with given fields:

func (*Broadcaster) MarkConsumed

func (_m *Broadcaster) MarkConsumed(ctx context.Context, lb log.Broadcast) error

MarkConsumed provides a mock function with given fields: ctx, lb

func (*Broadcaster) MarkManyConsumed

func (_m *Broadcaster) MarkManyConsumed(ctx context.Context, lbs []log.Broadcast) error

MarkManyConsumed provides a mock function with given fields: ctx, lbs

func (*Broadcaster) Name

func (_m *Broadcaster) Name() string

Name provides a mock function with given fields:

func (*Broadcaster) OnNewLongestChain

func (_m *Broadcaster) OnNewLongestChain(ctx context.Context, head *types.Head)

OnNewLongestChain provides a mock function with given fields: ctx, head

func (*Broadcaster) Ready

func (_m *Broadcaster) Ready() error

Ready provides a mock function with given fields:

func (*Broadcaster) Register

func (_m *Broadcaster) Register(listener log.Listener, opts log.ListenerOpts) func()

Register provides a mock function with given fields: listener, opts

func (*Broadcaster) ReplayFromBlock

func (_m *Broadcaster) ReplayFromBlock(number int64, forceBroadcast bool)

ReplayFromBlock provides a mock function with given fields: number, forceBroadcast

func (*Broadcaster) Start

func (_m *Broadcaster) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

func (*Broadcaster) WasAlreadyConsumed

func (_m *Broadcaster) WasAlreadyConsumed(ctx context.Context, lb log.Broadcast) (bool, error)

WasAlreadyConsumed provides a mock function with given fields: ctx, lb

Jump to

Keyboard shortcuts

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