mocks

package
v0.0.0-...-5661f94 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProductService

type ProductService struct {
	mock.Mock
}

ProductService is an autogenerated mock type for the ProductService type

func (*ProductService) AddProduct

func (_m *ProductService) AddProduct(ctx context.Context, jwtToken string, newProduct *products.Product) (*products.Product, error)

AddProduct provides a mock function with given fields: ctx, jwtToken, newProduct

func (*ProductService) GetProduct

func (_m *ProductService) GetProduct(ctx context.Context, sku string) (*products.Product, error)

GetProduct provides a mock function with given fields: ctx, sku

type ProductServiceClient

type ProductServiceClient struct {
	mock.Mock
}

ProductServiceClient is an autogenerated mock type for the ProductServiceClient type

func (*ProductServiceClient) AddProduct

func (_m *ProductServiceClient) AddProduct(ctx context.Context, in *proto.NewProduct, opts ...grpc.CallOption) (*proto.Product, error)

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

func (*ProductServiceClient) GetProduct

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

type ProductServiceServer

type ProductServiceServer struct {
	mock.Mock
}

ProductServiceServer is an autogenerated mock type for the ProductServiceServer type

func (*ProductServiceServer) AddProduct

func (_m *ProductServiceServer) AddProduct(_a0 context.Context, _a1 *proto.NewProduct) (*proto.Product, error)

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

func (*ProductServiceServer) GetProduct

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

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func (*Repository) GetProductBySKU

func (_m *Repository) GetProductBySKU(ctx context.Context, sku string) (*products.Product, error)

GetProductBySKU provides a mock function with given fields: ctx, sku

func (*Repository) SaveProduct

func (_m *Repository) SaveProduct(ctx context.Context, product *products.Product) error

SaveProduct provides a mock function with given fields: ctx, product

type UnsafeProductServiceServer

type UnsafeProductServiceServer struct {
	mock.Mock
}

UnsafeProductServiceServer is an autogenerated mock type for the UnsafeProductServiceServer type

type UnsafeUserServiceServer

type UnsafeUserServiceServer struct {
	mock.Mock
}

UnsafeUserServiceServer is an autogenerated mock type for the UnsafeUserServiceServer type

type UserServiceClient

type UserServiceClient struct {
	mock.Mock
}

UserServiceClient is an autogenerated mock type for the UserServiceClient type

func (*UserServiceClient) CreateUser

func (_m *UserServiceClient) CreateUser(ctx context.Context, in *proto.NewUser, opts ...grpc.CallOption) (*proto.User, error)

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

func (*UserServiceClient) GetUserFromJWT

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

func (*UserServiceClient) GetUsers

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

func (*UserServiceClient) LoginUser

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

type UserServiceServer

type UserServiceServer struct {
	mock.Mock
}

UserServiceServer is an autogenerated mock type for the UserServiceServer type

func (*UserServiceServer) CreateUser

func (_m *UserServiceServer) CreateUser(_a0 context.Context, _a1 *proto.NewUser) (*proto.User, error)

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

func (*UserServiceServer) GetUserFromJWT

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

func (*UserServiceServer) GetUsers

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

func (*UserServiceServer) LoginUser

LoginUser 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