mocks

package
v2.15.0-beta0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 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) EXPECT added in v2.15.0

func (_m *BHS) EXPECT() *BHS_Expecter

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 BHS_Expecter added in v2.15.0

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

func (*BHS_Expecter) IsStored added in v2.15.0

func (_e *BHS_Expecter) IsStored(ctx interface{}, blockNum interface{}) *BHS_IsStored_Call

IsStored is a helper method to define mock.On call

  • ctx context.Context
  • blockNum uint64

func (*BHS_Expecter) IsTrusted added in v2.15.0

func (_e *BHS_Expecter) IsTrusted() *BHS_IsTrusted_Call

IsTrusted is a helper method to define mock.On call

func (*BHS_Expecter) Store added in v2.15.0

func (_e *BHS_Expecter) Store(ctx interface{}, blockNum interface{}) *BHS_Store_Call

Store is a helper method to define mock.On call

  • ctx context.Context
  • blockNum uint64

func (*BHS_Expecter) StoreEarliest added in v2.15.0

func (_e *BHS_Expecter) StoreEarliest(ctx interface{}) *BHS_StoreEarliest_Call

StoreEarliest is a helper method to define mock.On call

  • ctx context.Context

func (*BHS_Expecter) StoreTrusted added in v2.15.0

func (_e *BHS_Expecter) StoreTrusted(ctx interface{}, blockNums interface{}, blockhashes interface{}, recentBlock interface{}, recentBlockhash interface{}) *BHS_StoreTrusted_Call

StoreTrusted is a helper method to define mock.On call

  • ctx context.Context
  • blockNums []uint64
  • blockhashes []common.Hash
  • recentBlock uint64
  • recentBlockhash common.Hash

type BHS_IsStored_Call added in v2.15.0

type BHS_IsStored_Call struct {
	*mock.Call
}

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

func (*BHS_IsStored_Call) Return added in v2.15.0

func (_c *BHS_IsStored_Call) Return(_a0 bool, _a1 error) *BHS_IsStored_Call

func (*BHS_IsStored_Call) Run added in v2.15.0

func (_c *BHS_IsStored_Call) Run(run func(ctx context.Context, blockNum uint64)) *BHS_IsStored_Call

func (*BHS_IsStored_Call) RunAndReturn added in v2.15.0

func (_c *BHS_IsStored_Call) RunAndReturn(run func(context.Context, uint64) (bool, error)) *BHS_IsStored_Call

type BHS_IsTrusted_Call added in v2.15.0

type BHS_IsTrusted_Call struct {
	*mock.Call
}

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

func (*BHS_IsTrusted_Call) Return added in v2.15.0

func (_c *BHS_IsTrusted_Call) Return(_a0 bool) *BHS_IsTrusted_Call

func (*BHS_IsTrusted_Call) Run added in v2.15.0

func (_c *BHS_IsTrusted_Call) Run(run func()) *BHS_IsTrusted_Call

func (*BHS_IsTrusted_Call) RunAndReturn added in v2.15.0

func (_c *BHS_IsTrusted_Call) RunAndReturn(run func() bool) *BHS_IsTrusted_Call

type BHS_StoreEarliest_Call added in v2.15.0

type BHS_StoreEarliest_Call struct {
	*mock.Call
}

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

func (*BHS_StoreEarliest_Call) Return added in v2.15.0

func (*BHS_StoreEarliest_Call) Run added in v2.15.0

func (*BHS_StoreEarliest_Call) RunAndReturn added in v2.15.0

func (_c *BHS_StoreEarliest_Call) RunAndReturn(run func(context.Context) error) *BHS_StoreEarliest_Call

type BHS_StoreTrusted_Call added in v2.15.0

type BHS_StoreTrusted_Call struct {
	*mock.Call
}

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

func (*BHS_StoreTrusted_Call) Return added in v2.15.0

func (*BHS_StoreTrusted_Call) Run added in v2.15.0

func (_c *BHS_StoreTrusted_Call) Run(run func(ctx context.Context, blockNums []uint64, blockhashes []common.Hash, recentBlock uint64, recentBlockhash common.Hash)) *BHS_StoreTrusted_Call

func (*BHS_StoreTrusted_Call) RunAndReturn added in v2.15.0

type BHS_Store_Call added in v2.15.0

type BHS_Store_Call struct {
	*mock.Call
}

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

func (*BHS_Store_Call) Return added in v2.15.0

func (_c *BHS_Store_Call) Return(_a0 error) *BHS_Store_Call

func (*BHS_Store_Call) Run added in v2.15.0

func (_c *BHS_Store_Call) Run(run func(ctx context.Context, blockNum uint64)) *BHS_Store_Call

func (*BHS_Store_Call) RunAndReturn added in v2.15.0

func (_c *BHS_Store_Call) RunAndReturn(run func(context.Context, uint64) error) *BHS_Store_Call

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

func (*Timer) EXPECT added in v2.15.0

func (_m *Timer) EXPECT() *Timer_Expecter

type Timer_After_Call added in v2.15.0

type Timer_After_Call struct {
	*mock.Call
}

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

func (*Timer_After_Call) Return added in v2.15.0

func (_c *Timer_After_Call) Return(_a0 <-chan time.Time) *Timer_After_Call

func (*Timer_After_Call) Run added in v2.15.0

func (_c *Timer_After_Call) Run(run func(d time.Duration)) *Timer_After_Call

func (*Timer_After_Call) RunAndReturn added in v2.15.0

func (_c *Timer_After_Call) RunAndReturn(run func(time.Duration) <-chan time.Time) *Timer_After_Call

type Timer_Expecter added in v2.15.0

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

func (*Timer_Expecter) After added in v2.15.0

func (_e *Timer_Expecter) After(d interface{}) *Timer_After_Call

After is a helper method to define mock.On call

  • d time.Duration

Jump to

Keyboard shortcuts

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