mocks

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Issuer

type Issuer struct {
	mock.Mock
}

Issuer is an autogenerated mock type for the Issuer type

func NewIssuer

func NewIssuer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Issuer

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

func (_m *Issuer) EXPECT() *Issuer_Expecter

func (*Issuer) Issue

func (_m *Issuer) Issue(evmAddress string, cantonPartyID string) (string, time.Time, error)

Issue provides a mock function with given fields: evmAddress, cantonPartyID

func (*Issuer) JWKS

func (_m *Issuer) JWKS() jwt.JWKS

JWKS provides a mock function with no fields

type Issuer_Expecter

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

func (*Issuer_Expecter) Issue

func (_e *Issuer_Expecter) Issue(evmAddress interface{}, cantonPartyID interface{}) *Issuer_Issue_Call

Issue is a helper method to define mock.On call

  • evmAddress string
  • cantonPartyID string

func (*Issuer_Expecter) JWKS

func (_e *Issuer_Expecter) JWKS() *Issuer_JWKS_Call

JWKS is a helper method to define mock.On call

type Issuer_Issue_Call

type Issuer_Issue_Call struct {
	*mock.Call
}

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

func (*Issuer_Issue_Call) Return

func (_c *Issuer_Issue_Call) Return(_a0 string, _a1 time.Time, _a2 error) *Issuer_Issue_Call

func (*Issuer_Issue_Call) Run

func (_c *Issuer_Issue_Call) Run(run func(evmAddress string, cantonPartyID string)) *Issuer_Issue_Call

func (*Issuer_Issue_Call) RunAndReturn

func (_c *Issuer_Issue_Call) RunAndReturn(run func(string, string) (string, time.Time, error)) *Issuer_Issue_Call

type Issuer_JWKS_Call

type Issuer_JWKS_Call struct {
	*mock.Call
}

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

func (*Issuer_JWKS_Call) Return

func (_c *Issuer_JWKS_Call) Return(_a0 jwt.JWKS) *Issuer_JWKS_Call

func (*Issuer_JWKS_Call) Run

func (_c *Issuer_JWKS_Call) Run(run func()) *Issuer_JWKS_Call

func (*Issuer_JWKS_Call) RunAndReturn

func (_c *Issuer_JWKS_Call) RunAndReturn(run func() jwt.JWKS) *Issuer_JWKS_Call

type NonceStore

type NonceStore struct {
	mock.Mock
}

NonceStore is an autogenerated mock type for the NonceStore type

func NewNonceStore

func NewNonceStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *NonceStore

NewNonceStore creates a new instance of NonceStore. 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 (*NonceStore) Consume

func (_m *NonceStore) Consume(nonce string) bool

Consume provides a mock function with given fields: nonce

func (*NonceStore) EXPECT

func (_m *NonceStore) EXPECT() *NonceStore_Expecter

func (*NonceStore) Issue

func (_m *NonceStore) Issue(address string) (string, error)

Issue provides a mock function with given fields: address

type NonceStore_Consume_Call

type NonceStore_Consume_Call struct {
	*mock.Call
}

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

func (*NonceStore_Consume_Call) Return

func (*NonceStore_Consume_Call) Run

func (_c *NonceStore_Consume_Call) Run(run func(nonce string)) *NonceStore_Consume_Call

func (*NonceStore_Consume_Call) RunAndReturn

func (_c *NonceStore_Consume_Call) RunAndReturn(run func(string) bool) *NonceStore_Consume_Call

type NonceStore_Expecter

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

func (*NonceStore_Expecter) Consume

func (_e *NonceStore_Expecter) Consume(nonce interface{}) *NonceStore_Consume_Call

Consume is a helper method to define mock.On call

  • nonce string

func (*NonceStore_Expecter) Issue

func (_e *NonceStore_Expecter) Issue(address interface{}) *NonceStore_Issue_Call

Issue is a helper method to define mock.On call

  • address string

type NonceStore_Issue_Call

type NonceStore_Issue_Call struct {
	*mock.Call
}

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

func (*NonceStore_Issue_Call) Return

func (*NonceStore_Issue_Call) Run

func (_c *NonceStore_Issue_Call) Run(run func(address string)) *NonceStore_Issue_Call

func (*NonceStore_Issue_Call) RunAndReturn

func (_c *NonceStore_Issue_Call) RunAndReturn(run func(string) (string, error)) *NonceStore_Issue_Call

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) JWKS

func (_m *Service) JWKS() jwt.JWKS

JWKS provides a mock function with no fields

func (*Service) Login

