Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDGenerator added in v0.0.24

type IDGenerator struct {
	mock.Mock
}

IDGenerator is an autogenerated mock type for the IDGenerator type

func NewIDGenerator added in v0.0.24

func NewIDGenerator(t interface {
	mock.TestingT
	Cleanup(func())
}) *IDGenerator

NewIDGenerator creates a new instance of IDGenerator. 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 (*IDGenerator) EXPECT added in v0.0.24

func (_m *IDGenerator) EXPECT() *IDGenerator_Expecter

func (*IDGenerator) GenerateFromProof added in v0.0.24

func (_mock *IDGenerator) GenerateFromProof(ctx context.Context, proof *types.Proof) (string, *types0.Issuer, error)

GenerateFromProof provides a mock function for the type IDGenerator

type IDGenerator_Expecter added in v0.0.24

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

func (*IDGenerator_Expecter) GenerateFromProof added in v0.0.24

func (_e *IDGenerator_Expecter) GenerateFromProof(ctx interface{}, proof interface{}) *IDGenerator_GenerateFromProof_Call

GenerateFromProof is a helper method to define mock.On call

  • ctx context.Context
  • proof *types.Proof

type IDGenerator_GenerateFromProof_Call added in v0.0.24

type IDGenerator_GenerateFromProof_Call struct {
	*mock.Call
}

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

func (*IDGenerator_GenerateFromProof_Call) Return added in v0.0.24

func (*IDGenerator_GenerateFromProof_Call) Run added in v0.0.24

func (*IDGenerator_GenerateFromProof_Call) RunAndReturn added in v0.0.24

type IdService

type IdService struct {
	mock.Mock
}

IdService is an autogenerated mock type for the IdService type

func NewIdService

func NewIdService(t interface {
	mock.TestingT
	Cleanup(func())
}) *IdService

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

func (_m *IdService) EXPECT() *IdService_Expecter

func (*IdService) Generate

func (_mock *IdService) Generate(ctx context.Context, issuer *types.Issuer, proof *types0.Proof) (*types1.ResolverMetadata, error)

Generate provides a mock function for the type IdService

func (*IdService) Resolve

func (_mock *IdService) Resolve(ctx context.Context, id string) (*types1.ResolverMetadata, error)

Resolve provides a mock function for the type IdService

type IdService_Expecter

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

func (*IdService_Expecter) Generate

func (_e *IdService_Expecter) Generate(ctx interface{}, issuer interface{}, proof interface{}) *IdService_Generate_Call

Generate is a helper method to define mock.On call

  • ctx context.Context
  • issuer *types.Issuer
  • proof *types0.Proof

func (*IdService_Expecter) Resolve

func (_e *IdService_Expecter) Resolve(ctx interface{}, id interface{}) *IdService_Resolve_Call

Resolve is a helper method to define mock.On call

  • ctx context.Context
  • id string

type IdService_Generate_Call

type IdService_Generate_Call struct {
	*mock.Call
}

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

func (*IdService_Generate_Call) Return

func (_c *IdService_Generate_Call) Return(resolverMetadata *types1.ResolverMetadata, err error) *IdService_Generate_Call

func (*IdService_Generate_Call) Run

func (_c *IdService_Generate_Call) Run(run func(ctx context.Context, issuer *types.Issuer, proof *types0.Proof)) *IdService_Generate_Call

func (*IdService_Generate_Call) RunAndReturn

func (_c *IdService_Generate_Call) RunAndReturn(run func(ctx context.Context, issuer *types.Issuer, proof *types0.Proof) (*types1.ResolverMetadata, error)) *IdService_Generate_Call

type IdService_Resolve_Call

type IdService_Resolve_Call struct {
	*mock.Call
}

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

func (*IdService_Resolve_Call) Return

func (_c *IdService_Resolve_Call) Return(resolverMetadata *types1.ResolverMetadata, err error) *IdService_Resolve_Call

func (*IdService_Resolve_Call) Run

func (*IdService_Resolve_Call) RunAndReturn

type IssuerService

type IssuerService struct {
	mock.Mock
}

IssuerService is an autogenerated mock type for the IssuerService type

func NewIssuerService

func NewIssuerService(t interface {
	mock.TestingT
	Cleanup(func())
}) *IssuerService

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

func (_m *IssuerService) EXPECT() *IssuerService_Expecter

func (*IssuerService) GetJwks

func (_mock *IssuerService) GetJwks(ctx context.Context, commonName string) (*jwk.Jwks, error)

GetJwks provides a mock function for the type IssuerService

func (*IssuerService) Register

func (_mock *IssuerService) Register(ctx context.Context, issuer *types.Issuer, proof *types0.Proof) error

Register provides a mock function for the type IssuerService

type IssuerService_Expecter

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

func (*IssuerService_Expecter) GetJwks

func (_e *IssuerService_Expecter) GetJwks(ctx interface{}, commonName interface{}) *IssuerService_GetJwks_Call

GetJwks is a helper method to define mock.On call

  • ctx context.Context
  • commonName string

func (*IssuerService_Expecter) Register

func (_e *IssuerService_Expecter) Register(ctx interface{}, issuer interface{}, proof interface{}) *IssuerService_Register_Call

