(t *testing.T)
| 9 | ) |
| 10 | |
| 11 | func newTestLogger(t *testing.T) (*slog.Logger, fmt.Stringer) { |
| 12 | t.Helper() |
| 13 | |
| 14 | var buf syncBuffer |
| 15 | |
| 16 | return slog.New(slog.NewTextHandler(&buf, &slog.HandlerOptions{Level: slog.LevelDebug})), &buf |
| 17 | } |
| 18 | |
| 19 | // SyncBuffer is a thread-safe buffer for capturing logs in tests. |
| 20 | type syncBuffer struct { |
no outgoing calls
no test coverage detected