2024-01-04 10:44:36 +00:00
|
|
|
package adapter_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2024-01-14 10:04:17 +00:00
|
|
|
"gitea.dwysokinski.me/twhelp/corev3/internal/bun/buntest"
|
2024-01-04 10:44:36 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestEnnoblementBunRepository_Postgres(t *testing.T) {
|
|
|
|
t.Parallel()
|
|
|
|
|
|
|
|
if testing.Short() {
|
|
|
|
t.Skip("skipping long-running test")
|
|
|
|
}
|
|
|
|
|
|
|
|
testEnnoblementRepository(t, func(t *testing.T) repositories {
|
|
|
|
t.Helper()
|
2024-01-14 10:04:17 +00:00
|
|
|
return newBunDBRepositories(t, postgres.NewDB(t))
|
2024-01-04 10:44:36 +00:00
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestEnnoblementBunRepository_SQLite(t *testing.T) {
|
|
|
|
t.Parallel()
|
|
|
|
|
|
|
|
testEnnoblementRepository(t, func(t *testing.T) repositories {
|
|
|
|
t.Helper()
|
2024-01-14 10:04:17 +00:00
|
|
|
return newBunDBRepositories(t, buntest.NewSQLiteDB(t))
|
2024-01-04 10:44:36 +00:00
|
|
|
})
|
|
|
|
}
|