Documentation ¶
Index ¶
- type ORM
- func (_m *ORM) CreateRequest(requestID directrequestocr.RequestID, receivedAt time.Time, ...) error
- func (_m *ORM) FindById(requestID directrequestocr.RequestID, qopts ...pg.QOpt) (*directrequestocr.Request, error)
- func (_m *ORM) FindOldestEntriesByState(state directrequestocr.RequestState, limit uint32, qopts ...pg.QOpt) ([]directrequestocr.Request, error)
- func (_m *ORM) SetError(requestID directrequestocr.RequestID, runID int64, ...) error
- func (_m *ORM) SetResult(requestID directrequestocr.RequestID, runID int64, computationResult []byte, ...) error
- func (_m *ORM) SetState(requestID directrequestocr.RequestID, state directrequestocr.RequestState, ...) (directrequestocr.RequestState, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ORM ¶
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 ¶ added in v1.11.0
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 ¶ added in v1.11.0
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) SetError ¶
func (_m *ORM) SetError(requestID directrequestocr.RequestID, runID int64, errorType directrequestocr.ErrType, computationError []byte, readyAt time.Time, qopts ...pg.QOpt) error
SetError provides a mock function with given fields: requestID, runID, errorType, computationError, readyAt, 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) SetState ¶ added in v1.11.0
func (_m *ORM) SetState(requestID directrequestocr.RequestID, state directrequestocr.RequestState, qopts ...pg.QOpt) (directrequestocr.RequestState, error)
SetState provides a mock function with given fields: requestID, state, qopts