mocks

package
v0.0.0-...-692bca9 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2022 License: GPL-3.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 NewIDGenerator

func NewIDGenerator(t mockConstructorTestingTNewIDGenerator) *IDGenerator

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

func (*IDGenerator) GenerateCategoryID

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

GenerateCategoryID provides a mock function with given fields:

func (*IDGenerator) GenerateCommentID

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

GenerateCommentID provides a mock function with given fields:

func (*IDGenerator) GenerateLikeID

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

GenerateLikeID provides a mock function with given fields:

func (*IDGenerator) GenerateModeratorID

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

GenerateModeratorID provides a mock function with given fields:

func (*IDGenerator) GenerateReportID

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

GenerateReportID provides a mock function with given fields:

func (*IDGenerator) GenerateThreadFollowID

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

GenerateThreadFollowID provides a mock function with given fields:

func (*IDGenerator) GenerateThreadID

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

GenerateThreadID provides a mock function with given fields:

func (*IDGenerator) GenerateUserFollowID

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

GenerateUserFollowID provides a mock function with given fields:

func (*IDGenerator) GenerateUserID

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

GenerateUserID 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 NewPasswordGenerator

func NewPasswordGenerator(t mockConstructorTestingTNewPasswordGenerator) *PasswordGenerator

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

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 TokenGenerator

type TokenGenerator struct {
	mock.Mock
}

TokenGenerator is an autogenerated mock type for the TokenGenerator type

func NewTokenGenerator

func NewTokenGenerator(t mockConstructorTestingTNewTokenGenerator) *TokenGenerator

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

func (*TokenGenerator) ExtractToken

func (_m *TokenGenerator) ExtractToken(c echo.Context) generator.TokenPayload

ExtractToken provides a mock function with given fields: c

func (*TokenGenerator) GenerateToken

func (_m *TokenGenerator) GenerateToken(payload generator.TokenPayload) (string, error)

GenerateToken provides a mock function with given fields: payload

Jump to

Keyboard shortcuts

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