aboutsummaryrefslogtreecommitdiff
path: root/plan_test.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2026-04-10 20:13:15 +0200
committerStefan Majewsky <majewsky@gmx.net>2026-04-10 20:13:15 +0200
commit293e2a52e0b45065db12ff27f89f1adebe4bf4d2 (patch)
tree2e7efecdf5ee359df9c6b09ece3443ea33432462 /plan_test.go
parente0fb5aa0acc1983648ab1480f22114aead234eeb (diff)
downloadgo-oblast-293e2a52e0b45065db12ff27f89f1adebe4bf4d2.tar.gz
reorganize code
Diffstat (limited to 'plan_test.go')
-rw-r--r--plan_test.go38
1 files changed, 0 insertions, 38 deletions
diff --git a/plan_test.go b/plan_test.go
deleted file mode 100644
index 0cf5afa..0000000
--- a/plan_test.go
+++ /dev/null
@@ -1,38 +0,0 @@
-// SPDX-FileCopyrightText: 2026 Stefan Majewsky <majewsky@gmx.net>
-// SPDX-License-Identifier: Apache-2.0
-
-package oblast_test
-
-import (
- "testing"
- "time"
-
- "go.xyrillian.de/oblast"
-)
-
-func TestPlan(t *testing.T) {
- type Log struct {
- oblast.TableInfo `db:"log_entries"`
- oblast.PrimaryKeyInfo `db:"id"`
- ID int64 `db:"id,auto"`
- CreatedAt time.Time `db:"created_at"`
- Message string `db:"message"`
- private1 bool `db:"private1"`
- }
-
- type record struct {
- Log
- Keks bool `db:"keks"`
- private2 bool `db:"private2"`
- }
-
- db := oblast.NewDB(nil, oblast.PostgresDialect())
- err := oblast.Keks[record](t.Context(), db)
- if err != nil {
- t.Error(err)
- }
- err = oblast.Keks[Log](t.Context(), db)
- if err != nil {
- t.Error(err)
- }
-}