vend with

This commit is contained in:
bel
2026-06-27 16:44:47 -06:00
parent 48c3474c15
commit a9f78655c3
20 changed files with 1068 additions and 3 deletions
+21
View File
@@ -0,0 +1,21 @@
package with_test
import (
"context"
"database/sql"
"fmt"
"path"
"testing"
"gitea.bel.blue/bel/with"
)
func TestSqlite(t *testing.T) {
d := t.TempDir()
myErr := fmt.Errorf("my err")
if err := with.Sqlite(context.Background(), "sqlite://"+path.Join(d, "db"), func(db *sql.DB) error {
return myErr
}); err != myErr {
t.Fatal(err)
}
}