Documentation
¶
Index ¶
- type Provider
- type Provider_Expecter
- type Provider_ID_Call
- type Provider_LightBlock_Call
- func (_c *Provider_LightBlock_Call) Return(lightBlock *types.LightBlock, err error) *Provider_LightBlock_Call
- func (_c *Provider_LightBlock_Call) Run(run func(ctx context.Context, height int64)) *Provider_LightBlock_Call
- func (_c *Provider_LightBlock_Call) RunAndReturn(run func(ctx context.Context, height int64) (*types.LightBlock, error)) *Provider_LightBlock_Call
- type Provider_ReportEvidence_Call
- func (_c *Provider_ReportEvidence_Call) Return(err error) *Provider_ReportEvidence_Call
- func (_c *Provider_ReportEvidence_Call) Run(run func(context1 context.Context, evidence types.Evidence)) *Provider_ReportEvidence_Call
- func (_c *Provider_ReportEvidence_Call) RunAndReturn(run func(context1 context.Context, evidence types.Evidence) error) *Provider_ReportEvidence_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
Provider is an autogenerated mock type for the Provider type
func NewProvider ¶
NewProvider creates a new instance of Provider. 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 (*Provider) EXPECT ¶ added in v1.4.0
func (_m *Provider) EXPECT() *Provider_Expecter
func (*Provider) LightBlock ¶
LightBlock provides a mock function for the type Provider
type Provider_Expecter ¶ added in v1.4.0
type Provider_Expecter struct {
// contains filtered or unexported fields
}
func (*Provider_Expecter) ID ¶ added in v1.4.0
func (_e *Provider_Expecter) ID() *Provider_ID_Call
ID is a helper method to define mock.On call
func (*Provider_Expecter) LightBlock ¶ added in v1.4.0
func (_e *Provider_Expecter) LightBlock(ctx interface{}, height interface{}) *Provider_LightBlock_Call
LightBlock is a helper method to define mock.On call
- ctx
- height
func (*Provider_Expecter) ReportEvidence ¶ added in v1.4.0
func (_e *Provider_Expecter) ReportEvidence(context1 interface{}, evidence interface{}) *Provider_ReportEvidence_Call
ReportEvidence is a helper method to define mock.On call
- context1
- evidence
type Provider_ID_Call ¶ added in v1.4.0
Provider_ID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ID'
func (*Provider_ID_Call) Return ¶ added in v1.4.0
func (_c *Provider_ID_Call) Return(s string) *Provider_ID_Call
func (*Provider_ID_Call) Run ¶ added in v1.4.0
func (_c *Provider_ID_Call) Run(run func()) *Provider_ID_Call
func (*Provider_ID_Call) RunAndReturn ¶ added in v1.4.0
func (_c *Provider_ID_Call) RunAndReturn(run func() string) *Provider_ID_Call
type Provider_LightBlock_Call ¶ added in v1.4.0
Provider_LightBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LightBlock'
func (*Provider_LightBlock_Call) Return ¶ added in v1.4.0
func (_c *Provider_LightBlock_Call) Return(lightBlock *types.LightBlock, err error) *Provider_LightBlock_Call
func (*Provider_LightBlock_Call) Run ¶ added in v1.4.0
func (_c *Provider_LightBlock_Call) Run(run func(ctx context.Context, height int64)) *Provider_LightBlock_Call
func (*Provider_LightBlock_Call) RunAndReturn ¶ added in v1.4.0
func (_c *Provider_LightBlock_Call) RunAndReturn(run func(ctx context.Context, height int64) (*types.LightBlock, error)) *Provider_LightBlock_Call
type Provider_ReportEvidence_Call ¶ added in v1.4.0
Provider_ReportEvidence_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReportEvidence'
func (*Provider_ReportEvidence_Call) Return ¶ added in v1.4.0
func (_c *Provider_ReportEvidence_Call) Return(err error) *Provider_ReportEvidence_Call
func (*Provider_ReportEvidence_Call) Run ¶ added in v1.4.0
func (_c *Provider_ReportEvidence_Call) Run(run func(context1 context.Context, evidence types.Evidence)) *Provider_ReportEvidence_Call
func (*Provider_ReportEvidence_Call) RunAndReturn ¶ added in v1.4.0
func (_c *Provider_ReportEvidence_Call) RunAndReturn(run func(context1 context.Context, evidence types.Evidence) error) *Provider_ReportEvidence_Call