]> Cypherpunks repositories - gostls13.git/commit
runtime: use slices and maps to clean up tests
authorapocelipes <seve3r@outlook.com>
Wed, 24 Jul 2024 10:24:06 +0000 (10:24 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 25 Jul 2024 00:23:03 +0000 (00:23 +0000)
commit0b0dfcd5404ce86d6c818d78bdb6348ded459e96
treef7c8fc3cb49a90afd15e14aec43ca763c301c4b8
parent2247afc0aee41434a4e874af07d026f828bd3210
runtime: use slices and maps to clean up tests

Replace reflect.DeepEqual with slices.Equal/maps.Equal, which is
much faster.

Also remove some unecessary helper functions.

Change-Id: I3e4fa2938fed1598278c9e556cd4fa3b9ed3ad6d
GitHub-Last-Rev: 69bb43fc6e5c4a4a7d028528fe00b43db784464e
GitHub-Pull-Request: golang/go#67603
Reviewed-on: https://go-review.googlesource.com/c/go/+/587815
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/runtime/callers_test.go
src/runtime/defer_test.go
src/runtime/map_test.go
src/runtime/metrics/description_test.go
src/runtime/metrics_test.go
src/runtime/pprof/label_test.go
src/runtime/pprof/runtime_test.go
src/runtime/profbuf_test.go
src/runtime/race/sched_test.go