Documentation
¶
Index ¶
- func NewMockedManagementService(t *testing.T, tmsID token.TMSID) *token.ManagementService
- func NewMockedManagementServiceWithIssuers(t *testing.T, tmsID token.TMSID, issuers []token.Identity) (*token.ManagementService, *mock.PublicParameters, *mock.Deserializer)
- func NewMockedManagementServiceWithValidation(t *testing.T, tmsID token.TMSID) (*token.ManagementService, *mock.Validator)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMockedManagementService ¶
NewMockedManagementService returns a mocked token.ManagementService
func NewMockedManagementServiceWithIssuers ¶ added in v0.16.0
func NewMockedManagementServiceWithIssuers(t *testing.T, tmsID token.TMSID, issuers []token.Identity) (*token.ManagementService, *mock.PublicParameters, *mock.Deserializer)
NewMockedManagementServiceWithIssuers returns a mocked token.ManagementService whose public parameters report the given issuers and whose Deserializer resolves issuer verifiers via the returned mock.Deserializer, so tests can control signature verification outcomes with deserializer.GetIssuerVerifierReturns. The returned mock.PublicParameters lets tests further adjust the current public parameters (e.g. pp.IssuersReturns(nil) to simulate no issuers).
func NewMockedManagementServiceWithValidation ¶
func NewMockedManagementServiceWithValidation(t *testing.T, tmsID token.TMSID) (*token.ManagementService, *mock.Validator)
NewMockedManagementServiceWithValidation returns a mocked token.ManagementService and a validator
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.