mocks

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SDK

type SDK struct {
	mock.Mock
}

SDK is an autogenerated mock type for the SDK type

func NewSDK

func NewSDK(t interface {
	mock.TestingT
	Cleanup(func())
}) *SDK

NewSDK creates a new instance of SDK. 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 (*SDK) Algo

func (_m *SDK) Algo(ctx context.Context, algorithm *os.File, requirements *os.File, privKey interface{}) error

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

func (*SDK) Attestation

func (_m *SDK) Attestation(ctx context.Context, reportData [64]byte, attestationFile *os.File) error

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

func (*SDK) Data

func (_m *SDK) Data(ctx context.Context, dataset *os.File, filename string, privKey interface{}) error

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

func (*SDK) EXPECT

func (_m *SDK) EXPECT() *SDK_Expecter

func (*SDK) Result

func (_m *SDK) Result(ctx context.Context, privKey interface{}, resultFile *os.File) error

Result provides a mock function with given fields: ctx, privKey, resultFile

type SDK_Algo_Call

type SDK_Algo_Call struct {
	*mock.Call
}

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

func (*SDK_Algo_Call) Return

func (_c *SDK_Algo_Call) Return(_a0 error) *SDK_Algo_Call

func (*SDK_Algo_Call) Run

func (_c *SDK_Algo_Call) Run(run func(ctx context.Context, algorithm *os.File, requirements *os.File, privKey interface{})) *SDK_Algo_Call

func (*SDK_Algo_Call) RunAndReturn

func (_c *SDK_Algo_Call) RunAndReturn(run func(context.Context, *os.File, *os.File, interface{}) error) *SDK_Algo_Call

type SDK_Attestation_Call

type SDK_Attestation_Call struct {
	*mock.Call
}

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

func (*SDK_Attestation_Call) Return

func (*SDK_Attestation_Call) Run

func (_c *SDK_Attestation_Call) Run(run func(ctx context.Context, reportData [64]byte, attestationFile *os.File)) *SDK_Attestation_Call

func (*SDK_Attestation_Call) RunAndReturn

func (_c *SDK_Attestation_Call) RunAndReturn(run func(context.Context, [64]byte, *os.File) error) *SDK_Attestation_Call

type SDK_Data_Call

type SDK_Data_Call struct {
	*mock.Call
}

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

func (*SDK_Data_Call) Return

func (_c *SDK_Data_Call) Return(_a0 error) *SDK_Data_Call

func (*SDK_Data_Call) Run

func (_c *SDK_Data_Call) Run(run func(ctx context.Context, dataset *os.File, filename string, privKey interface{})) *SDK_Data_Call

func (*SDK_Data_Call) RunAndReturn

func (_c *SDK_Data_Call) RunAndReturn(run func(context.Context, *os.File, string, interface{}) error) *SDK_Data_Call

type SDK_Expecter

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

func (*SDK_Expecter) Algo

func (_e *SDK_Expecter) Algo(ctx interface{}, algorithm interface{}, requirements interface{}, privKey interface{}) *SDK_Algo_Call

Algo is a helper method to define mock.On call

  • ctx context.Context
  • algorithm *os.File
  • requirements *os.File
  • privKey interface{}

func (*SDK_Expecter) Attestation

func (_e *SDK_Expecter) Attestation(ctx interface{}, reportData interface{}, attestationFile interface{}) *SDK_Attestation_Call

Attestation is a helper method to define mock.On call

  • ctx context.Context
  • reportData [64]byte
  • attestationFile *os.File

func (*SDK_Expecter) Data

func (_e *SDK_Expecter) Data(ctx interface{}, dataset interface{}, filename interface{}, privKey interface{}) *SDK_Data_Call

Data is a helper method to define mock.On call

  • ctx context.Context
  • dataset *os.File
  • filename string
  • privKey interface{}

func (*SDK_Expecter) Result

func (_e *SDK_Expecter) Result(ctx interface{}, privKey interface{}, resultFile interface{}) *SDK_Result_Call

Result is a helper method to define mock.On call

  • ctx context.Context
  • privKey interface{}
  • resultFile *os.File

type SDK_Result_Call

type SDK_Result_Call struct {
	*mock.Call
}

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

func (*SDK_Result_Call) Return

func (_c *SDK_Result_Call) Return(_a0 error) *SDK_Result_Call

func (*SDK_Result_Call) Run

func (_c *SDK_Result_Call) Run(run func(ctx context.Context, privKey interface{}, resultFile *os.File)) *SDK_Result_Call

func (*SDK_Result_Call) RunAndReturn

func (_c *SDK_Result_Call) RunAndReturn(run func(context.Context, interface{}, *os.File) error) *SDK_Result_Call

Jump to

Keyboard shortcuts

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