hash

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hasher

type Hasher struct {
	mock.Mock
}

Hasher is an autogenerated mock type for the Hasher type

func NewHasher

func NewHasher(t interface {
	mock.TestingT
	Cleanup(func())
}) *Hasher

NewHasher creates a new instance of Hasher. 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 (*Hasher) EXPECT

func (_m *Hasher) EXPECT() *Hasher_Expecter

func (*Hasher) HashCode

func (_m *Hasher) HashCode(key []byte) uint64

HashCode provides a mock function with given fields: key

type Hasher_Expecter

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

func (*Hasher_Expecter) HashCode

func (_e *Hasher_Expecter) HashCode(key interface{}) *Hasher_HashCode_Call

HashCode is a helper method to define mock.On call

  • key []byte

type Hasher_HashCode_Call

type Hasher_HashCode_Call struct {
	*mock.Call
}

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

func (*Hasher_HashCode_Call) Return

func (*Hasher_HashCode_Call) Run

func (_c *Hasher_HashCode_Call) Run(run func(key []byte)) *Hasher_HashCode_Call

func (*Hasher_HashCode_Call) RunAndReturn

func (_c *Hasher_HashCode_Call) RunAndReturn(run func([]byte) uint64) *Hasher_HashCode_Call

Jump to

Keyboard shortcuts

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