]> Cypherpunks repositories - gostls13.git/commit
internal/testhash: move cryptotest.TestHash to shared package
authorAustin Clements <austin@google.com>
Mon, 5 May 2025 20:59:17 +0000 (16:59 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 8 May 2025 23:41:44 +0000 (16:41 -0700)
commit3f7c0cc73cc32f7db88c9f347a1911a8506808ad
treeeba4d807330d18d861a5584e36f564a6885a3476
parentf4e37b8afc01253567fddbdd68ec35632df86b62
internal/testhash: move cryptotest.TestHash to shared package

This test helper can test any hash.Hash, not just crypto hashes. Move
it to $GOROOT/src/internal/testhash so both crypto and hash can use
it.

For #69521

Change-Id: Iac086cca513d5c03936e35d1ab55b8636f4652f7
Reviewed-on: https://go-review.googlesource.com/c/go/+/670178
Reviewed-by: qiu laidongfeng2 <2645477756@qq.com>
Auto-Submit: Austin Clements <austin@google.com>
Reviewed-by: Roland Shoemaker <roland@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/crypto/internal/cryptotest/hash.go
src/go/build/deps_test.go
src/internal/testhash/hash.go [new file with mode: 0644]