Files
Gardomatic/internal/web/testutils_test.go
T
kleiax 904d14b64c
CI / test (push) Canceled after 0s
Initial commit
2026-09-12 22:22:17 +02:00

23 lines
393 B
Go

package web
import (
"io"
"log/slog"
"testing"
"github.com/go-playground/form/v4"
)
func newTestApplication(t *testing.T) *application {
t.Helper()
templateCache, err := newTemplateCache()
if err != nil {
t.Fatal(err)
}
return &application{
templateCache: templateCache,
formDecoder: form.NewDecoder(),
logger: slog.New(slog.NewTextHandler(io.Discard, nil)),
}
}