mocks

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 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 Authenticator

type Authenticator struct {
	mock.Mock
}

Authenticator is an autogenerated mock type for the Authenticator type

func NewAuthenticator

func NewAuthenticator(t interface {
	mock.TestingT
	Cleanup(func())
}) *Authenticator

NewAuthenticator creates a new instance of Authenticator. 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 (*Authenticator) AuthenticateUser

func (_m *Authenticator) AuthenticateUser(ctx context.Context, role auth.UserRole) (context.Context, error)

AuthenticateUser provides a mock function with given fields: ctx, role

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

func (_m *Service) Algo(ctx context.Context, algorithm agent.Algorithm) error

Algo provides a mock function with given fields: ctx, algorithm

func (*Service) Attestation

func (_m *Service) Attestation(ctx context.Context, reportData [64]byte) ([]byte, error)

Attestation provides a mock function with given fields: ctx, reportData

func (*Service) Data

func (_m *Service) Data(ctx context.Context, dataset agent.Dataset) error

Data provides a mock function with given fields: ctx, dataset

func (*Service) Result

func (_m *Service) Result(ctx context.Context) ([]byte, error)

Result provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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