add tests for repository
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s

This commit is contained in:
Thomas Peetz
2026-10-06 17:11:42 +02:00
parent 32f3f034eb
commit 980eda29af
9 changed files with 154 additions and 17 deletions
@@ -1,27 +1,29 @@
package testutils
import (
"log/slog"
"os"
"testing"
)
func SetupTestDatabase() {
slog.Info("SetupTestDatabase")
}
func PatchDatabase() {
slog.Info("PatchDatabase")
}
func TearDownTestDatabase() {
slog.Info("TearDownTestDatabase")
}
func UnpatchDatabase() {
slog.Info("UnpatchDatabase")
}
func InitializeTestSuite(m *testing.M) {
slog.Info("InitializeTestSuite")
// Initialize the test database
SetupTestDatabase()
// Patch the global database.DB to use the TestDB