pocket_service_mock

package
v0.0.0-...-9f5e8be Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PocketService

type PocketService struct {
	mock.Mock
}

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

GetSession provides a mock function with given fields: req

func (*PocketService) SendRelay

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

GetLatestBlockHeight is a helper method to define mock.On call

func (*PocketService_Expecter) GetLatestStakedApplications

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

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

func (*PocketService_GetLatestBlockHeight_Call) RunAndReturn

type PocketService_GetLatestStakedApplications_Call

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

func (*PocketService_GetLatestStakedApplications_Call) RunAndReturn

type PocketService_GetSession_Call

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

func (*PocketService_GetSession_Call) RunAndReturn

type PocketService_SendRelay_Call

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

func (*PocketService_SendRelay_Call) RunAndReturn

Jump to

Keyboard shortcuts

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