mocks

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func NewService

func NewService(t interface {
	mock.TestingT
	Cleanup(func())
}) *Service

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

func (_m *Service) EXPECT() *Service_Expecter

func (*Service) GetUser

func (_m *Service) GetUser(ctx context.Context, evmAddress string, msg string, sig string) (*user.User, error)

GetUser provides a mock function with given fields: ctx, evmAddress, msg, sig

func (*Service) PrepareExternalRegistration

func (_m *Service) PrepareExternalRegistration(ctx context.Context, req *user.RegisterRequest) (*user.PrepareTopologyResponse, error)

PrepareExternalRegistration provides a mock function with given fields: ctx, req

func (*Service) RegisterCantonNativeUser

func (_m *Service) RegisterCantonNativeUser(ctx context.Context, req *user.RegisterRequest) (*user.RegisterResponse, error)

RegisterCantonNativeUser provides a mock function with given fields: ctx, req

func (*Service) RegisterWeb3User

func (_m *Service) RegisterWeb3User(ctx context.Context, req *user.RegisterRequest) (*user.RegisterResponse, error)

RegisterWeb3User provides a mock function with given fields: ctx, req

type Service_Expecter

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

func (*Service_Expecter) GetUser

func (_e *Service_Expecter) GetUser(ctx interface{}, evmAddress interface{}, msg interface{}, sig interface{}) *Service_GetUser_Call

GetUser is a helper method to define mock.On call

  • ctx context.Context
  • evmAddress string
  • msg string
  • sig string

func (*Service_Expecter) PrepareExternalRegistration

func (_e *Service_Expecter) PrepareExternalRegistration(ctx interface{}, req interface{}) *Service_PrepareExternalRegistration_Call

PrepareExternalRegistration is a helper method to define mock.On call

  • ctx context.Context
  • req *user.RegisterRequest

func (*Service_Expecter) RegisterCantonNativeUser

func (_e *Service_Expecter) RegisterCantonNativeUser(ctx interface{}, req interface{}) *Service_RegisterCantonNativeUser_Call

RegisterCantonNativeUser is a helper method to define mock.On call

  • ctx context.Context
  • req *user.RegisterRequest

func (*Service_Expecter) RegisterWeb3User

func (_e *Service_Expecter) RegisterWeb3User(ctx interface{}, req interface{}) *Service_RegisterWeb3User_Call

RegisterWeb3User is a helper method to define mock.On call

  • ctx context.Context
  • req *user.RegisterRequest

type Service_GetUser_Call

type Service_GetUser_Call struct {
	*mock.Call
}

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

func (*Service_GetUser_Call) Return

func (_c *Service_GetUser_Call) Return(_a0 *user.User, _a1 error) *Service_GetUser_Call

func (*Service_GetUser_Call) Run

func (_c *Service_GetUser_Call) Run(run func(ctx context.Context, evmAddress string, msg string, sig string)) *Service_GetUser_Call

func (*Service_GetUser_Call) RunAndReturn

type Service_PrepareExternalRegistration_Call

type Service_PrepareExternalRegistration_Call struct {
	*mock.Call
}

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

func (*Service_PrepareExternalRegistration_Call) Return

func (*Service_PrepareExternalRegistration_Call) Run

type Service_RegisterCantonNativeUser_Call

type Service_RegisterCantonNativeUser_Call struct {
	*mock.Call
}

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

func (*Service_RegisterCantonNativeUser_Call) Return

func (*Service_RegisterCantonNativeUser_Call) Run

func (*Service_RegisterCantonNativeUser_Call) RunAndReturn

type Service_RegisterWeb3User_Call

type Service_RegisterWeb3User_Call struct {
	*mock.Call
}

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

func (*Service_RegisterWeb3User_Call) Return

func (*Service_RegisterWeb3User_Call) Run

func (*Service_RegisterWeb3User_Call) RunAndReturn

