]> Cypherpunks repositories - gostls13.git/commit
unique,internal/concurrent: add some more tests
authorMichael Anthony Knyszek <mknyszek@google.com>
Thu, 19 Sep 2024 15:43:14 +0000 (15:43 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 26 Sep 2024 20:13:12 +0000 (20:13 +0000)
commit1596a6c8ec6d4ccb4a219b0c467bed192720de12
treee7137dd256f107baf37bebb099c1fbf5e2b1347e
parent3f2737f5ddea3375303b952e3d87843d7fc0f986
unique,internal/concurrent: add some more tests

One is a test of unsafe.String usage, which was broken before CL 610738
was merged.

The other is trying to improve coverage of "near collision" scenarios in
the HashTrieMap where only the last few bits differ. This is intended to
catch off-by-one errors in iterating down the tree.

For #69534.

Change-Id: I3f302e148e81269a50e93b5edf83cafc2d291098
Reviewed-on: https://go-review.googlesource.com/c/go/+/614475
Auto-Submit: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
src/internal/concurrent/hashtriemap_test.go
src/unique/handle_test.go