Documentation ¶
Index ¶
- type AppsRegistryService
- func (_m *AppsRegistryService) EXPECT() *AppsRegistryService_Expecter
- func (_m *AppsRegistryService) GetApplicationByPublicKey(publicKey string) (*models.PoktApplicationSigner, bool)
- func (_m *AppsRegistryService) GetApplications() []*models.PoktApplicationSigner
- func (_m *AppsRegistryService) GetApplicationsByChainId(chainId string) ([]*models.PoktApplicationSigner, bool)
- type AppsRegistryService_Expecter
- func (_e *AppsRegistryService_Expecter) GetApplicationByPublicKey(publicKey interface{}) *AppsRegistryService_GetApplicationByPublicKey_Call
- func (_e *AppsRegistryService_Expecter) GetApplications() *AppsRegistryService_GetApplications_Call
- func (_e *AppsRegistryService_Expecter) GetApplicationsByChainId(chainId interface{}) *AppsRegistryService_GetApplicationsByChainId_Call
- type AppsRegistryService_GetApplicationByPublicKey_Call
- func (_c *AppsRegistryService_GetApplicationByPublicKey_Call) Return(_a0 *models.PoktApplicationSigner, _a1 bool) *AppsRegistryService_GetApplicationByPublicKey_Call
- func (_c *AppsRegistryService_GetApplicationByPublicKey_Call) Run(run func(publicKey string)) *AppsRegistryService_GetApplicationByPublicKey_Call
- func (_c *AppsRegistryService_GetApplicationByPublicKey_Call) RunAndReturn(run func(string) (*models.PoktApplicationSigner, bool)) *AppsRegistryService_GetApplicationByPublicKey_Call
- type AppsRegistryService_GetApplicationsByChainId_Call
- func (_c *AppsRegistryService_GetApplicationsByChainId_Call) Return(_a0 []*models.PoktApplicationSigner, _a1 bool) *AppsRegistryService_GetApplicationsByChainId_Call
- func (_c *AppsRegistryService_GetApplicationsByChainId_Call) Run(run func(chainId string)) *AppsRegistryService_GetApplicationsByChainId_Call
- func (_c *AppsRegistryService_GetApplicationsByChainId_Call) RunAndReturn(run func(string) ([]*models.PoktApplicationSigner, bool)) *AppsRegistryService_GetApplicationsByChainId_Call
- type AppsRegistryService_GetApplications_Call
- func (_c *AppsRegistryService_GetApplications_Call) Return(_a0 []*models.PoktApplicationSigner) *AppsRegistryService_GetApplications_Call
- func (_c *AppsRegistryService_GetApplications_Call) Run(run func()) *AppsRegistryService_GetApplications_Call
- func (_c *AppsRegistryService_GetApplications_Call) RunAndReturn(run func() []*models.PoktApplicationSigner) *AppsRegistryService_GetApplications_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppsRegistryService ¶
AppsRegistryService is an autogenerated mock type for the AppsRegistryService type
func NewAppsRegistryService ¶
func NewAppsRegistryService(t interface { mock.TestingT Cleanup(func()) }) *AppsRegistryService
NewAppsRegistryService creates a new instance of AppsRegistryService. 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 (*AppsRegistryService) EXPECT ¶
func (_m *AppsRegistryService) EXPECT() *AppsRegistryService_Expecter
func (*AppsRegistryService) GetApplicationByPublicKey ¶
func (_m *AppsRegistryService) GetApplicationByPublicKey(publicKey string) (*models.PoktApplicationSigner, bool)
GetApplicationByPublicKey provides a mock function with given fields: publicKey
func (*AppsRegistryService) GetApplications ¶
func (_m *AppsRegistryService) GetApplications() []*models.PoktApplicationSigner
GetApplications provides a mock function with given fields:
func (*AppsRegistryService) GetApplicationsByChainId ¶
func (_m *AppsRegistryService) GetApplicationsByChainId(chainId string) ([]*models.PoktApplicationSigner, bool)
GetApplicationsByChainId provides a mock function with given fields: chainId
type AppsRegistryService_Expecter ¶
type AppsRegistryService_Expecter struct {
// contains filtered or unexported fields
}
func (*AppsRegistryService_Expecter) GetApplicationByPublicKey ¶
func (_e *AppsRegistryService_Expecter) GetApplicationByPublicKey(publicKey interface{}) *AppsRegistryService_GetApplicationByPublicKey_Call
GetApplicationByPublicKey is a helper method to define mock.On call
- publicKey string
func (*AppsRegistryService_Expecter) GetApplications ¶
func (_e *AppsRegistryService_Expecter) GetApplications() *AppsRegistryService_GetApplications_Call
GetApplications is a helper method to define mock.On call
func (*AppsRegistryService_Expecter) GetApplicationsByChainId ¶
func (_e *AppsRegistryService_Expecter) GetApplicationsByChainId(chainId interface{}) *AppsRegistryService_GetApplicationsByChainId_Call
GetApplicationsByChainId is a helper method to define mock.On call
- chainId string
type AppsRegistryService_GetApplicationByPublicKey_Call ¶
AppsRegistryService_GetApplicationByPublicKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetApplicationByPublicKey'
func (*AppsRegistryService_GetApplicationByPublicKey_Call) Return ¶
func (_c *AppsRegistryService_GetApplicationByPublicKey_Call) Return(_a0 *models.PoktApplicationSigner, _a1 bool) *AppsRegistryService_GetApplicationByPublicKey_Call
func (*AppsRegistryService_GetApplicationByPublicKey_Call) Run ¶
func (_c *AppsRegistryService_GetApplicationByPublicKey_Call) Run(run func(publicKey string)) *AppsRegistryService_GetApplicationByPublicKey_Call
func (*AppsRegistryService_GetApplicationByPublicKey_Call) RunAndReturn ¶
func (_c *AppsRegistryService_GetApplicationByPublicKey_Call) RunAndReturn(run func(string) (*models.PoktApplicationSigner, bool)) *AppsRegistryService_GetApplicationByPublicKey_Call
type AppsRegistryService_GetApplicationsByChainId_Call ¶
AppsRegistryService_GetApplicationsByChainId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetApplicationsByChainId'
func (*AppsRegistryService_GetApplicationsByChainId_Call) Return ¶
func (_c *AppsRegistryService_GetApplicationsByChainId_Call) Return(_a0 []*models.PoktApplicationSigner, _a1 bool) *AppsRegistryService_GetApplicationsByChainId_Call
func (*AppsRegistryService_GetApplicationsByChainId_Call) Run ¶
func (_c *AppsRegistryService_GetApplicationsByChainId_Call) Run(run func(chainId string)) *AppsRegistryService_GetApplicationsByChainId_Call
func (*AppsRegistryService_GetApplicationsByChainId_Call) RunAndReturn ¶
func (_c *AppsRegistryService_GetApplicationsByChainId_Call) RunAndReturn(run func(string) ([]*models.PoktApplicationSigner, bool)) *AppsRegistryService_GetApplicationsByChainId_Call
type AppsRegistryService_GetApplications_Call ¶
AppsRegistryService_GetApplications_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetApplications'
func (*AppsRegistryService_GetApplications_Call) Return ¶
func (_c *AppsRegistryService_GetApplications_Call) Return(_a0 []*models.PoktApplicationSigner) *AppsRegistryService_GetApplications_Call
func (*AppsRegistryService_GetApplications_Call) Run ¶
func (_c *AppsRegistryService_GetApplications_Call) Run(run func()) *AppsRegistryService_GetApplications_Call
func (*AppsRegistryService_GetApplications_Call) RunAndReturn ¶
func (_c *AppsRegistryService_GetApplications_Call) RunAndReturn(run func() []*models.PoktApplicationSigner) *AppsRegistryService_GetApplications_Call