Documentation ¶
Index ¶
- type ReportCodec
- func (_m *ReportCodec) EXPECT() *ReportCodec_Expecter
- func (_m *ReportCodec) Unwrap(wrapped values.Value) ([]datastreams.FeedReport, error)
- func (_m *ReportCodec) Validate(feedReport datastreams.FeedReport, allowedSigners [][]byte, ...) error
- func (_m *ReportCodec) Wrap(reports []datastreams.FeedReport) (values.Value, error)
- type ReportCodec_Expecter
- type ReportCodec_Unwrap_Call
- func (_c *ReportCodec_Unwrap_Call) Return(_a0 []datastreams.FeedReport, _a1 error) *ReportCodec_Unwrap_Call
- func (_c *ReportCodec_Unwrap_Call) Run(run func(wrapped values.Value)) *ReportCodec_Unwrap_Call
- func (_c *ReportCodec_Unwrap_Call) RunAndReturn(run func(values.Value) ([]datastreams.FeedReport, error)) *ReportCodec_Unwrap_Call
- type ReportCodec_Validate_Call
- func (_c *ReportCodec_Validate_Call) Return(_a0 error) *ReportCodec_Validate_Call
- func (_c *ReportCodec_Validate_Call) Run(run func(feedReport datastreams.FeedReport, allowedSigners [][]byte, ...)) *ReportCodec_Validate_Call
- func (_c *ReportCodec_Validate_Call) RunAndReturn(run func(datastreams.FeedReport, [][]byte, int) error) *ReportCodec_Validate_Call
- type ReportCodec_Wrap_Call
- func (_c *ReportCodec_Wrap_Call) Return(_a0 values.Value, _a1 error) *ReportCodec_Wrap_Call
- func (_c *ReportCodec_Wrap_Call) Run(run func(reports []datastreams.FeedReport)) *ReportCodec_Wrap_Call
- func (_c *ReportCodec_Wrap_Call) RunAndReturn(run func([]datastreams.FeedReport) (values.Value, error)) *ReportCodec_Wrap_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReportCodec ¶
ReportCodec is an autogenerated mock type for the ReportCodec type
func NewReportCodec ¶
func NewReportCodec(t interface { mock.TestingT Cleanup(func()) }) *ReportCodec
NewReportCodec creates a new instance of ReportCodec. 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 (*ReportCodec) EXPECT ¶
func (_m *ReportCodec) EXPECT() *ReportCodec_Expecter
func (*ReportCodec) Unwrap ¶
func (_m *ReportCodec) Unwrap(wrapped values.Value) ([]datastreams.FeedReport, error)
Unwrap provides a mock function with given fields: wrapped
func (*ReportCodec) Validate ¶
func (_m *ReportCodec) Validate(feedReport datastreams.FeedReport, allowedSigners [][]byte, minRequiredSignatures int) error
Validate provides a mock function with given fields: feedReport, allowedSigners, minRequiredSignatures
func (*ReportCodec) Wrap ¶
func (_m *ReportCodec) Wrap(reports []datastreams.FeedReport) (values.Value, error)
Wrap provides a mock function with given fields: reports
type ReportCodec_Expecter ¶
type ReportCodec_Expecter struct {
// contains filtered or unexported fields
}
func (*ReportCodec_Expecter) Unwrap ¶
func (_e *ReportCodec_Expecter) Unwrap(wrapped interface{}) *ReportCodec_Unwrap_Call
Unwrap is a helper method to define mock.On call
- wrapped values.Value
func (*ReportCodec_Expecter) Validate ¶
func (_e *ReportCodec_Expecter) Validate(feedReport interface{}, allowedSigners interface{}, minRequiredSignatures interface{}) *ReportCodec_Validate_Call
Validate is a helper method to define mock.On call
- feedReport datastreams.FeedReport
- allowedSigners [][]byte
- minRequiredSignatures int
func (*ReportCodec_Expecter) Wrap ¶
func (_e *ReportCodec_Expecter) Wrap(reports interface{}) *ReportCodec_Wrap_Call
Wrap is a helper method to define mock.On call
- reports []datastreams.FeedReport
type ReportCodec_Unwrap_Call ¶
ReportCodec_Unwrap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unwrap'
func (*ReportCodec_Unwrap_Call) Return ¶
func (_c *ReportCodec_Unwrap_Call) Return(_a0 []datastreams.FeedReport, _a1 error) *ReportCodec_Unwrap_Call
func (*ReportCodec_Unwrap_Call) Run ¶
func (_c *ReportCodec_Unwrap_Call) Run(run func(wrapped values.Value)) *ReportCodec_Unwrap_Call
func (*ReportCodec_Unwrap_Call) RunAndReturn ¶
func (_c *ReportCodec_Unwrap_Call) RunAndReturn(run func(values.Value) ([]datastreams.FeedReport, error)) *ReportCodec_Unwrap_Call
type ReportCodec_Validate_Call ¶
ReportCodec_Validate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Validate'
func (*ReportCodec_Validate_Call) Return ¶
func (_c *ReportCodec_Validate_Call) Return(_a0 error) *ReportCodec_Validate_Call
func (*ReportCodec_Validate_Call) Run ¶
func (_c *ReportCodec_Validate_Call) Run(run func(feedReport datastreams.FeedReport, allowedSigners [][]byte, minRequiredSignatures int)) *ReportCodec_Validate_Call
func (*ReportCodec_Validate_Call) RunAndReturn ¶
func (_c *ReportCodec_Validate_Call) RunAndReturn(run func(datastreams.FeedReport, [][]byte, int) error) *ReportCodec_Validate_Call
type ReportCodec_Wrap_Call ¶
ReportCodec_Wrap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Wrap'
func (*ReportCodec_Wrap_Call) Return ¶
func (_c *ReportCodec_Wrap_Call) Return(_a0 values.Value, _a1 error) *ReportCodec_Wrap_Call
func (*ReportCodec_Wrap_Call) Run ¶
func (_c *ReportCodec_Wrap_Call) Run(run func(reports []datastreams.FeedReport)) *ReportCodec_Wrap_Call
func (*ReportCodec_Wrap_Call) RunAndReturn ¶
func (_c *ReportCodec_Wrap_Call) RunAndReturn(run func([]datastreams.FeedReport) (values.Value, error)) *ReportCodec_Wrap_Call