Skip to content

Commit e016fab

Browse files
committed
testing/slogtest: clarify that passed handler must be enabled at info
Fixes #62115. Change-Id: I1ecd3048ccbf2014bc1d561c7cd79a0c2fe8e4bd Reviewed-on: https://go-review.googlesource.com/c/go/+/520676 Run-TryBot: Jonathan Amsterdam <[email protected]> Reviewed-by: Alan Donovan <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent eaae2d4 commit e016fab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/testing/slogtest/slogtest.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ type testCase struct {
3636
//
3737
// TestHandler installs the given Handler in a [slog.Logger] and
3838
// makes several calls to the Logger's output methods.
39+
// The Handler should be enabled for levels Info and above.
3940
//
4041
// The results function is invoked after all such calls.
4142
// It should return a slice of map[string]any, one for each call to a Logger output method.

0 commit comments

Comments
 (0)