mocks

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UsersService

type UsersService struct {
	mock.Mock
}

UsersService is an autogenerated mock type for the UsersService type

func NewUsersService

func NewUsersService(t interface {
	mock.TestingT
	Cleanup(func())
}) *UsersService

NewUsersService creates a new instance of UsersService. 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 (*UsersService) GetUser

func (_m *UsersService) GetUser(ctx context.Context, ID string) (*users.User, error)

GetUser provides a mock function with given fields: ctx, ID

Jump to

Keyboard shortcuts

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