mocks

package
v1.1.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 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 Sequencer

type Sequencer struct {
	mock.Mock
}

Sequencer is an autogenerated mock type for the Sequencer type

func NewSequencer

func NewSequencer(t mockConstructorTestingTNewSequencer) *Sequencer

NewSequencer creates a new instance of Sequencer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Sequencer) EXPECT

func (_m *Sequencer) EXPECT() *Sequencer_Expecter

func (*Sequencer) Sequence

func (_m *Sequencer) Sequence(ctx context.Context, src *url.URL, dst *url.URL, num uint64) (*api.TransactionRecord, error)

Sequence provides a mock function with given fields: ctx, src, dst, num

type Sequencer_Expecter

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

func (*Sequencer_Expecter) Sequence

func (_e *Sequencer_Expecter) Sequence(ctx interface{}, src interface{}, dst interface{}, num interface{}) *Sequencer_Sequence_Call

Sequence is a helper method to define mock.On call

  • ctx context.Context
  • src *url.URL
  • dst *url.URL
  • num uint64

type Sequencer_Sequence_Call

type Sequencer_Sequence_Call struct {
	*mock.Call
}

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

func (*Sequencer_Sequence_Call) Return

func (*Sequencer_Sequence_Call) Run

func (_c *Sequencer_Sequence_Call) Run(run func(ctx context.Context, src *url.URL, dst *url.URL, num uint64)) *Sequencer_Sequence_Call

Jump to

Keyboard shortcuts

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