From: Jonathan Amsterdam Date: Fri, 4 Aug 2023 18:39:48 +0000 (-0400) Subject: testing/slogtest: reword a confusing explanation X-Git-Tag: go1.22rc1~1383 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2bf8b3985ff25a62d14e0b105c1b4d0637add51a;p=gostls13.git testing/slogtest: reword a confusing explanation Updates #61758. Change-Id: I4ce0359f676b6832e40203e1034ba1c4f6d2b2ed Reviewed-on: https://go-review.googlesource.com/c/go/+/516155 Run-TryBot: Jonathan Amsterdam Reviewed-by: Patrick Ohly TryBot-Result: Gopher Robot Reviewed-by: Alan Donovan --- diff --git a/src/testing/slogtest/slogtest.go b/src/testing/slogtest/slogtest.go index b16d1227dc..6f6fa902d5 100644 --- a/src/testing/slogtest/slogtest.go +++ b/src/testing/slogtest/slogtest.go @@ -163,7 +163,7 @@ func TestHandler(h slog.Handler, results func() []map[string]any) error { }, }, { - explanation: withSource("a Handler should not output groups for an empty Record"), + explanation: withSource("a Handler should not output groups if there are no attributes"), f: func(l *slog.Logger) { l.With("a", "b").WithGroup("G").With("c", "d").WithGroup("H").Info("msg") },