mocks

package
v0.0.0-...-6d480b4 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 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 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) GenerateToken

func (_m *JWTService) GenerateToken(userId string, isAdmin bool, email string, password string) (string, error)

GenerateToken provides a mock function with given fields: userId, isAdmin, email, password

func (*JWTService) ParseToken

func (_m *JWTService) ParseToken(tokenString string) (jwt.JwtCustomClaim, error)

ParseToken provides a mock function with given fields: tokenString

type OTPMailer

type OTPMailer struct {
	mock.Mock
}

OTPMailer is an autogenerated mock type for the OTPMailer type

func NewOTPMailer

func NewOTPMailer(t mockConstructorTestingTNewOTPMailer) *OTPMailer

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

func (*OTPMailer) SendOTP

func (_m *OTPMailer) SendOTP(otpCode string, receiver string) error

SendOTP provides a mock function with given fields: otpCode, receiver

type RedisCache

type RedisCache struct {
	mock.Mock
}

RedisCache is an autogenerated mock type for the RedisCache type

func NewRedisCache

func NewRedisCache(t mockConstructorTestingTNewRedisCache) *RedisCache

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

func (*RedisCache) Del

func (_m *RedisCache) Del(key string) error

Del provides a mock function with given fields: key

func (*RedisCache) Get

func (_m *RedisCache) Get(key string) (string, error)

Get provides a mock function with given fields: key

func (*RedisCache) Set

func (_m *RedisCache) Set(key string, value interface{}) error

Set provides a mock function with given fields: key, value

type RistrettoCache

type RistrettoCache struct {
	mock.Mock
}

RistrettoCache is an autogenerated mock type for the RistrettoCache type

func NewRistrettoCache

func NewRistrettoCache(t mockConstructorTestingTNewRistrettoCache) *RistrettoCache

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

func (*RistrettoCache) Del

func (_m *RistrettoCache) Del(key ...string)

Del provides a mock function with given fields: key

func (*RistrettoCache) Get

func (_m *RistrettoCache) Get(key string) interface{}

Get provides a mock function with given fields: key

func (*RistrettoCache) Set

func (_m *RistrettoCache) Set(key string, value interface{})

Set provides a mock function with given fields: key, value

type UserRepository

type UserRepository struct {
	mock.Mock
}

UserRepository is an autogenerated mock type for the UserRepository type

func NewUserRepository

func NewUserRepository(t mockConstructorTestingTNewUserRepository) *UserRepository

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

func (*UserRepository) ChangeActiveUser

func (_m *UserRepository) ChangeActiveUser(ctx context.Context, inDom *V1Domains.UserDomain) error

ChangeActiveUser provides a mock function with given fields: ctx, inDom

func (*UserRepository) GetByEmail

GetByEmail provides a mock function with given fields: ctx, inDom

func (*UserRepository) Store

func (_m *UserRepository) Store(ctx context.Context, inDom *V1Domains.UserDomain) error

Store provides a mock function with given fields: ctx, inDom

Jump to

Keyboard shortcuts

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