commit 8ef947dc5a40615d7c05bc7898bf8de17352bf2c
parent 019a78d7c7a7140f7c0d7d50d08a8936c088b3f5
Author: lash <dev@holbrook.no>
Date: Sun, 1 Sep 2024 07:33:53 +0100
Conceal resourcetest
Diffstat:
6 files changed, 3 insertions(+), 24 deletions(-)
diff --git a/resource/resourcetest/util.go b/internal/resourcetest/util.go
diff --git a/resource/resourcetest/util_test.go b/internal/resourcetest/util_test.go
diff --git a/render/page_test.go b/render/page_test.go
@@ -6,7 +6,7 @@ import (
"testing"
"git.defalsify.org/vise.git/cache"
- "git.defalsify.org/vise.git/resource/resourcetest"
+ "git.defalsify.org/vise.git/internal/resourcetest"
)
diff --git a/render/size_test.go b/render/size_test.go
@@ -7,7 +7,7 @@ import (
"git.defalsify.org/vise.git/state"
"git.defalsify.org/vise.git/resource"
- "git.defalsify.org/vise.git/resource/resourcetest"
+ "git.defalsify.org/vise.git/internal/resourcetest"
"git.defalsify.org/vise.git/cache"
)
diff --git a/testdata/testdata.go b/testdata/testdata.go
@@ -10,30 +10,9 @@ import (
"git.defalsify.org/vise.git/resource"
"git.defalsify.org/vise.git/logging"
)
-//
-//type TestdataDb struct {
-// db db.Db
-//}
-//
-//var (
-// store *TestdataDb
-// ctx = context.Background()
-//)
-//
-//func NewTestDataDb(path string) *TestdataDb {
-// store := db.NewFsDb()
-// store.Connect(ctx, path)
-// store.SetLock(db.DATATYPE_BIN, false)
-// store.SetLock(db.DATATYPE_MENU, false)
-// store.SetLock(db.DATATYPE_TEMPLATE, false)
-// return &TestdataDb{
-// db: store,
-// }
-//}
var (
ctx = context.Background()
- //testResource = resourcetest.NewTestResource()
store = db.NewFsDb()
out = outNew
logg = logging.NewVanilla().WithDomain("testdata")
diff --git a/vm/runner_test.go b/vm/runner_test.go
@@ -10,7 +10,7 @@ import (
"git.defalsify.org/vise.git/cache"
"git.defalsify.org/vise.git/render"
"git.defalsify.org/vise.git/resource"
- "git.defalsify.org/vise.git/resource/resourcetest"
+ "git.defalsify.org/vise.git/internal/resourcetest"
"git.defalsify.org/vise.git/state"
)