Documentation
¶
Index ¶
- type LightClient
- func (_mock *LightClient) ChainID() string
- func (_m *LightClient) EXPECT() *LightClient_Expecter
- func (_mock *LightClient) Status(ctx context.Context) *types.LightClientInfo
- func (_mock *LightClient) TrustedLightBlock(height int64) (*types.LightBlock, error)
- func (_mock *LightClient) Update(ctx context.Context, now time.Time) (*types.LightBlock, error)
- func (_mock *LightClient) VerifyLightBlockAtHeight(ctx context.Context, height int64, now time.Time) (*types.LightBlock, error)
- type LightClient_ChainID_Call
- type LightClient_Expecter
- func (_e *LightClient_Expecter) ChainID() *LightClient_ChainID_Call
- func (_e *LightClient_Expecter) Status(ctx interface{}) *LightClient_Status_Call
- func (_e *LightClient_Expecter) TrustedLightBlock(height interface{}) *LightClient_TrustedLightBlock_Call
- func (_e *LightClient_Expecter) Update(ctx interface{}, now interface{}) *LightClient_Update_Call
- func (_e *LightClient_Expecter) VerifyLightBlockAtHeight(ctx interface{}, height interface{}, now interface{}) *LightClient_VerifyLightBlockAtHeight_Call
- type LightClient_Status_Call
- func (_c *LightClient_Status_Call) Return(lightClientInfo *types.LightClientInfo) *LightClient_Status_Call
- func (_c *LightClient_Status_Call) Run(run func(ctx context.Context)) *LightClient_Status_Call
- func (_c *LightClient_Status_Call) RunAndReturn(run func(ctx context.Context) *types.LightClientInfo) *LightClient_Status_Call
- type LightClient_TrustedLightBlock_Call
- func (_c *LightClient_TrustedLightBlock_Call) Return(lightBlock *types.LightBlock, err error) *LightClient_TrustedLightBlock_Call
- func (_c *LightClient_TrustedLightBlock_Call) Run(run func(height int64)) *LightClient_TrustedLightBlock_Call
- func (_c *LightClient_TrustedLightBlock_Call) RunAndReturn(run func(height int64) (*types.LightBlock, error)) *LightClient_TrustedLightBlock_Call
- type LightClient_Update_Call
- func (_c *LightClient_Update_Call) Return(lightBlock *types.LightBlock, err error) *LightClient_Update_Call
- func (_c *LightClient_Update_Call) Run(run func(ctx context.Context, now time.Time)) *LightClient_Update_Call
- func (_c *LightClient_Update_Call) RunAndReturn(run func(ctx context.Context, now time.Time) (*types.LightBlock, error)) *LightClient_Update_Call
- type LightClient_VerifyLightBlockAtHeight_Call
- func (_c *LightClient_VerifyLightBlockAtHeight_Call) Return(lightBlock *types.LightBlock, err error) *LightClient_VerifyLightBlockAtHeight_Call
- func (_c *LightClient_VerifyLightBlockAtHeight_Call) Run(run func(ctx context.Context, height int64, now time.Time)) *LightClient_VerifyLightBlockAtHeight_Call
- func (_c *LightClient_VerifyLightBlockAtHeight_Call) RunAndReturn(...) *LightClient_VerifyLightBlockAtHeight_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LightClient ¶
LightClient is an autogenerated mock type for the LightClient type
func NewLightClient ¶
func NewLightClient(t interface {
mock.TestingT
Cleanup(func())
}) *LightClient
NewLightClient creates a new instance of LightClient. 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 (*LightClient) ChainID ¶
func (_mock *LightClient) ChainID() string
ChainID provides a mock function for the type LightClient
func (*LightClient) EXPECT ¶ added in v1.4.0
func (_m *LightClient) EXPECT() *LightClient_Expecter
func (*LightClient) Status ¶
func (_mock *LightClient) Status(ctx context.Context) *types.LightClientInfo
Status provides a mock function for the type LightClient
func (*LightClient) TrustedLightBlock ¶
func (_mock *LightClient) TrustedLightBlock(height int64) (*types.LightBlock, error)
TrustedLightBlock provides a mock function for the type LightClient
func (*LightClient) Update ¶
func (_mock *LightClient) Update(ctx context.Context, now time.Time) (*types.LightBlock, error)
Update provides a mock function for the type LightClient
func (*LightClient) VerifyLightBlockAtHeight ¶
func (_mock *LightClient) VerifyLightBlockAtHeight(ctx context.Context, height int64, now time.Time) (*types.LightBlock, error)
VerifyLightBlockAtHeight provides a mock function for the type LightClient
type LightClient_ChainID_Call ¶ added in v1.4.0
LightClient_ChainID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ChainID'
func (*LightClient_ChainID_Call) Return ¶ added in v1.4.0
func (_c *LightClient_ChainID_Call) Return(s string) *LightClient_ChainID_Call
func (*LightClient_ChainID_Call) Run ¶ added in v1.4.0
func (_c *LightClient_ChainID_Call) Run(run func()) *LightClient_ChainID_Call
func (*LightClient_ChainID_Call) RunAndReturn ¶ added in v1.4.0
func (_c *LightClient_ChainID_Call) RunAndReturn(run func() string) *LightClient_ChainID_Call
type LightClient_Expecter ¶ added in v1.4.0
type LightClient_Expecter struct {
// contains filtered or unexported fields
}
func (*LightClient_Expecter) ChainID ¶ added in v1.4.0
func (_e *LightClient_Expecter) ChainID() *LightClient_ChainID_Call
ChainID is a helper method to define mock.On call
func (*LightClient_Expecter) Status ¶ added in v1.4.0
func (_e *LightClient_Expecter) Status(ctx interface{}) *LightClient_Status_Call
Status is a helper method to define mock.On call
- ctx
func (*LightClient_Expecter) TrustedLightBlock ¶ added in v1.4.0
func (_e *LightClient_Expecter) TrustedLightBlock(height interface{}) *LightClient_TrustedLightBlock_Call
TrustedLightBlock is a helper method to define mock.On call
- height
func (*LightClient_Expecter) Update ¶ added in v1.4.0
func (_e *LightClient_Expecter) Update(ctx interface{}, now interface{}) *LightClient_Update_Call
Update is a helper method to define mock.On call
- ctx
- now
func (*LightClient_Expecter) VerifyLightBlockAtHeight ¶ added in v1.4.0
func (_e *LightClient_Expecter) VerifyLightBlockAtHeight(ctx interface{}, height interface{}, now interface{}) *LightClient_VerifyLightBlockAtHeight_Call
VerifyLightBlockAtHeight is a helper method to define mock.On call
- ctx
- height
- now
type LightClient_Status_Call ¶ added in v1.4.0
LightClient_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'
func (*LightClient_Status_Call) Return ¶ added in v1.4.0
func (_c *LightClient_Status_Call) Return(lightClientInfo *types.LightClientInfo) *LightClient_Status_Call
func (*LightClient_Status_Call) Run ¶ added in v1.4.0
func (_c *LightClient_Status_Call) Run(run func(ctx context.Context)) *LightClient_Status_Call
func (*LightClient_Status_Call) RunAndReturn ¶ added in v1.4.0
func (_c *LightClient_Status_Call) RunAndReturn(run func(ctx context.Context) *types.LightClientInfo) *LightClient_Status_Call
type LightClient_TrustedLightBlock_Call ¶ added in v1.4.0
LightClient_TrustedLightBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TrustedLightBlock'
func (*LightClient_TrustedLightBlock_Call) Return ¶ added in v1.4.0
func (_c *LightClient_TrustedLightBlock_Call) Return(lightBlock *types.LightBlock, err error) *LightClient_TrustedLightBlock_Call
func (*LightClient_TrustedLightBlock_Call) Run ¶ added in v1.4.0
func (_c *LightClient_TrustedLightBlock_Call) Run(run func(height int64)) *LightClient_TrustedLightBlock_Call
func (*LightClient_TrustedLightBlock_Call) RunAndReturn ¶ added in v1.4.0
func (_c *LightClient_TrustedLightBlock_Call) RunAndReturn(run func(height int64) (*types.LightBlock, error)) *LightClient_TrustedLightBlock_Call
type LightClient_Update_Call ¶ added in v1.4.0
LightClient_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*LightClient_Update_Call) Return ¶ added in v1.4.0
func (_c *LightClient_Update_Call) Return(lightBlock *types.LightBlock, err error) *LightClient_Update_Call
func (*LightClient_Update_Call) Run ¶ added in v1.4.0
func (_c *LightClient_Update_Call) Run(run func(ctx context.Context, now time.Time)) *LightClient_Update_Call
func (*LightClient_Update_Call) RunAndReturn ¶ added in v1.4.0
func (_c *LightClient_Update_Call) RunAndReturn(run func(ctx context.Context, now time.Time) (*types.LightBlock, error)) *LightClient_Update_Call
type LightClient_VerifyLightBlockAtHeight_Call ¶ added in v1.4.0
LightClient_VerifyLightBlockAtHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VerifyLightBlockAtHeight'
func (*LightClient_VerifyLightBlockAtHeight_Call) Return ¶ added in v1.4.0
func (_c *LightClient_VerifyLightBlockAtHeight_Call) Return(lightBlock *types.LightBlock, err error) *LightClient_VerifyLightBlockAtHeight_Call
func (*LightClient_VerifyLightBlockAtHeight_Call) Run ¶ added in v1.4.0
func (_c *LightClient_VerifyLightBlockAtHeight_Call) Run(run func(ctx context.Context, height int64, now time.Time)) *LightClient_VerifyLightBlockAtHeight_Call
func (*LightClient_VerifyLightBlockAtHeight_Call) RunAndReturn ¶ added in v1.4.0
func (_c *LightClient_VerifyLightBlockAtHeight_Call) RunAndReturn(run func(ctx context.Context, height int64, now time.Time) (*types.LightBlock, error)) *LightClient_VerifyLightBlockAtHeight_Call