mocks

package
v1.87.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 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 AttestationStateServiceClient

type AttestationStateServiceClient struct {
	mock.Mock
}

AttestationStateServiceClient is an autogenerated mock type for the AttestationStateServiceClient type

func NewAttestationStateServiceClient

func NewAttestationStateServiceClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *AttestationStateServiceClient

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

func (*AttestationStateServiceClient) Initialized

func (_mock *AttestationStateServiceClient) Initialized(ctx context.Context, in *v1.AttestationStateServiceInitializedRequest, opts ...grpc.CallOption) (*v1.AttestationStateServiceInitializedResponse, error)

Initialized provides a mock function for the type AttestationStateServiceClient

func (*AttestationStateServiceClient) Read

func (_mock *AttestationStateServiceClient) Read(ctx context.Context, in *v1.AttestationStateServiceReadRequest, opts ...grpc.CallOption) (*v1.AttestationStateServiceReadResponse, error)

Read provides a mock function for the type AttestationStateServiceClient

func (*AttestationStateServiceClient) Reset

func (_mock *AttestationStateServiceClient) Reset(ctx context.Context, in *v1.AttestationStateServiceResetRequest, opts ...grpc.CallOption) (*v1.AttestationStateServiceResetResponse, error)

Reset provides a mock function for the type AttestationStateServiceClient

func (*AttestationStateServiceClient) Save

func (_mock *AttestationStateServiceClient) Save(ctx context.Context, in *v1.AttestationStateServiceSaveRequest, opts ...grpc.CallOption) (*v1.AttestationStateServiceSaveResponse, error)

Save provides a mock function for the type AttestationStateServiceClient

type AttestationStateServiceClient_Expecter

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

func (*AttestationStateServiceClient_Expecter) Initialized

func (_e *AttestationStateServiceClient_Expecter) Initialized(ctx interface{}, in interface{}, opts ...interface{}) *AttestationStateServiceClient_Initialized_Call

Initialized is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.AttestationStateServiceInitializedRequest
  • opts ...grpc.CallOption

func (*AttestationStateServiceClient_Expecter) Read

func (_e *AttestationStateServiceClient_Expecter) Read(ctx interface{}, in interface{}, opts ...interface{}) *AttestationStateServiceClient_Read_Call

Read is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.AttestationStateServiceReadRequest
  • opts ...grpc.CallOption

func (*AttestationStateServiceClient_Expecter) Reset

func (_e *AttestationStateServiceClient_Expecter) Reset(ctx interface{}, in interface{}, opts ...interface{}) *AttestationStateServiceClient_Reset_Call

Reset is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.AttestationStateServiceResetRequest
  • opts ...grpc.CallOption

func (*AttestationStateServiceClient_Expecter) Save

func (_e *AttestationStateServiceClient_Expecter) Save(ctx interface{}, in interface{}, opts ...interface{}) *AttestationStateServiceClient_Save_Call

Save is a helper method to define mock.On call

  • ctx context.Context
  • in *v1.AttestationStateServiceSaveRequest
  • opts ...grpc.CallOption

type AttestationStateServiceClient_Initialized_Call

type AttestationStateServiceClient_Initialized_Call struct {
	*mock.Call
}

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

func (*AttestationStateServiceClient_Initialized_Call) Return

func (_c *AttestationStateServiceClient_Initialized_Call) Return(attestationStateServiceInitializedResponse *v1.AttestationStateServiceInitializedResponse, err error) *AttestationStateServiceClient_Initialized_Call

func (*AttestationStateServiceClient_Initialized_Call) Run

func (_c *AttestationStateServiceClient_Initialized_Call) Run(run func(ctx context.Context, in *v1.AttestationStateServiceInitializedRequest, opts ...grpc.CallOption)) *AttestationStateServiceClient_Initialized_Call

func (*AttestationStateServiceClient_Initialized_Call) RunAndReturn

func (_c *AttestationStateServiceClient_Initialized_Call) RunAndReturn(run func(ctx context.Context, in *v1.AttestationStateServiceInitializedRequest, opts ...grpc.CallOption) (*v1.AttestationStateServiceInitializedResponse, error)) *AttestationStateServiceClient_Initialized_Call

type AttestationStateServiceClient_Read_Call

type AttestationStateServiceClient_Read_Call struct {
	*mock.Call
}

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

func (*AttestationStateServiceClient_Read_Call) Return

func (_c *AttestationStateServiceClient_Read_Call) Return(attestationStateServiceReadResponse *v1.AttestationStateServiceReadResponse, err error) *AttestationStateServiceClient_Read_Call

func (*AttestationStateServiceClient_Read_Call) Run

func (_c *AttestationStateServiceClient_Read_Call) Run(run func(ctx context.Context, in *v1.AttestationStateServiceReadRequest, opts ...grpc.CallOption)) *AttestationStateServiceClient_Read_Call

func (*AttestationStateServiceClient_Read_Call) RunAndReturn

func (_c *AttestationStateServiceClient_Read_Call) RunAndReturn(run func(ctx context.Context, in *v1.AttestationStateServiceReadRequest, opts ...grpc.CallOption) (*v1.AttestationStateServiceReadResponse, error)) *AttestationStateServiceClient_Read_Call

type AttestationStateServiceClient_Reset_Call

type AttestationStateServiceClient_Reset_Call struct {
	*mock.Call
}

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

func (*AttestationStateServiceClient_Reset_Call) Return

func (_c *AttestationStateServiceClient_Reset_Call) Return(attestationStateServiceResetResponse *v1.AttestationStateServiceResetResponse, err error) *AttestationStateServiceClient_Reset_Call

func (*AttestationStateServiceClient_Reset_Call) Run

func (_c *AttestationStateServiceClient_Reset_Call) Run(run func(ctx context.Context, in *v1.AttestationStateServiceResetRequest, opts ...grpc.CallOption)) *AttestationStateServiceClient_Reset_Call

func (*AttestationStateServiceClient_Reset_Call) RunAndReturn

func (_c *AttestationStateServiceClient_Reset_Call) RunAndReturn(run func(ctx context.Context, in *v1.AttestationStateServiceResetRequest, opts ...grpc.CallOption) (*v1.AttestationStateServiceResetResponse, error)) *AttestationStateServiceClient_Reset_Call

type AttestationStateServiceClient_Save_Call

type AttestationStateServiceClient_Save_Call struct {
	*mock.Call
}

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

func (*AttestationStateServiceClient_Save_Call) Return

func (_c *AttestationStateServiceClient_Save_Call) Return(attestationStateServiceSaveResponse *v1.AttestationStateServiceSaveResponse, err error) *AttestationStateServiceClient_Save_Call

func (*AttestationStateServiceClient_Save_Call) Run

func (_c *AttestationStateServiceClient_Save_Call) Run(run func(ctx context.Context, in *v1.AttestationStateServiceSaveRequest, opts ...grpc.CallOption)) *AttestationStateServiceClient_Save_Call

func (*AttestationStateServiceClient_Save_Call) RunAndReturn

func (_c *AttestationStateServiceClient_Save_Call) RunAndReturn(run func(ctx context.Context, in *v1.AttestationStateServiceSaveRequest, opts ...grpc.CallOption) (*v1.AttestationStateServiceSaveResponse, error)) *AttestationStateServiceClient_Save_Call

Jump to

Keyboard shortcuts

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