type Store

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func NewStore

func NewStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *Store

NewStore creates a new instance of Store. 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 (*Store) CreateUser

func (_m *Store) CreateUser(ctx context.Context, _a1 *user.User) error

CreateUser provides a mock function with given fields: ctx, _a1

func (*Store) DeleteUser

func (_m *Store) DeleteUser(ctx context.Context, evmAddress string) error

DeleteUser provides a mock function with given fields: ctx, evmAddress

func (*Store) EXPECT

func (_m *Store) EXPECT() *Store_Expecter

func (*Store) GetUserByCantonPartyID

func (_m *Store) GetUserByCantonPartyID(ctx context.Context, partyID string) (*user.User, error)

GetUserByCantonPartyID provides a mock function with given fields: ctx, partyID

func (*Store) GetUserByEVMAddress

func (_m *Store) GetUserByEVMAddress(ctx context.Context, evmAddress string) (*user.User, error)

GetUserByEVMAddress provides a mock function with given fields: ctx, evmAddress

func (*Store) IsWhitelisted

func (_m *Store) IsWhitelisted(ctx context.Context, evmAddress string) (bool, error)

IsWhitelisted provides a mock function with given fields: ctx, evmAddress

func (*Store) UserExists

func (_m *Store) UserExists(ctx context.Context, evmAddress string) (bool, error)

UserExists provides a mock function with given fields: ctx, evmAddress

type Store_CreateUser_Call

type Store_CreateUser_Call struct {
	*mock.Call
}

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

func (*Store_CreateUser_Call) Return

func (*Store_CreateUser_Call) Run

func (_c *Store_CreateUser_Call) Run(run func(ctx context.Context, _a1 *user.User)) *Store_CreateUser_Call

func (*Store_CreateUser_Call) RunAndReturn

func (_c *Store_CreateUser_Call) RunAndReturn(run func(context.Context, *user.User) error) *Store_CreateUser_Call

type Store_DeleteUser_Call

type Store_DeleteUser_Call struct {
	*mock.Call
}

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

func (*Store_DeleteUser_Call) Return

func (*Store_DeleteUser_Call) Run

func (_c *Store_DeleteUser_Call) Run(run func(ctx context.Context, evmAddress string)) *Store_DeleteUser_Call

func (*Store_DeleteUser_Call) RunAndReturn

type Store_Expecter

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

func (*Store_Expecter) CreateUser

func (_e *Store_Expecter) CreateUser(ctx interface{}, _a1 interface{}) *Store_CreateUser_Call

CreateUser is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *user.User

func (*Store_Expecter) DeleteUser

func (_e *Store_Expecter) DeleteUser(ctx interface{}, evmAddress interface{}) *Store_DeleteUser_Call

DeleteUser is a helper method to define mock.On call

  • ctx context.Context
  • evmAddress string

func (*Store_Expecter) GetUserByCantonPartyID

func (_e *Store_Expecter) GetUserByCantonPartyID(ctx interface{}, partyID interface{}) *Store_GetUserByCantonPartyID_Call

GetUserByCantonPartyID is a helper method to define mock.On call

  • ctx context.Context
  • partyID string

func (*Store_Expecter) GetUserByEVMAddress

func (_e *Store_Expecter) GetUserByEVMAddress(ctx interface{}, evmAddress interface{}) *Store_GetUserByEVMAddress_Call

GetUserByEVMAddress is a helper method to define mock.On call

  • ctx context.Context
  • evmAddress string

func (*Store_Expecter) IsWhitelisted

func (_e *Store_Expecter) IsWhitelisted(ctx interface{}, evmAddress interface{}) *Store_IsWhitelisted_Call

IsWhitelisted is a helper method to define mock.On call

  • ctx context.Context
  • evmAddress string

func (*Store_Expecter) UserExists

func (_e *Store_Expecter) UserExists(ctx interface{}, evmAddress interface{}) *Store_UserExists_Call

