mocks

package
v0.0.0-...-dc61bab Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthService

type AuthService struct {
	mock.Mock
}

AuthService is an autogenerated mock type for the AuthService type

func NewAuthService

func NewAuthService(t mockConstructorTestingTNewAuthService) *AuthService

NewAuthService creates a new instance of AuthService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*AuthService) SignIn

SignIn provides a mock function with given fields: ctx, schema

func (*AuthService) SignOut

func (_m *AuthService) SignOut(ctx context.Context, userID primitive.ObjectID) error

SignOut provides a mock function with given fields: ctx, userID

func (*AuthService) SignUp

func (_m *AuthService) SignUp(ctx context.Context, schema service.UserSignUpSchema) error

SignUp provides a mock function with given fields: ctx, schema

type JWTService

type JWTService struct {
	mock.Mock
}

JWTService is an autogenerated mock type for the JWTService type

func NewJWTService

func NewJWTService(t mockConstructorTestingTNewJWTService) *JWTService

NewJWTService creates a new instance of JWTService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*JWTService) CreateTokens

func (_m *JWTService) CreateTokens(ctx context.Context, userID string) (entity.Tokens, error)

CreateTokens provides a mock function with given fields: ctx, userID

func (*JWTService) ParseAccessToken

func (_m *JWTService) ParseAccessToken(_a0 string) (*token.JWTCustomClaims, error)

ParseAccessToken provides a mock function with given fields: _a0

func (*JWTService) ParseRefreshToken

func (_m *JWTService) ParseRefreshToken(_a0 string) (*token.JWTCustomClaims, error)

ParseRefreshToken provides a mock function with given fields: _a0

func (*JWTService) ProlongTokens

func (_m *JWTService) ProlongTokens(ctx context.Context, userID string)

ProlongTokens provides a mock function with given fields: ctx, userID

func (*JWTService) ValidateAccessToken

func (_m *JWTService) ValidateAccessToken(ctx context.Context, claims *token.JWTCustomClaims) error

ValidateAccessToken provides a mock function with given fields: ctx, claims

func (*JWTService) ValidateRefreshToken

func (_m *JWTService) ValidateRefreshToken(ctx context.Context, claims *token.JWTCustomClaims) error

ValidateRefreshToken provides a mock function with given fields: ctx, claims

type UsersService

type UsersService struct {
	mock.Mock
}

UsersService is an autogenerated mock type for the UsersService type

func NewUsersService

func NewUsersService(t mockConstructorTestingTNewUsersService) *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.

func (*UsersService) ChangeEmail

func (_m *UsersService) ChangeEmail(ctx context.Context, schema service.ChangeEmailSchema) error

ChangeEmail provides a mock function with given fields: ctx, schema

func (*UsersService) ChangePassword

func (_m *UsersService) ChangePassword(ctx context.Context, schema service.ChangePasswordSchema) error

ChangePassword provides a mock function with given fields: ctx, schema

func (*UsersService) GetByID

func (_m *UsersService) GetByID(ctx context.Context, userID primitive.ObjectID) (entity.User, error)

GetByID provides a mock function with given fields: ctx, userID

Jump to

Keyboard shortcuts

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