aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/debug
diff options
context:
space:
mode:
authorsuntala <artichaut2023@gmail.com>2025-05-12 19:23:41 +0000
committerGopher Robot <gobot@golang.org>2025-05-13 08:06:08 -0700
commit8d189f188e225e4919b34c0c097e75dfda255949 (patch)
tree0ab80a7bf2f416cc7219e6a071d39b5dd4d0e577 /src/runtime/debug
parenta2fbb50322e716f75e9c4707afd2de725a95e14b (diff)
downloadgo-8d189f188e225e4919b34c0c097e75dfda255949.tar.xz
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>
Diffstat (limited to 'src/runtime/debug')
0 files changed, 0 insertions, 0 deletions