mocks

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReportCodec

type ReportCodec struct {
	mock.Mock
}

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

type ReportCodec_Unwrap_Call struct {
	*mock.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 (*ReportCodec_Unwrap_Call) Run

func (_c *ReportCodec_Unwrap_Call) Run(run func(wrapped values.Value)) *ReportCodec_Unwrap_Call

func (*ReportCodec_Unwrap_Call) RunAndReturn

type ReportCodec_Validate_Call

type ReportCodec_Validate_Call struct {
	*mock.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 (*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

type ReportCodec_Wrap_Call

type ReportCodec_Wrap_Call struct {
	*mock.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 (*ReportCodec_Wrap_Call) Run

func (_c *ReportCodec_Wrap_Call) Run(run func(reports []datastreams.FeedReport)) *ReportCodec_Wrap_Call

func (*ReportCodec_Wrap_Call) RunAndReturn

Jump to

Keyboard shortcuts

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