session_registry_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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SessionRegistryService

type SessionRegistryService struct {
	mock.Mock
}

SessionRegistryService is an autogenerated mock type for the SessionRegistryService type

func NewSessionRegistryService

func NewSessionRegistryService(t interface {
	mock.TestingT
	Cleanup(func())
}) *SessionRegistryService

NewSessionRegistryService creates a new instance of SessionRegistryService. 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 (*SessionRegistryService) EXPECT

func (*SessionRegistryService) GetNodesByChain

func (_m *SessionRegistryService) GetNodesByChain(chainId string) []*models.QosNode

GetNodesByChain provides a mock function with given fields: chainId

func (*SessionRegistryService) GetNodesMap

GetNodesMap provides a mock function with given fields:

func (*SessionRegistryService) GetSession

GetSession provides a mock function with given fields: req

type SessionRegistryService_Expecter

type SessionRegistryService_Expecter struct {
	// contains filtered or unexported fields
}

func (*SessionRegistryService_Expecter) GetNodesByChain

func (_e *SessionRegistryService_Expecter) GetNodesByChain(chainId interface{}) *SessionRegistryService_GetNodesByChain_Call

GetNodesByChain is a helper method to define mock.On call

  • chainId string

func (*SessionRegistryService_Expecter) GetNodesMap

GetNodesMap is a helper method to define mock.On call

func (*SessionRegistryService_Expecter) GetSession

GetSession is a helper method to define mock.On call

  • req *pokt_v0models.GetSessionRequest

type SessionRegistryService_GetNodesByChain_Call

type SessionRegistryService_GetNodesByChain_Call struct {
	*mock.Call
}

SessionRegistryService_GetNodesByChain_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNodesByChain'

func (*SessionRegistryService_GetNodesByChain_Call) Return

func (*SessionRegistryService_GetNodesByChain_Call) Run

func (*SessionRegistryService_GetNodesByChain_Call) RunAndReturn

type SessionRegistryService_GetNodesMap_Call

type SessionRegistryService_GetNodesMap_Call struct {
	*mock.Call
}

SessionRegistryService_GetNodesMap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNodesMap'

func (*SessionRegistryService_GetNodesMap_Call) Run

func (*SessionRegistryService_GetNodesMap_Call) RunAndReturn

type SessionRegistryService_GetSession_Call

type SessionRegistryService_GetSession_Call struct {
	*mock.Call
}

SessionRegistryService_GetSession_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSession'

func (*SessionRegistryService_GetSession_Call) Return

func (*SessionRegistryService_GetSession_Call) Run

Jump to

Keyboard shortcuts

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