]> Cypherpunks repositories - gostls13.git/commit
archive: use slices and maps to clean up tests
authorapocelipes <seve3r@outlook.com>
Wed, 24 Jul 2024 10:24:16 +0000 (10:24 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 25 Jul 2024 00:25:45 +0000 (00:25 +0000)
commitbd6f911f852f4a608e2cf11c1ce5b55ff0347866
treee3cec16727da931a4b232af74e26ccee42761b7e
parentb5b9d24dc38c63cca6319f2b139cb9b35b3cb058
archive: use slices and maps to clean up tests

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

Clean up some unnecessary helper functions.

Change-Id: I9b94bd43886302b9b327539ab065a435ce0d75d9
GitHub-Last-Rev: b9ca21f165bcc5e45733e6a511a2344b1aa4a281
GitHub-Pull-Request: golang/go#67607
Reviewed-on: https://go-review.googlesource.com/c/go/+/587936
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Joseph Tsai <joetsai@digital-static.net>
src/archive/tar/reader_test.go
src/archive/tar/tar_test.go
src/archive/tar/writer_test.go
src/archive/zip/reader_test.go