func (_m *Service) Login(ctx context.Context, message string, signature string) (*auth.LoginResponse, error)

Login provides a mock function with given fields: ctx, message, signature

func (*Service) Nonce

func (_m *Service) Nonce(address string) (string, error)

Nonce provides a mock function with given fields: address

type Service_Expecter

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

func (*Service_Expecter) JWKS

func (_e *Service_Expecter) JWKS() *Service_JWKS_Call

JWKS is a helper method to define mock.On call

func (*Service_Expecter) Login

func (_e *Service_Expecter) Login(ctx interface{}, message interface{}, signature interface{}) *Service_Login_Call

Login is a helper method to define mock.On call

  • ctx context.Context
  • message string
  • signature string

func (*Service_Expecter) Nonce

func (_e *Service_Expecter) Nonce(address interface{}) *Service_Nonce_Call

Nonce is a helper method to define mock.On call

  • address string

type Service_JWKS_Call

type Service_JWKS_Call struct {
	*mock.Call
}

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

func (*Service_JWKS_Call) Return

func (_c *Service_JWKS_Call) Return(_a0 jwt.JWKS) *Service_JWKS_Call

func (*Service_JWKS_Call) Run

func (_c *Service_JWKS_Call) Run(run func()) *Service_JWKS_Call

func (*Service_JWKS_Call) RunAndReturn

func (_c *Service_JWKS_Call) RunAndReturn(run func() jwt.JWKS) *Service_JWKS_Call

type Service_Login_Call

type Service_Login_Call struct {
	*mock.Call
}

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

func (*Service_Login_Call) Return

func (*Service_Login_Call) Run

func (_c *Service_Login_Call) Run(run func(ctx context.Context, message string, signature string)) *Service_Login_Call

func (*Service_Login_Call) RunAndReturn

type Service_Nonce_Call

type Service_Nonce_Call struct {
	*mock.Call
}

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

func (*Service_Nonce_Call) Return

func (_c *Service_Nonce_Call) Return(_a0 string, _a1 error) *Service_Nonce_Call

func (*Service_Nonce_Call) Run

func (_c *Service_Nonce_Call) Run(run func(address string)) *Service_Nonce_Call

func (*Service_Nonce_Call) RunAndReturn

func (_c *Service_Nonce_Call) RunAndReturn(run func(string) (string, error)) *Service_Nonce_Call

type UserLookup

type UserLookup struct {
	mock.Mock
}

UserLookup is an autogenerated mock type for the UserLookup type

func NewUserLookup

func NewUserLookup(t interface {
	mock.TestingT
	Cleanup(func())
}) *UserLookup

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

func (_m *UserLookup) EXPECT() *UserLookup_Expecter

func (*UserLookup) GetUserByEVMAddress

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

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

type UserLookup_Expecter

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

func (*UserLookup_Expecter) GetUserByEVMAddress

func (_e *UserLookup_Expecter) GetUserByEVMAddress(ctx interface{}, evmAddress interface{}) *UserLookup_GetUserByEVMAddress_Call

GetUserByEVMAddress is a helper method to define mock.On call

  • ctx context.Context
  • evmAddress string

type UserLookup_GetUserByEVMAddress_Call

type UserLookup_GetUserByEVMAddress_Call struct {
	*mock.Call
}

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

func (*UserLookup_GetUserByEVMAddress_Call) Return

func (*UserLookup_GetUserByEVMAddress_Call) Run

func (*UserLookup_GetUserByEVMAddress_Call) RunAndReturn

type Verifier

type Verifier struct {
	mock.Mock
}

Verifier is an autogenerated mock type for the Verifier type

func NewVerifier

func NewVerifier(t interface {
	mock.TestingT
	Cleanup(func())
}) *Verifier

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

func (_m *Verifier) EXPECT() *Verifier_Expecter

func (*Verifier) Verify

func (_m *Verifier) Verify(message string, signature string) (common.Address, string, error)

Verify provides a mock function with given fields: message, signature

type Verifier_Expecter

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

func (*Verifier_Expecter) Verify

func (_e *Verifier_Expecter) Verify(message interface{}, signature interface{}) *Verifier_Verify_Call

Verify is a helper method to define mock.On call

  • message string
  • signature string

type Verifier_Verify_Call

type Verifier_Verify_Call struct {
	*mock.Call
}

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

func (*Verifier_Verify_Call) Return

func (*Verifier_Verify_Call) Run

func (_c *Verifier_Verify_Call) Run(run func(message string, signature string)) *Verifier_Verify_Call

func (*Verifier_Verify_Call) RunAndReturn

Jump to

Keyboard shortcuts

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