mocks

package
v0.0.0-...-bf9679a Latest Latest
Warning

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

Go to latest
Published: May 15, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDGenerator

type IDGenerator struct {
	mock.Mock
}

IDGenerator is an autogenerated mock type for the IDGenerator type

func (*IDGenerator) GenerateAdminID

func (_m *IDGenerator) GenerateAdminID() (string, error)

GenerateAdminID provides a mock function with given fields:

func (*IDGenerator) GenerateGroupID

func (_m *IDGenerator) GenerateGroupID() (string, error)

GenerateGroupID provides a mock function with given fields:

func (*IDGenerator) GeneratePropertyID

func (_m *IDGenerator) GeneratePropertyID() (string, error)

GeneratePropertyID provides a mock function with given fields:

func (*IDGenerator) GenerateShowScheduleID

func (_m *IDGenerator) GenerateShowScheduleID() (string, error)

GenerateShowScheduleID provides a mock function with given fields:

type PasswordGenerator

type PasswordGenerator struct {
	mock.Mock
}

PasswordGenerator is an autogenerated mock type for the PasswordGenerator type

func (*PasswordGenerator) CompareHashAndPassword

func (_m *PasswordGenerator) CompareHashAndPassword(hashedPassword []byte, password []byte) error

CompareHashAndPassword provides a mock function with given fields: hashedPassword, password

func (*PasswordGenerator) GenerateFromPassword

func (_m *PasswordGenerator) GenerateFromPassword(password []byte, cost int) ([]byte, error)

GenerateFromPassword provides a mock function with given fields: password, cost

type QRCodeGenerator

type QRCodeGenerator struct {
	mock.Mock
}

QRCodeGenerator is an autogenerated mock type for the QRCodeGenerator type

func (*QRCodeGenerator) GenerateQRCode

func (_m *QRCodeGenerator) GenerateQRCode(content string, level qrcode.RecoveryLevel, size int) ([]byte, error)

GenerateQRCode provides a mock function with given fields: content, level, size

type TokenGenerator

type TokenGenerator struct {
	mock.Mock
}

TokenGenerator is an autogenerated mock type for the TokenGenerator type

func (*TokenGenerator) ExtractToken

func (_m *TokenGenerator) ExtractToken(c echo.Context) (string, string)

ExtractToken provides a mock function with given fields: c

func (*TokenGenerator) GenerateToken

func (_m *TokenGenerator) GenerateToken(id string, username string) (string, error)

GenerateToken provides a mock function with given fields: id, username

Jump to

Keyboard shortcuts

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