mocks

package
v0.36.5 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.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 EventSubscriber added in v0.12.0

type EventSubscriber struct {
	mock.Mock
}

EventSubscriber is an autogenerated mock type for the EventSubscriber type

func NewEventSubscriber added in v0.12.0

func NewEventSubscriber(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventSubscriber

NewEventSubscriber creates a new instance of EventSubscriber. 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 (*EventSubscriber) Subscribe added in v0.12.0

func (_m *EventSubscriber) Subscribe(ctx context.Context, height uint64) <-chan models.BlockEvents

Subscribe provides a mock function with given fields: ctx, height

Jump to

Keyboard shortcuts

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