package testhash

import "internal/testhash"

Index

Functions

func TestHash

func TestHash(t *testing.T, mh MakeHash)

TestHash performs a set of tests on hash.Hash implementations, checking the documented requirements of Write, Sum, Reset, Size, and BlockSize.

func TestHashWithoutClone

func TestHashWithoutClone(t *testing.T, mh MakeHash)

Types

type MakeHash

type MakeHash func() hash.Hash

Source Files

hash.go

Version
v1.25.0-rc.1
Published
Jun 11, 2025
Platform
js/wasm
Imports
6 packages
Last checked
2 minutes ago

Tools for package owners.