mocks

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 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 PoolServiceClient

type PoolServiceClient struct {
	mock.Mock
}

PoolServiceClient is an autogenerated mock type for the PoolServiceClient type

func NewPoolServiceClient

func NewPoolServiceClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *PoolServiceClient

NewPoolServiceClient creates a new instance of PoolServiceClient. 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 (*PoolServiceClient) CreatePool

func (_m *PoolServiceClient) CreatePool(ctx context.Context, in *v1.CreatePoolRequest, opts ...grpc.CallOption) (*v1.Pool, error)

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

func (*PoolServiceClient) GetPool

func (_m *PoolServiceClient) GetPool(ctx context.Context, in *v1.GetPoolRequest, opts ...grpc.CallOption) (*v1.Pool, error)

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

func (*PoolServiceClient) ListPools

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

type PoolServiceServer

type PoolServiceServer struct {
	mock.Mock
}

PoolServiceServer is an autogenerated mock type for the PoolServiceServer type

func NewPoolServiceServer

func NewPoolServiceServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *PoolServiceServer

NewPoolServiceServer creates a new instance of PoolServiceServer. 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 (*PoolServiceServer) CreatePool

func (_m *PoolServiceServer) CreatePool(_a0 context.Context, _a1 *v1.CreatePoolRequest) (*v1.Pool, error)

CreatePool provides a mock function with given fields: _a0, _a1

func (*PoolServiceServer) GetPool

func (_m *PoolServiceServer) GetPool(_a0 context.Context, _a1 *v1.GetPoolRequest) (*v1.Pool, error)

GetPool provides a mock function with given fields: _a0, _a1

func (*PoolServiceServer) ListPools

ListPools provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

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