UserExists is a helper method to define mock.On call

  • ctx context.Context
  • evmAddress string

type Store_GetUserByCantonPartyID_Call

type Store_GetUserByCantonPartyID_Call struct {
	*mock.Call
}

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

func (*Store_GetUserByCantonPartyID_Call) Return

func (*Store_GetUserByCantonPartyID_Call) Run

func (*Store_GetUserByCantonPartyID_Call) RunAndReturn

type Store_GetUserByEVMAddress_Call

type Store_GetUserByEVMAddress_Call struct {
	*mock.Call
}

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

func (*Store_GetUserByEVMAddress_Call) Return

func (*Store_GetUserByEVMAddress_Call) Run

func (*Store_GetUserByEVMAddress_Call) RunAndReturn

type Store_IsWhitelisted_Call

type Store_IsWhitelisted_Call struct {
	*mock.Call
}

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

func (*Store_IsWhitelisted_Call) Return

func (*Store_IsWhitelisted_Call) Run

func (_c *Store_IsWhitelisted_Call) Run(run func(ctx context.Context, evmAddress string)) *Store_IsWhitelisted_Call

func (*Store_IsWhitelisted_Call) RunAndReturn

type Store_UserExists_Call

type Store_UserExists_Call struct {
	*mock.Call
}

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

func (*Store_UserExists_Call) Return

func (_c *Store_UserExists_Call) Return(_a0 bool, _a1 error) *Store_UserExists_Call

func (*Store_UserExists_Call) Run

func (_c *Store_UserExists_Call) Run(run func(ctx context.Context, evmAddress string)) *Store_UserExists_Call

func (*Store_UserExists_Call) RunAndReturn

func (_c *Store_UserExists_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *Store_UserExists_Call

type TopologyCacheProvider

type TopologyCacheProvider struct {
	mock.Mock
}

TopologyCacheProvider is an autogenerated mock type for the TopologyCacheProvider type

func NewTopologyCacheProvider

func NewTopologyCacheProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *TopologyCacheProvider

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

func (*TopologyCacheProvider) GetAndDelete

func (_m *TopologyCacheProvider) GetAndDelete(token string) (*user.PendingTopology, error)

GetAndDelete provides a mock function with given fields: token

func (*TopologyCacheProvider) Put

func (_m *TopologyCacheProvider) Put(token string, topo *identity.ExternalPartyTopology, spkiKey []byte)

Put provides a mock function with given fields: token, topo, spkiKey

type TopologyCacheProvider_Expecter

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

func (*TopologyCacheProvider_Expecter) GetAndDelete

func (_e *TopologyCacheProvider_Expecter) GetAndDelete(token interface{}) *TopologyCacheProvider_GetAndDelete_Call

GetAndDelete is a helper method to define mock.On call

  • token string

func (*TopologyCacheProvider_Expecter) Put

func (_e *TopologyCacheProvider_Expecter) Put(token interface{}, topo interface{}, spkiKey interface{}) *TopologyCacheProvider_Put_Call

Put is a helper method to define mock.On call

  • token string
  • topo *identity.ExternalPartyTopology
  • spkiKey []byte

type TopologyCacheProvider_GetAndDelete_Call

type TopologyCacheProvider_GetAndDelete_Call struct {
	*mock.Call
}

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

func (*TopologyCacheProvider_GetAndDelete_Call) Return

func (*TopologyCacheProvider_GetAndDelete_Call) Run

func (*TopologyCacheProvider_GetAndDelete_Call) RunAndReturn

type TopologyCacheProvider_Put_Call

type TopologyCacheProvider_Put_Call struct {
	*mock.Call
}

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

func (*TopologyCacheProvider_Put_Call) Return

func (*TopologyCacheProvider_Put_Call) Run

func (*TopologyCacheProvider_Put_Call) RunAndReturn

Jump to

Keyboard shortcuts

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