Documentation
¶
Index ¶
- Variables
- func Assets(t *testing.T) web.Assets
- func TempFile(t *testing.T, filename, content string) string
- type Database
- type LogRecorder
- func (l *LogRecorder) AssertLog(t *testing.T, lvl slog.Level, substr string)
- func (l *LogRecorder) Enabled(_ context.Context, _ slog.Level) bool
- func (l *LogRecorder) Handle(_ context.Context, r slog.Record) error
- func (l *LogRecorder) RefuteLog(t *testing.T, lvl slog.Level, substr string)
- func (l *LogRecorder) WithAttrs(_ []slog.Attr) slog.Handler
- func (l *LogRecorder) WithGroup(_ string) slog.Handler
Constants ¶
This section is empty.
Variables ¶
View Source
var Fixtures = &fixtures{}
Functions ¶
Types ¶
type LogRecorder ¶ added in v0.13.0
type LogRecorder struct {
// contains filtered or unexported fields
}
func SetLogRecorder ¶ added in v0.13.0
func SetLogRecorder(t *testing.T) *LogRecorder
Click to show internal directories.
Click to hide internal directories.