Register is a helper method to define mock.On call

  • ctx context.Context
  • issuer *types.Issuer
  • proof *types0.Proof

type IssuerService_GetJwks_Call

type IssuerService_GetJwks_Call struct {
	*mock.Call
}

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

func (*IssuerService_GetJwks_Call) Return

func (*IssuerService_GetJwks_Call) Run

func (_c *IssuerService_GetJwks_Call) Run(run func(ctx context.Context, commonName string)) *IssuerService_GetJwks_Call

func (*IssuerService_GetJwks_Call) RunAndReturn

func (_c *IssuerService_GetJwks_Call) RunAndReturn(run func(ctx context.Context, commonName string) (*jwk.Jwks, error)) *IssuerService_GetJwks_Call

type IssuerService_Register_Call

type IssuerService_Register_Call struct {
	*mock.Call
}

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

func (*IssuerService_Register_Call) Return

func (*IssuerService_Register_Call) Run

func (*IssuerService_Register_Call) RunAndReturn

func (_c *IssuerService_Register_Call) RunAndReturn(run func(ctx context.Context, issuer *types.Issuer, proof *types0.Proof) error) *IssuerService_Register_Call

type VerifiableCredentialService

type VerifiableCredentialService struct {
	mock.Mock
}

VerifiableCredentialService is an autogenerated mock type for the VerifiableCredentialService type

func NewVerifiableCredentialService

func NewVerifiableCredentialService(t interface {
	mock.TestingT
	Cleanup(func())
}) *VerifiableCredentialService

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

func (*VerifiableCredentialService) GetVcs

func (_mock *VerifiableCredentialService) GetVcs(ctx context.Context, resolverMetadataID string) ([]*types.EnvelopedCredential, error)

GetVcs provides a mock function for the type VerifiableCredentialService

func (*VerifiableCredentialService) Publish

func (_mock *VerifiableCredentialService) Publish(ctx context.Context, credential *types.EnvelopedCredential, proof *types.Proof) error

Publish provides a mock function for the type VerifiableCredentialService

func (*VerifiableCredentialService) Revoke

func (_mock *VerifiableCredentialService) Revoke(ctx context.Context, credential *types.EnvelopedCredential, proof *types.Proof) error

Revoke provides a mock function for the type VerifiableCredentialService

func (*VerifiableCredentialService) Verify

Verify provides a mock function for the type VerifiableCredentialService

type VerifiableCredentialService_Expecter

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

func (*VerifiableCredentialService_Expecter) GetVcs

func (_e *VerifiableCredentialService_Expecter) GetVcs(ctx interface{}, resolverMetadataID interface{}) *VerifiableCredentialService_GetVcs_Call

GetVcs is a helper method to define mock.On call

  • ctx context.Context
  • resolverMetadataID string

func (*VerifiableCredentialService_Expecter) Publish

func (_e *VerifiableCredentialService_Expecter) Publish(ctx interface{}, credential interface{}, proof interface{}) *VerifiableCredentialService_Publish_Call

Publish is a helper method to define mock.On call

  • ctx context.Context
  • credential *types.EnvelopedCredential
  • proof *types.Proof

func (*VerifiableCredentialService_Expecter) Revoke

func (_e *VerifiableCredentialService_Expecter) Revoke(ctx interface{}, credential interface{}, proof interface{}) *VerifiableCredentialService_Revoke_Call

Revoke is a helper method to define mock.On call

  • ctx context.Context
  • credential *types.EnvelopedCredential
  • proof *types.Proof

func (*VerifiableCredentialService_Expecter) Verify

func (_e *VerifiableCredentialService_Expecter) Verify(ctx interface{}, credential interface{}) *VerifiableCredentialService_Verify_Call

Verify is a helper method to define mock.On call

  • ctx context.Context
  • credential *types.EnvelopedCredential

type VerifiableCredentialService_GetVcs_Call

type VerifiableCredentialService_GetVcs_Call struct {
	*mock.Call
}

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

func (*VerifiableCredentialService_GetVcs_Call) Return

func (*VerifiableCredentialService_GetVcs_Call) Run

func (*VerifiableCredentialService_GetVcs_Call) RunAndReturn

type VerifiableCredentialService_Publish_Call

type VerifiableCredentialService_Publish_Call struct {
	*mock.Call
}

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

func (*VerifiableCredentialService_Publish_Call) Return

func (*VerifiableCredentialService_Publish_Call) Run

func (*VerifiableCredentialService_Publish_Call) RunAndReturn

type VerifiableCredentialService_Revoke_Call

type VerifiableCredentialService_Revoke_Call struct {
	*mock.Call
}

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

func (*VerifiableCredentialService_Revoke_Call) Return

func (*VerifiableCredentialService_Revoke_Call) Run

func (*VerifiableCredentialService_Revoke_Call) RunAndReturn

type VerifiableCredentialService_Verify_Call

type VerifiableCredentialService_Verify_Call struct {
	*mock.Call
}

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

func (*VerifiableCredentialService_Verify_Call) Return

func (*VerifiableCredentialService_Verify_Call) Run

func (*VerifiableCredentialService_Verify_Call) RunAndReturn

Jump to

Keyboard shortcuts

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