Initial commit
CI / test (push) Canceled after 0s

This commit is contained in:
2026-09-12 22:22:17 +02:00
commit 904d14b64c
314 changed files with 31884 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
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)),
}
}