hash

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hash

type Hash struct {
	mock.Mock
}

Hash is an autogenerated mock type for the Hash type

func NewHash

func NewHash(t interface {
	mock.TestingT
	Cleanup(func())
}) *Hash

NewHash creates a new instance of Hash. 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 (*Hash) Check

func (_m *Hash) Check(value string, hashedValue string) bool

Check provides a mock function with given fields: value, hashedValue

func (*Hash) EXPECT

func (_m *Hash) EXPECT() *Hash_Expecter

func (*Hash) Make

func (_m *Hash) Make(value string) (string, error)

Make provides a mock function with given fields: value

func (*Hash) NeedsRehash

func (_m *Hash) NeedsRehash(hashedValue string) bool

NeedsRehash provides a mock function with given fields: hashedValue

type Hash_Check_Call

type Hash_Check_Call struct {
	*mock.Call
}

Hash_Check_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Check'

func (*Hash_Check_Call) Return

func (_c *Hash_Check_Call) Return(_a0 bool) *Hash_Check_Call

func (*Hash_Check_Call) Run

func (_c *Hash_Check_Call) Run(run func(value string, hashedValue string)) *Hash_Check_Call

func (*Hash_Check_Call) RunAndReturn

func (_c *Hash_Check_Call) RunAndReturn(run func(string, string) bool) *Hash_Check_Call

type Hash_Expecter

type Hash_Expecter struct {
	// contains filtered or unexported fields
}

func (*Hash_Expecter) Check

func (_e *Hash_Expecter) Check(value interface{}, hashedValue interface{}) *Hash_Check_Call

Check is a helper method to define mock.On call

  • value string
  • hashedValue string

func (*Hash_Expecter) Make

func (_e *Hash_Expecter) Make(value interface{}) *Hash_Make_Call

Make is a helper method to define mock.On call

  • value string

func (*Hash_Expecter) NeedsRehash

func (_e *Hash_Expecter) NeedsRehash(hashedValue interface{}) *Hash_NeedsRehash_Call

NeedsRehash is a helper method to define mock.On call

  • hashedValue string

type Hash_Make_Call

type Hash_Make_Call struct {
	*mock.Call
}

Hash_Make_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Make'

func (*Hash_Make_Call) Return

func (_c *Hash_Make_Call) Return(_a0 string, _a1 error) *Hash_Make_Call

func (*Hash_Make_Call) Run

func (_c *Hash_Make_Call) Run(run func(value string)) *Hash_Make_Call

func (*Hash_Make_Call) RunAndReturn

func (_c *Hash_Make_Call) RunAndReturn(run func(string) (string, error)) *Hash_Make_Call

type Hash_NeedsRehash_Call

type Hash_NeedsRehash_Call struct {
	*mock.Call
}

Hash_NeedsRehash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NeedsRehash'

func (*Hash_NeedsRehash_Call) Return

func (*Hash_NeedsRehash_Call) Run

func (_c *Hash_NeedsRehash_Call) Run(run func(hashedValue string)) *Hash_NeedsRehash_Call

func (*Hash_NeedsRehash_Call) RunAndReturn

func (_c *Hash_NeedsRehash_Call) RunAndReturn(run func(string) bool) *Hash_NeedsRehash_Call

Jump to

Keyboard shortcuts

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