- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestLoggerNoOps (0.16 sec)
-
src/log/slog/logger_test.go
var buf bytes.Buffer h := NewTextHandler(&buf, nil) ll := NewLogLogger(h, LevelWarn) ll.Print("hello") checkLogOutput(t, buf.String(), "time="+textTimeRE+` level=WARN msg=hello`) } func TestLoggerNoOps(t *testing.T) { l := Default() if l.With() != l { t.Error("wanted receiver, didn't get it") } if With() != l { t.Error("wanted receiver, didn't get it") } if l.WithGroup("") != l {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 10 21:25:30 UTC 2023 - 19.5K bytes - Viewed (0)