mocks

package
v0.0.0-...-d26b62e Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UnsafeUserServiceServer

type UnsafeUserServiceServer struct {
	mock.Mock
}

UnsafeUserServiceServer is an autogenerated mock type for the UnsafeUserServiceServer type

func NewUnsafeUserServiceServer

func NewUnsafeUserServiceServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *UnsafeUserServiceServer

NewUnsafeUserServiceServer creates a new instance of UnsafeUserServiceServer. 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.

type UserServiceClient

type UserServiceClient struct {
	mock.Mock
}

UserServiceClient is an autogenerated mock type for the UserServiceClient type

func NewUserServiceClient

func NewUserServiceClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *UserServiceClient

NewUserServiceClient creates a new instance of UserServiceClient. 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 (*UserServiceClient) GetUserById

func (_m *UserServiceClient) GetUserById(ctx context.Context, in *protos.GetUser, opts ...grpc.CallOption) (*protos.User, error)

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

func (*UserServiceClient) GetUserByUsername

func (_m *UserServiceClient) GetUserByUsername(ctx context.Context, in *protos.GetUser, opts ...grpc.CallOption) (*protos.User, error)

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

func (*UserServiceClient) GetUserStatus

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

func (*UserServiceClient) RegisterGame

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

func (*UserServiceClient) SaveUser

func (_m *UserServiceClient) SaveUser(ctx context.Context, in *protos.User, opts ...grpc.CallOption) (*protos.User, error)

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

func (*UserServiceClient) UpdateUser

func (_m *UserServiceClient) UpdateUser(ctx context.Context, in *protos.User, opts ...grpc.CallOption) (*protos.User, error)

UpdateUser 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 NewUserServiceServer

func NewUserServiceServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *UserServiceServer

NewUserServiceServer creates a new instance of UserServiceServer. 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 (*UserServiceServer) GetUserById

func (_m *UserServiceServer) GetUserById(_a0 context.Context, _a1 *protos.GetUser) (*protos.User, error)

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

func (*UserServiceServer) GetUserByUsername

func (_m *UserServiceServer) GetUserByUsername(_a0 context.Context, _a1 *protos.GetUser) (*protos.User, error)

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

func (*UserServiceServer) GetUserStatus

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

func (*UserServiceServer) RegisterGame

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

func (*UserServiceServer) SaveUser

func (_m *UserServiceServer) SaveUser(_a0 context.Context, _a1 *protos.User) (*protos.User, error)

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

func (*UserServiceServer) UpdateUser

func (_m *UserServiceServer) UpdateUser(_a0 context.Context, _a1 *protos.User) (*protos.User, error)

UpdateUser 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