mocks

package
v0.0.0-...-c8397cc Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 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 Auth

type Auth struct {
	mock.Mock
}

Auth is an autogenerated mock type for the Auth type

func NewAuth

func NewAuth(t interface {
	mock.TestingT
	Cleanup(func())
}) *Auth

NewAuth creates a new instance of Auth. 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 (*Auth) Login

func (_m *Auth) Login(ctx context.Context, username string, password string) (string, error)

Login provides a mock function with given fields: ctx, username, password

func (*Auth) RegisterNewUser

func (_m *Auth) RegisterNewUser(ctx context.Context, username string, password string) (string, error)

RegisterNewUser provides a mock function with given fields: ctx, username, password

func (*Auth) Verify

func (_m *Auth) Verify(ctx context.Context, token string) (*models.User, error)

Verify provides a mock function with given fields: ctx, token

Jump to

Keyboard shortcuts

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