Documentation ¶
Index ¶
- type BHS
- func (_m *BHS) EXPECT() *BHS_Expecter
- func (_m *BHS) IsStored(ctx context.Context, blockNum uint64) (bool, error)
- func (_m *BHS) IsTrusted() bool
- func (_m *BHS) Store(ctx context.Context, blockNum uint64) error
- func (_m *BHS) StoreEarliest(ctx context.Context) error
- func (_m *BHS) StoreTrusted(ctx context.Context, blockNums []uint64, blockhashes []common.Hash, ...) error
- type BHS_Expecter
- func (_e *BHS_Expecter) IsStored(ctx interface{}, blockNum interface{}) *BHS_IsStored_Call
- func (_e *BHS_Expecter) IsTrusted() *BHS_IsTrusted_Call
- func (_e *BHS_Expecter) Store(ctx interface{}, blockNum interface{}) *BHS_Store_Call
- func (_e *BHS_Expecter) StoreEarliest(ctx interface{}) *BHS_StoreEarliest_Call
- func (_e *BHS_Expecter) StoreTrusted(ctx interface{}, blockNums interface{}, blockhashes interface{}, ...) *BHS_StoreTrusted_Call
- type BHS_IsStored_Call
- type BHS_IsTrusted_Call
- type BHS_StoreEarliest_Call
- type BHS_StoreTrusted_Call
- type BHS_Store_Call
- type Timer
- type Timer_After_Call
- type Timer_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BHS ¶
BHS is an autogenerated mock type for the BHS type
func NewBHS ¶
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) StoreEarliest ¶
StoreEarliest provides a mock function with given fields: ctx
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
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
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
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 (_c *BHS_StoreEarliest_Call) Return(_a0 error) *BHS_StoreEarliest_Call
func (*BHS_StoreEarliest_Call) Run ¶ added in v2.15.0
func (_c *BHS_StoreEarliest_Call) Run(run func(ctx context.Context)) *BHS_StoreEarliest_Call
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
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 (_c *BHS_StoreTrusted_Call) Return(_a0 error) *BHS_StoreTrusted_Call
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
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 ¶
Timer is an autogenerated mock type for the Timer type
func NewTimer ¶
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) EXPECT ¶ added in v2.15.0
func (_m *Timer) EXPECT() *Timer_Expecter
type Timer_After_Call ¶ added in v2.15.0
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