tools/cmd/stringer
Oleksandr Redko f124b50345 cmd/stringer: streamline test subprocesses
- Execute the test binary itself as cmd/stringer instead of invoking (and
cleaning up after) 'go build'.
- Replace os.MkdirTemp with T.TempDir

Changes are similar to https://go.dev/cl/377836.

Change-Id: I5f9fca20e0f1f045826c385d556257fc5982ed53
GitHub-Last-Rev: f6c6b7735c
GitHub-Pull-Request: golang/tools#425
Reviewed-on: https://go-review.googlesource.com/c/tools/+/464350
Reviewed-by: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
2023-02-06 18:58:38 +00:00
..
testdata x/tools/cmd/stringer: adjust generics tests 2021-10-28 00:09:41 +00:00
endtoend_test.go cmd/stringer: streamline test subprocesses 2023-02-06 18:58:38 +00:00
golden_test.go cmd/stringer: streamline test subprocesses 2023-02-06 18:58:38 +00:00
stringer.go cmd/stringer: replace ioutil with os 2022-11-11 15:19:20 +00:00
util_test.go