mocks

package
v1.15.3 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2025 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 CacheServiceClient

type CacheServiceClient struct {
	mock.Mock
}

CacheServiceClient is an autogenerated mock type for the CacheServiceClient type

func NewCacheServiceClient added in v1.15.2

func NewCacheServiceClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *CacheServiceClient

NewCacheServiceClient creates a new instance of CacheServiceClient. 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 (*CacheServiceClient) Delete

Delete provides a mock function with given fields: ctx, in, opts

func (*CacheServiceClient) EXPECT added in v1.15.2

func (*CacheServiceClient) Get

Get provides a mock function with given fields: ctx, in, opts

func (*CacheServiceClient) GetOrExtendReservation

GetOrExtendReservation provides a mock function with given fields: ctx, in, opts

func (*CacheServiceClient) Put

Put provides a mock function with given fields: ctx, in, opts

func (*CacheServiceClient) ReleaseReservation

ReleaseReservation provides a mock function with given fields: ctx, in, opts

type CacheServiceClient_Delete_Call added in v1.15.2

type CacheServiceClient_Delete_Call struct {
	*mock.Call
}

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

func (*CacheServiceClient_Delete_Call) Return added in v1.15.2

func (*CacheServiceClient_Delete_Call) Run added in v1.15.2

func (*CacheServiceClient_Delete_Call) RunAndReturn added in v1.15.2

type CacheServiceClient_Expecter added in v1.15.2

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

func (*CacheServiceClient_Expecter) Delete added in v1.15.2

func (_e *CacheServiceClient_Expecter) Delete(ctx interface{}, in interface{}, opts ...interface{}) *CacheServiceClient_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • in *cacheservice.DeleteCacheRequest
  • opts ...grpc.CallOption

func (*CacheServiceClient_Expecter) Get added in v1.15.2

func (_e *CacheServiceClient_Expecter) Get(ctx interface{}, in interface{}, opts ...interface{}) *CacheServiceClient_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • in *cacheservice.GetCacheRequest
  • opts ...grpc.CallOption

func (*CacheServiceClient_Expecter) GetOrExtendReservation added in v1.15.2

func (_e *CacheServiceClient_Expecter) GetOrExtendReservation(ctx interface{}, in interface{}, opts ...interface{}) *CacheServiceClient_GetOrExtendReservation_Call

GetOrExtendReservation is a helper method to define mock.On call

  • ctx context.Context
  • in *cacheservice.GetOrExtendReservationRequest
  • opts ...grpc.CallOption

func (*CacheServiceClient_Expecter) Put added in v1.15.2

func (_e *CacheServiceClient_Expecter) Put(ctx interface{}, in interface{}, opts ...interface{}) *CacheServiceClient_Put_Call

Put is a helper method to define mock.On call

  • ctx context.Context
  • in *cacheservice.PutCacheRequest
  • opts ...grpc.CallOption

func (*CacheServiceClient_Expecter) ReleaseReservation added in v1.15.2

func (_e *CacheServiceClient_Expecter) ReleaseReservation(ctx interface{}, in interface{}, opts ...interface{}) *CacheServiceClient_ReleaseReservation_Call

ReleaseReservation is a helper method to define mock.On call

  • ctx context.Context
  • in *cacheservice.ReleaseReservationRequest
  • opts ...grpc.CallOption

type CacheServiceClient_GetOrExtendReservation_Call added in v1.15.2

type CacheServiceClient_GetOrExtendReservation_Call struct {
	*mock.Call
}

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

func (*CacheServiceClient_GetOrExtendReservation_Call) Return added in v1.15.2

func (*CacheServiceClient_GetOrExtendReservation_Call) Run added in v1.15.2

type CacheServiceClient_Get_Call added in v1.15.2

type CacheServiceClient_Get_Call struct {
	*mock.Call
}

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

func (*CacheServiceClient_Get_Call) Return added in v1.15.2

func (*CacheServiceClient_Get_Call) Run added in v1.15.2

func (*CacheServiceClient_Get_Call) RunAndReturn added in v1.15.2

type CacheServiceClient_Put_Call added in v1.15.2

type CacheServiceClient_Put_Call struct {
	*mock.Call
}

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

func (*CacheServiceClient_Put_Call) Return added in v1.15.2

func (*CacheServiceClient_Put_Call) Run added in v1.15.2

func (*CacheServiceClient_Put_Call) RunAndReturn added in v1.15.2

type CacheServiceClient_ReleaseReservation_Call added in v1.15.2

type CacheServiceClient_ReleaseReservation_Call struct {
	*mock.Call
}

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

func (*CacheServiceClient_ReleaseReservation_Call) Return added in v1.15.2

func (*CacheServiceClient_ReleaseReservation_Call) Run added in v1.15.2

Jump to

Keyboard shortcuts

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