...

Package testhash

import "internal/testhash"
Overview
Index

Overview ▾

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)

type MakeHash

type MakeHash func() hash.Hash