From 9e026bf9cc1dcb6ef24d26398182a22d9d6cd2d2 Mon Sep 17 00:00:00 2001 From: suntala Date: Tue, 13 May 2025 21:30:35 +0000 Subject: 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. This fixes and expands on https://go-review.googlesource.com/c/go/+/646956. For #59928. Change-Id: I08179c35a681f601cf125c0f4aeb648bc10c7a9f GitHub-Last-Rev: e6e202793c9bc471493187e0556a3a1e7305ff82 GitHub-Pull-Request: golang/go#73703 Reviewed-on: https://go-review.googlesource.com/c/go/+/672395 LUCI-TryBot-Result: Go LUCI Auto-Submit: Alan Donovan Reviewed-by: Alan Donovan Reviewed-by: Dmitri Shuralyov Auto-Submit: Jonathan Amsterdam --- api/next/59928.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 api/next/59928.txt (limited to 'api') diff --git a/api/next/59928.txt b/api/next/59928.txt new file mode 100644 index 0000000000..375c7c0e90 --- /dev/null +++ b/api/next/59928.txt @@ -0,0 +1,3 @@ +pkg testing, method (*B) Output() io.Writer #59928 +pkg testing, method (*F) Output() io.Writer #59928 +pkg testing, method (*T) Output() io.Writer #59928 -- cgit v1.3-5-g9baa