]> Cypherpunks repositories - gostls13.git/commit
testing: add Output
authorsuntala <artichaut2023@gmail.com>
Mon, 12 May 2025 19:23:41 +0000 (19:23 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 13 May 2025 15:06:08 +0000 (08:06 -0700)
commit8d189f188e225e4919b34c0c097e75dfda255949
tree0ab80a7bf2f416cc7219e6a071d39b5dd4d0e577
parenta2fbb50322e716f75e9c4707afd2de725a95e14b
testing: add Output

Output is a method on T, B and F. It provides an io.Writer that writes
to the same test output stream as TB.Log. The new output writer is
used to refactor the implementation of Log. It maintains the formatting
provided by Log while making call site information optional.
Additionally, it provides buffering of log messages.

Co-authored-by: Aleks Fazlieva <britishrum@users.noreply.github.com>
Fixes #59928.

Change-Id: I29090b3d4f61f7334388b373ec18750d5637aafa
GitHub-Last-Rev: 18af0e15262494f2074d545a6042b079d62301a2
GitHub-Pull-Request: golang/go#71575
Reviewed-on: https://go-review.googlesource.com/c/go/+/646956
Reviewed-by: Arati <artichaut2023@gmail.com>
Auto-Submit: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
api/next/59928.txt [new file with mode: 0644]
doc/next/6-stdlib/99-minor/testing/59928.md [new file with mode: 0644]
src/testing/benchmark.go
src/testing/fuzz.go
src/testing/panic_test.go
src/testing/sub_test.go
src/testing/testing.go