Documentation ¶
Index ¶
- type PocketService
- func (_m *PocketService) EXPECT() *PocketService_Expecter
- func (_m *PocketService) GetLatestBlockHeight() (*models.GetLatestBlockHeightResponse, error)
- func (_m *PocketService) GetLatestStakedApplications() ([]*models.PoktApplication, error)
- func (_m *PocketService) GetSession(req *models.GetSessionRequest) (*models.GetSessionResponse, error)
- func (_m *PocketService) SendRelay(req *models.SendRelayRequest) (*models.SendRelayResponse, error)
- type PocketService_Expecter
- func (_e *PocketService_Expecter) GetLatestBlockHeight() *PocketService_GetLatestBlockHeight_Call
- func (_e *PocketService_Expecter) GetLatestStakedApplications() *PocketService_GetLatestStakedApplications_Call
- func (_e *PocketService_Expecter) GetSession(req interface{}) *PocketService_GetSession_Call
- func (_e *PocketService_Expecter) SendRelay(req interface{}) *PocketService_SendRelay_Call
- type PocketService_GetLatestBlockHeight_Call
- func (_c *PocketService_GetLatestBlockHeight_Call) Return(_a0 *models.GetLatestBlockHeightResponse, _a1 error) *PocketService_GetLatestBlockHeight_Call
- func (_c *PocketService_GetLatestBlockHeight_Call) Run(run func()) *PocketService_GetLatestBlockHeight_Call
- func (_c *PocketService_GetLatestBlockHeight_Call) RunAndReturn(run func() (*models.GetLatestBlockHeightResponse, error)) *PocketService_GetLatestBlockHeight_Call
- type PocketService_GetLatestStakedApplications_Call
- func (_c *PocketService_GetLatestStakedApplications_Call) Return(_a0 []*models.PoktApplication, _a1 error) *PocketService_GetLatestStakedApplications_Call
- func (_c *PocketService_GetLatestStakedApplications_Call) Run(run func()) *PocketService_GetLatestStakedApplications_Call
- func (_c *PocketService_GetLatestStakedApplications_Call) RunAndReturn(run func() ([]*models.PoktApplication, error)) *PocketService_GetLatestStakedApplications_Call
- type PocketService_GetSession_Call
- func (_c *PocketService_GetSession_Call) Return(_a0 *models.GetSessionResponse, _a1 error) *PocketService_GetSession_Call
- func (_c *PocketService_GetSession_Call) Run(run func(req *models.GetSessionRequest)) *PocketService_GetSession_Call
- func (_c *PocketService_GetSession_Call) RunAndReturn(run func(*models.GetSessionRequest) (*models.GetSessionResponse, error)) *PocketService_GetSession_Call
- type PocketService_SendRelay_Call
- func (_c *PocketService_SendRelay_Call) Return(_a0 *models.SendRelayResponse, _a1 error) *PocketService_SendRelay_Call
- func (_c *PocketService_SendRelay_Call) Run(run func(req *models.SendRelayRequest)) *PocketService_SendRelay_Call
- func (_c *PocketService_SendRelay_Call) RunAndReturn(run func(*models.SendRelayRequest) (*models.SendRelayResponse, error)) *PocketService_SendRelay_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PocketService ¶
PocketService is an autogenerated mock type for the PocketService type
func NewPocketService ¶
func NewPocketService(t interface { mock.TestingT Cleanup(func()) }) *PocketService
NewPocketService creates a new instance of PocketService. 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 (*PocketService) EXPECT ¶
func (_m *PocketService) EXPECT() *PocketService_Expecter
func (*PocketService) GetLatestBlockHeight ¶
func (_m *PocketService) GetLatestBlockHeight() (*models.GetLatestBlockHeightResponse, error)
GetLatestBlockHeight provides a mock function with given fields:
func (*PocketService) GetLatestStakedApplications ¶
func (_m *PocketService) GetLatestStakedApplications() ([]*models.PoktApplication, error)
GetLatestStakedApplications provides a mock function with given fields:
func (*PocketService) GetSession ¶
func (_m *PocketService) GetSession(req *models.GetSessionRequest) (*models.GetSessionResponse, error)
GetSession provides a mock function with given fields: req
func (*PocketService) SendRelay ¶
func (_m *PocketService) SendRelay(req *models.SendRelayRequest) (*models.SendRelayResponse, error)
SendRelay provides a mock function with given fields: req
type PocketService_Expecter ¶
type PocketService_Expecter struct {
// contains filtered or unexported fields
}
func (*PocketService_Expecter) GetLatestBlockHeight ¶
func (_e *PocketService_Expecter) GetLatestBlockHeight() *PocketService_GetLatestBlockHeight_Call
GetLatestBlockHeight is a helper method to define mock.On call
func (*PocketService_Expecter) GetLatestStakedApplications ¶
func (_e *PocketService_Expecter) GetLatestStakedApplications() *PocketService_GetLatestStakedApplications_Call
GetLatestStakedApplications is a helper method to define mock.On call
func (*PocketService_Expecter) GetSession ¶
func (_e *PocketService_Expecter) GetSession(req interface{}) *PocketService_GetSession_Call
GetSession is a helper method to define mock.On call
- req *models.GetSessionRequest
func (*PocketService_Expecter) SendRelay ¶
func (_e *PocketService_Expecter) SendRelay(req interface{}) *PocketService_SendRelay_Call
SendRelay is a helper method to define mock.On call
- req *models.SendRelayRequest
type PocketService_GetLatestBlockHeight_Call ¶
PocketService_GetLatestBlockHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLatestBlockHeight'
func (*PocketService_GetLatestBlockHeight_Call) Return ¶
func (_c *PocketService_GetLatestBlockHeight_Call) Return(_a0 *models.GetLatestBlockHeightResponse, _a1 error) *PocketService_GetLatestBlockHeight_Call
func (*PocketService_GetLatestBlockHeight_Call) Run ¶
func (_c *PocketService_GetLatestBlockHeight_Call) Run(run func()) *PocketService_GetLatestBlockHeight_Call
func (*PocketService_GetLatestBlockHeight_Call) RunAndReturn ¶
func (_c *PocketService_GetLatestBlockHeight_Call) RunAndReturn(run func() (*models.GetLatestBlockHeightResponse, error)) *PocketService_GetLatestBlockHeight_Call
type PocketService_GetLatestStakedApplications_Call ¶
PocketService_GetLatestStakedApplications_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLatestStakedApplications'
func (*PocketService_GetLatestStakedApplications_Call) Return ¶
func (_c *PocketService_GetLatestStakedApplications_Call) Return(_a0 []*models.PoktApplication, _a1 error) *PocketService_GetLatestStakedApplications_Call
func (*PocketService_GetLatestStakedApplications_Call) Run ¶
func (_c *PocketService_GetLatestStakedApplications_Call) Run(run func()) *PocketService_GetLatestStakedApplications_Call
func (*PocketService_GetLatestStakedApplications_Call) RunAndReturn ¶
func (_c *PocketService_GetLatestStakedApplications_Call) RunAndReturn(run func() ([]*models.PoktApplication, error)) *PocketService_GetLatestStakedApplications_Call
type PocketService_GetSession_Call ¶
PocketService_GetSession_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSession'
func (*PocketService_GetSession_Call) Return ¶
func (_c *PocketService_GetSession_Call) Return(_a0 *models.GetSessionResponse, _a1 error) *PocketService_GetSession_Call
func (*PocketService_GetSession_Call) Run ¶
func (_c *PocketService_GetSession_Call) Run(run func(req *models.GetSessionRequest)) *PocketService_GetSession_Call
func (*PocketService_GetSession_Call) RunAndReturn ¶
func (_c *PocketService_GetSession_Call) RunAndReturn(run func(*models.GetSessionRequest) (*models.GetSessionResponse, error)) *PocketService_GetSession_Call
type PocketService_SendRelay_Call ¶
PocketService_SendRelay_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendRelay'
func (*PocketService_SendRelay_Call) Return ¶
func (_c *PocketService_SendRelay_Call) Return(_a0 *models.SendRelayResponse, _a1 error) *PocketService_SendRelay_Call
func (*PocketService_SendRelay_Call) Run ¶
func (_c *PocketService_SendRelay_Call) Run(run func(req *models.SendRelayRequest)) *PocketService_SendRelay_Call
func (*PocketService_SendRelay_Call) RunAndReturn ¶
func (_c *PocketService_SendRelay_Call) RunAndReturn(run func(*models.SendRelayRequest) (*models.SendRelayResponse, error)) *PocketService_SendRelay_Call