mirror of
https://github.com/golang/go.git
synced 2026-04-04 10:20:00 +09:00
Leftover values that have been replaced can cause problems in later passes (within expandCalls). For example, a struct select that itself yields a struct will have a problematic rewrite, if the chance is presented. Updates #40724. Change-Id: I1b445c47c301c3705f7fc0a9d39f1f5c84f4e190 Reviewed-on: https://go-review.googlesource.com/c/go/+/306869 Trust: David Chase <drchase@google.com> Run-TryBot: David Chase <drchase@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com> Reviewed-by: Than McIntosh <thanm@google.com>
The test directory contains tests of the Go tool chain and runtime. It includes black box tests, regression tests, and error output tests. They are run as part of all.bash.
To run just these tests, execute:
../bin/go run run.go
To run just tests from specified files in this directory, execute:
../bin/go run run.go -- file1.go file2.go ...
Standard library tests should be written as regular Go tests in the appropriate package.
The tool chain and runtime also have regular Go tests in their packages. The main reasons to add a new test to this directory are:
- it is most naturally expressed using the test runner; or
- it is also applicable to
gccgoand other Go tool chains.