diff options
author | Jonathan Amsterdam <jba@google.com> | 2023-08-04 14:39:48 -0400 |
---|---|---|
committer | Jonathan Amsterdam <jba@google.com> | 2023-08-07 18:23:51 +0000 |
commit | 2bf8b3985ff25a62d14e0b105c1b4d0637add51a (patch) | |
tree | c30294a3af2ad8b77bfe062dbe129221a522fa1e /src/testing | |
parent | bb5974e0cb507487ab7a164c08452456840d3ad7 (diff) | |
download | go-2bf8b3985ff25a62d14e0b105c1b4d0637add51a.tar.gz go-2bf8b3985ff25a62d14e0b105c1b4d0637add51a.zip |
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 <jba@google.com>
Reviewed-by: Patrick Ohly <patrick.ohly@googlemail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
Diffstat (limited to 'src/testing')
-rw-r--r-- | src/testing/slogtest/slogtest.go | 2 |
1 files changed, 1 insertions, 1 deletions
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") }, |