mocks

package
v0.15.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Password

type Password struct {
	mock.Mock
}

Password is an autogenerated mock type for the Password type

func NewPassword

func NewPassword(t interface {
	mock.TestingT
	Cleanup(func())
}) *Password

NewPassword creates a new instance of Password. 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 (*Password) Compare

func (_m *Password) Compare(pwd string, hash string) bool

Compare provides a mock function with given fields: pwd, hash

func (*Password) Hash

func (_m *Password) Hash(pwd string) (string, error)

Hash provides a mock function with given fields: pwd

Jump to

Keyboard shortcuts

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