Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ORM

type ORM struct {
	mock.Mock
}

ORM is an autogenerated mock type for the ORM type

func NewORM

func NewORM(t mockConstructorTestingTNewORM) *ORM

NewORM creates a new instance of ORM. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ORM) CreateRequest

func (_m *ORM) CreateRequest(requestID directrequestocr.RequestID, receivedAt time.Time, requestTxHash *common.Hash, qopts ...pg.QOpt) error

CreateRequest provides a mock function with given fields: requestID, receivedAt, requestTxHash, qopts

func (*ORM) FindById

func (_m *ORM) FindById(requestID directrequestocr.RequestID, qopts ...pg.QOpt) (*directrequestocr.Request, error)

FindById provides a mock function with given fields: requestID, qopts

func (*ORM) FindOldestEntriesByState

func (_m *ORM) FindOldestEntriesByState(state directrequestocr.RequestState, limit uint32, qopts ...pg.QOpt) ([]directrequestocr.Request, error)

FindOldestEntriesByState provides a mock function with given fields: state, limit, qopts

func (*ORM) SetConfirmed

func (_m *ORM) SetConfirmed(requestID directrequestocr.RequestID, qopts ...pg.QOpt) error

SetConfirmed provides a mock function with given fields: requestID, qopts

func (*ORM) SetError

func (_m *ORM) SetError(requestID directrequestocr.RequestID, runID int64, errorType directrequestocr.ErrType, computationError []byte, readyAt time.Time, readyForProcessing bool, qopts ...pg.QOpt) error

SetError provides a mock function with given fields: requestID, runID, errorType, computationError, readyAt, readyForProcessing, qopts

func (*ORM) SetFinalized

func (_m *ORM) SetFinalized(requestID directrequestocr.RequestID, reportedResult []byte, reportedError []byte, qopts ...pg.QOpt) error

SetFinalized provides a mock function with given fields: requestID, reportedResult, reportedError, qopts

func (*ORM) SetResult

func (_m *ORM) SetResult(requestID directrequestocr.RequestID, runID int64, computationResult []byte, readyAt time.Time, qopts ...pg.QOpt) error

SetResult provides a mock function with given fields: requestID, runID, computationResult, readyAt, qopts

func (*ORM) TimeoutExpiredResults

func (_m *ORM) TimeoutExpiredResults(cutoff time.Time, limit uint32, qopts ...pg.QOpt) ([]directrequestocr.RequestID, error)

TimeoutExpiredResults provides a mock function with given fields: cutoff, limit, qopts

Jump to

Keyboard shortcuts

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