]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/compare: simplify unit test framework
authorMatthew Dempsky <mdempsky@google.com>
Sun, 20 Aug 2023 17:23:03 +0000 (10:23 -0700)
committerGopher Robot <gobot@golang.org>
Mon, 21 Aug 2023 21:48:32 +0000 (21:48 +0000)
commit47645420348778a9b289e979ac5f757e64a78696
tree6d6b55ab54c27b95f3b5d72a3a1b3ec9a8a98dcf
parentd5cd55a289144c25aff4ae8d293bb31f9bdba3a3
cmd/compile/internal/compare: simplify unit test framework

This CL refactors the compare unit tests to be simpler and to stop
using the types API in non-idiomatic ways, to facilitate further
refactoring of the API.

Change-Id: I864a66b2842a0d8dd45f4e3d773144d71666caf2
Reviewed-on: https://go-review.googlesource.com/c/go/+/521275
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/compare/compare_test.go