hashingMocks

package
v1.4.12 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: GPL-3.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 HasherMock

type HasherMock struct {
}

HasherMock that will be used for testing

func (*HasherMock) Compute

func (sha *HasherMock) Compute(s string) []byte

Compute will output the SHA's equivalent of the input string

func (*HasherMock) EmptyHash

func (sha *HasherMock) EmptyHash() []byte

EmptyHash will return the equivalent of empty string SHA's

func (*HasherMock) IsInterfaceNil

func (sha *HasherMock) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*HasherMock) Size

func (sha *HasherMock) Size() int

Size returns the required size in bytes

Jump to

Keyboard shortcuts

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