mockethereum

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Subscription

type Subscription struct {
	mock.Mock
}

Subscription is an autogenerated mock type for the Subscription type

func NewSubscription

func NewSubscription(t interface {
	mock.TestingT
	Cleanup(func())
}) *Subscription

NewSubscription creates a new instance of Subscription. 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 (*Subscription) EXPECT

func (_m *Subscription) EXPECT() *Subscription_Expecter

func (*Subscription) Err

func (_m *Subscription) Err() <-chan error

Err provides a mock function with given fields:

func (*Subscription) Unsubscribe

func (_m *Subscription) Unsubscribe()

Unsubscribe provides a mock function with given fields:

type Subscription_Err_Call

type Subscription_Err_Call struct {
	*mock.Call
}

Subscription_Err_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Err'

func (*Subscription_Err_Call) Return

func (_c *Subscription_Err_Call) Return(_a0 <-chan error) *Subscription_Err_Call

func (*Subscription_Err_Call) Run

func (_c *Subscription_Err_Call) Run(run func()) *Subscription_Err_Call

func (*Subscription_Err_Call) RunAndReturn

func (_c *Subscription_Err_Call) RunAndReturn(run func() <-chan error) *Subscription_Err_Call

type Subscription_Expecter

type Subscription_Expecter struct {
	// contains filtered or unexported fields
}

func (*Subscription_Expecter) Err

Err is a helper method to define mock.On call

func (*Subscription_Expecter) Unsubscribe

Unsubscribe is a helper method to define mock.On call

type Subscription_Unsubscribe_Call

type Subscription_Unsubscribe_Call struct {
	*mock.Call
}

Subscription_Unsubscribe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unsubscribe'

func (*Subscription_Unsubscribe_Call) Return

func (*Subscription_Unsubscribe_Call) Run

func (*Subscription_Unsubscribe_Call) RunAndReturn

func (_c *Subscription_Unsubscribe_Call) RunAndReturn(run func()) *Subscription_Unsubscribe_Call

Jump to

Keyboard shortcuts

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