go/go
Amelia Downs b182fdeb5a go/analysis/passes/tests: check example output
Add check to make sure that the output comment block in a testable
example is the last comment block. If the output comment block is not
the last comment block then the output will not be tested and the test
will always pass.

Fixes: golang/go#48362

Change-Id: Iae93423d49ffc35019a1bc71e2c8d4a398301cd1
Reviewed-on: https://go-review.googlesource.com/c/tools/+/351553
Reviewed-by: Zvonimir Pavlinovic <zpavlinovic@google.com>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com>
Run-TryBot: Jay Conrod <jayconrod@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
Trust: Jay Conrod <jayconrod@google.com>
Trust: Heschi Kreinick <heschi@google.com>
2021-09-28 20:12:24 +00:00
..
analysis go/analysis/passes/tests: check example output 2021-09-28 20:12:24 +00:00
ast internal/typeparams: update x/tools for recent typeparams changes 2021-08-03 15:39:08 +00:00
buildutil all: go fmt ./... 2021-02-20 03:28:52 +00:00
callgraph go/callgraph/vta: improve support for function value flow 2021-09-22 15:47:37 +00:00
cfg all: fix some staticcheck errors 2020-01-29 04:53:41 +00:00
expect go/expect: use parser.AllErrors when extracting Notes 2021-02-23 18:29:07 +00:00
gccgoexportdata all: add copyright notices to files that are missing them 2021-01-06 17:23:47 +00:00
gcexportdata all: go fmt ./... 2021-02-20 03:28:52 +00:00
internal go/internal/gcimporter: temporarily skip the contraints package on the 2021-09-24 19:46:05 +00:00
loader go/internal/cgo: handle symlinks with $PWD, not -srcdir 2021-06-29 19:12:30 +00:00
packages go/packages: skip tests that link binaries in short mode 2021-07-09 19:50:55 +00:00
pointer go/pointer: skip tests that depend on an unstable API changed in Go 1.18 2021-09-22 15:50:34 +00:00
ssa go/ssa: skip the "constraints" package in TestStdlib 2021-09-24 19:46:09 +00:00
types go/types/objectpath: minor doc fix 2021-08-02 21:22:11 +00:00
vcs all: replace all usages of os/exec with golang.org/x/sys/execabs 2021-01-19 22:25:03 +00:00