mocks

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 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 GRPCClient added in v0.1.0

type GRPCClient struct {
	mock.Mock
}

GRPCClient is an autogenerated mock type for the GRPCClient type

func NewGRPCClient added in v0.1.0

func NewGRPCClient(t mockConstructorTestingTNewGRPCClient) *GRPCClient

NewGRPCClient creates a new instance of GRPCClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*GRPCClient) Allocate added in v0.1.0

func (_m *GRPCClient) Allocate(ctx context.Context, in *v1.AllocateRequest, opts ...grpc.CallOption) (*v1.AllocateResponse, error)

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

func (*GRPCClient) Deallocate added in v0.1.0

func (_m *GRPCClient) Deallocate(ctx context.Context, in *v1.DeallocateRequest, opts ...grpc.CallOption) (*v1.DeallocateResponse, error)

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

func (*GRPCClient) EXPECT added in v0.1.0

func (_m *GRPCClient) EXPECT() *GRPCClient_Expecter

func (*GRPCClient) IsAllocated added in v0.1.0

func (_m *GRPCClient) IsAllocated(ctx context.Context, in *v1.IsAllocatedRequest, opts ...grpc.CallOption) (*v1.IsAllocatedResponse, error)

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

type GRPCClient_Allocate_Call added in v0.1.0

type GRPCClient_Allocate_Call struct {
	*mock.Call
}

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

func (*GRPCClient_Allocate_Call) Return added in v0.1.0

func (*GRPCClient_Allocate_Call) Run added in v0.1.0

func (*GRPCClient_Allocate_Call) RunAndReturn added in v0.1.0

type GRPCClient_Deallocate_Call added in v0.1.0

type GRPCClient_Deallocate_Call struct {
	*mock.Call
}

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

func (*GRPCClient_Deallocate_Call) Return added in v0.1.0

func (*GRPCClient_Deallocate_Call) Run added in v0.1.0

func (*GRPCClient_Deallocate_Call) RunAndReturn added in v0.1.0

type GRPCClient_Expecter added in v0.1.0

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

func (*GRPCClient_Expecter) Allocate added in v0.1.0

func (_e *GRPCClient_Expecter) Allocate(ctx interface{}, in interface{}, opts ...interface{}) *GRPCClient_Allocate_Call

Allocate is a helper method to define mock.On call

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

func (*GRPCClient_Expecter) Deallocate added in v0.1.0

func (_e *GRPCClient_Expecter) Deallocate(ctx interface{}, in interface{}, opts ...interface{}) *GRPCClient_Deallocate_Call

Deallocate is a helper method to define mock.On call

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

func (*GRPCClient_Expecter) IsAllocated added in v0.1.0

func (_e *GRPCClient_Expecter) IsAllocated(ctx interface{}, in interface{}, opts ...interface{}) *GRPCClient_IsAllocated_Call

IsAllocated is a helper method to define mock.On call

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

type GRPCClient_IsAllocated_Call added in v0.1.0

type GRPCClient_IsAllocated_Call struct {
	*mock.Call
}

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

func (*GRPCClient_IsAllocated_Call) Return added in v0.1.0

func (*GRPCClient_IsAllocated_Call) Run added in v0.1.0

func (*GRPCClient_IsAllocated_Call) RunAndReturn added in v0.1.0

Jump to

Keyboard shortcuts

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