update to add tests
This commit is contained in:
206
datastores/sql/migrate/migrate_test.go
Normal file
206
datastores/sql/migrate/migrate_test.go
Normal file
@@ -0,0 +1,206 @@
|
||||
package migrate
|
||||
|
||||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
_ "modernc.org/sqlite"
|
||||
)
|
||||
|
||||
// sqliteDialect implements Dialect for SQLite.
|
||||
type sqliteDialect struct{}
|
||||
|
||||
func (sqliteDialect) Placeholder(n int) string { return "?" }
|
||||
|
||||
func (sqliteDialect) TableExistsQuery() string {
|
||||
return "SELECT EXISTS (SELECT 1 FROM sqlite_master WHERE type='table' AND name = ?)"
|
||||
}
|
||||
|
||||
func openTestDB(t *testing.T) *sql.DB {
|
||||
t.Helper()
|
||||
db, err := sql.Open("sqlite", ":memory:")
|
||||
if err != nil {
|
||||
t.Fatalf("open sqlite: %v", err)
|
||||
}
|
||||
t.Cleanup(func() { db.Close() })
|
||||
return db
|
||||
}
|
||||
|
||||
// writeMigrations creates .up.sql files in dir and returns the directory path.
|
||||
func writeMigrations(t *testing.T, files map[string]string) string {
|
||||
t.Helper()
|
||||
dir := t.TempDir()
|
||||
for name, content := range files {
|
||||
if err := os.WriteFile(filepath.Join(dir, name), []byte(content), 0o644); err != nil {
|
||||
t.Fatalf("write migration %s: %v", name, err)
|
||||
}
|
||||
}
|
||||
return dir
|
||||
}
|
||||
|
||||
func TestDiscoverMigrations(t *testing.T) {
|
||||
dir := writeMigrations(t, map[string]string{
|
||||
"000002_create_posts.up.sql": "CREATE TABLE posts (id INTEGER);",
|
||||
"000001_create_users.up.sql": "CREATE TABLE users (id INTEGER);",
|
||||
"000001_create_users.down.sql": "DROP TABLE users;",
|
||||
"README.md": "not a migration",
|
||||
})
|
||||
|
||||
got, err := discoverMigrations(dir)
|
||||
if err != nil {
|
||||
t.Fatalf("discoverMigrations: %v", err)
|
||||
}
|
||||
|
||||
want := []string{
|
||||
"000001_create_users.up.sql",
|
||||
"000002_create_posts.up.sql",
|
||||
}
|
||||
if len(got) != len(want) {
|
||||
t.Fatalf("got %d migrations, want %d", len(got), len(want))
|
||||
}
|
||||
for i := range want {
|
||||
if got[i] != want[i] {
|
||||
t.Errorf("migration[%d] = %q, want %q", i, got[i], want[i])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestDiscoverMigrations_empty(t *testing.T) {
|
||||
dir := t.TempDir()
|
||||
|
||||
got, err := discoverMigrations(dir)
|
||||
if err != nil {
|
||||
t.Fatalf("discoverMigrations: %v", err)
|
||||
}
|
||||
if got != nil {
|
||||
t.Fatalf("got %v, want nil", got)
|
||||
}
|
||||
}
|
||||
|
||||
func TestRun(t *testing.T) {
|
||||
db := openTestDB(t)
|
||||
ctx := context.Background()
|
||||
dialect := sqliteDialect{}
|
||||
|
||||
dir := writeMigrations(t, map[string]string{
|
||||
"000001_create_users.up.sql": "CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT);",
|
||||
"000002_create_posts.up.sql": "CREATE TABLE posts (id INTEGER PRIMARY KEY, user_id INTEGER);",
|
||||
})
|
||||
|
||||
err := Run(ctx, db, dialect, &Options{MigrationsDir: dir})
|
||||
if err != nil {
|
||||
t.Fatalf("Run: %v", err)
|
||||
}
|
||||
|
||||
// Verify tables were created.
|
||||
for _, table := range []string{"users", "posts", "schema_migrations"} {
|
||||
if !tableExists(ctx, db, dialect, table) {
|
||||
t.Errorf("table %q should exist", table)
|
||||
}
|
||||
}
|
||||
|
||||
// Verify migration records.
|
||||
applied, err := getAppliedMigrations(ctx, db)
|
||||
if err != nil {
|
||||
t.Fatalf("getAppliedMigrations: %v", err)
|
||||
}
|
||||
if !applied["000001_create_users.up.sql"] || !applied["000002_create_posts.up.sql"] {
|
||||
t.Errorf("applied = %v, want both migrations", applied)
|
||||
}
|
||||
}
|
||||
|
||||
func TestRun_idempotent(t *testing.T) {
|
||||
db := openTestDB(t)
|
||||
ctx := context.Background()
|
||||
dialect := sqliteDialect{}
|
||||
|
||||
dir := writeMigrations(t, map[string]string{
|
||||
"000001_create_users.up.sql": "CREATE TABLE users (id INTEGER PRIMARY KEY);",
|
||||
})
|
||||
|
||||
opts := &Options{MigrationsDir: dir}
|
||||
|
||||
if err := Run(ctx, db, dialect, opts); err != nil {
|
||||
t.Fatalf("first Run: %v", err)
|
||||
}
|
||||
if err := Run(ctx, db, dialect, opts); err != nil {
|
||||
t.Fatalf("second Run: %v", err)
|
||||
}
|
||||
|
||||
// Still only one record.
|
||||
applied, err := getAppliedMigrations(ctx, db)
|
||||
if err != nil {
|
||||
t.Fatalf("getAppliedMigrations: %v", err)
|
||||
}
|
||||
if len(applied) != 1 {
|
||||
t.Errorf("got %d applied migrations, want 1", len(applied))
|
||||
}
|
||||
}
|
||||
|
||||
func TestRun_nilOpts(t *testing.T) {
|
||||
db := openTestDB(t)
|
||||
ctx := context.Background()
|
||||
dialect := sqliteDialect{}
|
||||
|
||||
// nil opts should not panic; it will use cwd/migrations which won't exist,
|
||||
// so we expect an error but not a panic.
|
||||
err := Run(ctx, db, dialect, nil)
|
||||
if err == nil {
|
||||
t.Fatal("expected error with nil opts (no migrations dir), got nil")
|
||||
}
|
||||
}
|
||||
|
||||
func TestRun_bootstrap(t *testing.T) {
|
||||
db := openTestDB(t)
|
||||
ctx := context.Background()
|
||||
dialect := sqliteDialect{}
|
||||
|
||||
// Create the sentinel table to simulate an existing schema.
|
||||
if _, err := db.ExecContext(ctx, "CREATE TABLE my_app (id INTEGER)"); err != nil {
|
||||
t.Fatalf("create sentinel: %v", err)
|
||||
}
|
||||
|
||||
dir := writeMigrations(t, map[string]string{
|
||||
"000001_create_users.up.sql": "CREATE TABLE users (id INTEGER PRIMARY KEY);",
|
||||
"000002_create_posts.up.sql": "CREATE TABLE posts (id INTEGER PRIMARY KEY);",
|
||||
})
|
||||
|
||||
err := Run(ctx, db, dialect, &Options{
|
||||
MigrationsDir: dir,
|
||||
BootstrapTable: "my_app",
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatalf("Run: %v", err)
|
||||
}
|
||||
|
||||
// Migrations should be recorded but NOT executed (tables should not exist).
|
||||
applied, err := getAppliedMigrations(ctx, db)
|
||||
if err != nil {
|
||||
t.Fatalf("getAppliedMigrations: %v", err)
|
||||
}
|
||||
if len(applied) != 2 {
|
||||
t.Fatalf("got %d applied, want 2 (bootstrapped)", len(applied))
|
||||
}
|
||||
|
||||
// The actual tables should NOT have been created.
|
||||
if tableExists(ctx, db, dialect, "users") {
|
||||
t.Error("users table should not exist after bootstrap")
|
||||
}
|
||||
if tableExists(ctx, db, dialect, "posts") {
|
||||
t.Error("posts table should not exist after bootstrap")
|
||||
}
|
||||
}
|
||||
|
||||
func TestRun_noMigrationsDir(t *testing.T) {
|
||||
db := openTestDB(t)
|
||||
ctx := context.Background()
|
||||
dialect := sqliteDialect{}
|
||||
|
||||
err := Run(ctx, db, dialect, &Options{MigrationsDir: "/nonexistent/path"})
|
||||
if err == nil {
|
||||
t.Fatal("expected error for nonexistent dir, got nil")
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,12 @@
|
||||
package postgres
|
||||
|
||||
import "fmt"
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"git.nonahob.net/jacob/golibs/datastores/sql/migrate"
|
||||
)
|
||||
|
||||
var _ migrate.Dialect = Dialect{}
|
||||
|
||||
// Dialect implements migrate.Dialect for PostgreSQL.
|
||||
type Dialect struct{}
|
||||
|
||||
164
datastores/sql/postgres/postgres_test.go
Normal file
164
datastores/sql/postgres/postgres_test.go
Normal file
@@ -0,0 +1,164 @@
|
||||
package postgres
|
||||
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
func TestDSN(t *testing.T) {
|
||||
c := &Config{
|
||||
Host: "db.example.com",
|
||||
Port: "5433",
|
||||
User: "alice",
|
||||
Password: "s3cret",
|
||||
DBName: "mydb",
|
||||
SSLMode: "require",
|
||||
}
|
||||
|
||||
want := "host=db.example.com port=5433 user=alice password=s3cret dbname=mydb sslmode=require"
|
||||
if got := c.DSN(); got != want {
|
||||
t.Errorf("DSN() = %q, want %q", got, want)
|
||||
}
|
||||
}
|
||||
|
||||
func TestNewConfig_defaults(t *testing.T) {
|
||||
// Clear all env vars that NewConfig reads so we get pure defaults.
|
||||
for _, key := range []string{"DB_HOST", "DB_PORT", "DB_USER", "DB_PASSWORD", "DB_NAME", "DB_SSL_MODE"} {
|
||||
t.Setenv(key, "")
|
||||
}
|
||||
|
||||
c := NewConfig()
|
||||
|
||||
if c.Host != "localhost" {
|
||||
t.Errorf("Host = %q, want %q", c.Host, "localhost")
|
||||
}
|
||||
if c.Port != "5432" {
|
||||
t.Errorf("Port = %q, want %q", c.Port, "5432")
|
||||
}
|
||||
if c.User != "postgres" {
|
||||
t.Errorf("User = %q, want %q", c.User, "postgres")
|
||||
}
|
||||
if c.Password != "postgres" {
|
||||
t.Errorf("Password = %q, want %q", c.Password, "postgres")
|
||||
}
|
||||
if c.DBName != "" {
|
||||
t.Errorf("DBName = %q, want empty", c.DBName)
|
||||
}
|
||||
if c.SSLMode != "disable" {
|
||||
t.Errorf("SSLMode = %q, want %q", c.SSLMode, "disable")
|
||||
}
|
||||
}
|
||||
|
||||
func TestNewConfig_envOverrides(t *testing.T) {
|
||||
t.Setenv("DB_HOST", "remotehost")
|
||||
t.Setenv("DB_PORT", "9999")
|
||||
t.Setenv("DB_USER", "bob")
|
||||
t.Setenv("DB_PASSWORD", "hunter2")
|
||||
t.Setenv("DB_NAME", "testdb")
|
||||
t.Setenv("DB_SSL_MODE", "verify-full")
|
||||
|
||||
c := NewConfig()
|
||||
|
||||
if c.Host != "remotehost" {
|
||||
t.Errorf("Host = %q, want %q", c.Host, "remotehost")
|
||||
}
|
||||
if c.Port != "9999" {
|
||||
t.Errorf("Port = %q, want %q", c.Port, "9999")
|
||||
}
|
||||
if c.User != "bob" {
|
||||
t.Errorf("User = %q, want %q", c.User, "bob")
|
||||
}
|
||||
if c.Password != "hunter2" {
|
||||
t.Errorf("Password = %q, want %q", c.Password, "hunter2")
|
||||
}
|
||||
if c.DBName != "testdb" {
|
||||
t.Errorf("DBName = %q, want %q", c.DBName, "testdb")
|
||||
}
|
||||
if c.SSLMode != "verify-full" {
|
||||
t.Errorf("SSLMode = %q, want %q", c.SSLMode, "verify-full")
|
||||
}
|
||||
}
|
||||
|
||||
func TestNewConfig_withContext(t *testing.T) {
|
||||
ctx := context.WithValue(context.Background(), struct{}{}, "test")
|
||||
c := NewConfig(WithContext(ctx))
|
||||
|
||||
if c.Context() != ctx {
|
||||
t.Error("WithContext option did not set the context")
|
||||
}
|
||||
}
|
||||
|
||||
func TestContext_default(t *testing.T) {
|
||||
c := &Config{}
|
||||
ctx := c.Context()
|
||||
if ctx == nil {
|
||||
t.Fatal("Context() returned nil")
|
||||
}
|
||||
// Should return background context.
|
||||
if ctx != context.Background() {
|
||||
t.Error("Context() should return context.Background() when none set")
|
||||
}
|
||||
}
|
||||
|
||||
func TestContext_set(t *testing.T) {
|
||||
ctx := t.Context()
|
||||
c := &Config{ctx: ctx}
|
||||
if c.Context() != ctx {
|
||||
t.Error("Context() did not return the set context")
|
||||
}
|
||||
}
|
||||
|
||||
func TestDialect_Placeholder(t *testing.T) {
|
||||
d := Dialect{}
|
||||
tests := []struct {
|
||||
n int
|
||||
want string
|
||||
}{
|
||||
{1, "$1"},
|
||||
{2, "$2"},
|
||||
{10, "$10"},
|
||||
{100, "$100"},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
if got := d.Placeholder(tt.n); got != tt.want {
|
||||
t.Errorf("Placeholder(%d) = %q, want %q", tt.n, got, tt.want)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestDialect_TableExistsQuery(t *testing.T) {
|
||||
q := Dialect{}.TableExistsQuery()
|
||||
if q == "" {
|
||||
t.Fatal("TableExistsQuery() returned empty string")
|
||||
}
|
||||
// Should reference information_schema and use $1 placeholder.
|
||||
if got := q; got != "SELECT EXISTS (SELECT FROM information_schema.tables WHERE table_name = $1)" {
|
||||
t.Errorf("TableExistsQuery() = %q", got)
|
||||
}
|
||||
}
|
||||
|
||||
func TestDefaultPoolConfig(t *testing.T) {
|
||||
pc := DefaultPoolConfig()
|
||||
|
||||
if pc.MaxConns != 10 {
|
||||
t.Errorf("MaxConns = %d, want 10", pc.MaxConns)
|
||||
}
|
||||
if pc.MinConns != 2 {
|
||||
t.Errorf("MinConns = %d, want 2", pc.MinConns)
|
||||
}
|
||||
if pc.MaxConnLifetime != time.Hour {
|
||||
t.Errorf("MaxConnLifetime = %v, want %v", pc.MaxConnLifetime, time.Hour)
|
||||
}
|
||||
if pc.MaxConnIdleTime != 30*time.Minute {
|
||||
t.Errorf("MaxConnIdleTime = %v, want %v", pc.MaxConnIdleTime, 30*time.Minute)
|
||||
}
|
||||
if pc.HealthCheckPeriod != time.Minute {
|
||||
t.Errorf("HealthCheckPeriod = %v, want %v", pc.HealthCheckPeriod, time.Minute)
|
||||
}
|
||||
}
|
||||
|
||||
func TestClosePool_nil(t *testing.T) {
|
||||
// Should not panic.
|
||||
ClosePool(nil)
|
||||
}
|
||||
16
go.mod
16
go.mod
@@ -3,10 +3,24 @@ module git.nonahob.net/jacob/golibs
|
||||
go 1.24.13
|
||||
|
||||
require (
|
||||
github.com/jackc/pgx/v5 v5.8.0
|
||||
modernc.org/sqlite v1.46.1
|
||||
)
|
||||
|
||||
require (
|
||||
github.com/dustin/go-humanize v1.0.1 // indirect
|
||||
github.com/google/uuid v1.6.0 // indirect
|
||||
github.com/jackc/pgpassfile v1.0.0 // indirect
|
||||
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
|
||||
github.com/jackc/pgx/v5 v5.8.0 // indirect
|
||||
github.com/jackc/puddle/v2 v2.2.2 // indirect
|
||||
github.com/mattn/go-isatty v0.0.20 // indirect
|
||||
github.com/ncruces/go-strftime v1.0.0 // indirect
|
||||
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
|
||||
golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546 // indirect
|
||||
golang.org/x/sync v0.17.0 // indirect
|
||||
golang.org/x/sys v0.37.0 // indirect
|
||||
golang.org/x/text v0.29.0 // indirect
|
||||
modernc.org/libc v1.67.6 // indirect
|
||||
modernc.org/mathutil v1.7.1 // indirect
|
||||
modernc.org/memory v1.11.0 // indirect
|
||||
)
|
||||
|
||||
58
go.sum
58
go.sum
@@ -1,4 +1,14 @@
|
||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY=
|
||||
github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto=
|
||||
github.com/google/pprof v0.0.0-20250317173921-a4b03ec1a45e h1:ijClszYn+mADRFY17kjQEVQ1XRhq2/JR1M3sGqeJoxs=
|
||||
github.com/google/pprof v0.0.0-20250317173921-a4b03ec1a45e/go.mod h1:boTsfXsheKC2y+lKOCMpSfarhxDeIzfZG1jqGcPl3cA=
|
||||
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
|
||||
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||
github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k=
|
||||
github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM=
|
||||
github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM=
|
||||
github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg=
|
||||
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 h1:iCEnooe7UlwOQYpKFhBabPMi4aNAfoODPEFNiAnClxo=
|
||||
@@ -7,13 +17,61 @@ github.com/jackc/pgx/v5 v5.8.0 h1:TYPDoleBBme0xGSAX3/+NujXXtpZn9HBONkQC7IEZSo=
|
||||
github.com/jackc/pgx/v5 v5.8.0/go.mod h1:QVeDInX2m9VyzvNeiCJVjCkNFqzsNb43204HshNSZKw=
|
||||
github.com/jackc/puddle/v2 v2.2.2 h1:PR8nw+E/1w0GLuRFSmiioY6UooMp6KJv0/61nB7icHo=
|
||||
github.com/jackc/puddle/v2 v2.2.2/go.mod h1:vriiEXHvEE654aYKXXjOvZM39qJ0q+azkZFrfEOc3H4=
|
||||
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
|
||||
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
|
||||
github.com/ncruces/go-strftime v1.0.0 h1:HMFp8mLCTPp341M/ZnA4qaf7ZlsbTc+miZjCLOFAw7w=
|
||||
github.com/ncruces/go-strftime v1.0.0/go.mod h1:Fwc5htZGVVkseilnfgOVb9mKy6w1naJmn9CehxcKcls=
|
||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec h1:W09IVJc94icq4NjY3clb7Lk8O1qJ8BdBEF8z0ibU0rE=
|
||||
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
|
||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
|
||||
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
|
||||
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
|
||||
golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546 h1:mgKeJMpvi0yx/sU5GsxQ7p6s2wtOnGAHZWCHUM4KGzY=
|
||||
golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546/go.mod h1:j/pmGrbnkbPtQfxEe5D0VQhZC6qKbfKifgD0oM7sR70=
|
||||
golang.org/x/mod v0.29.0 h1:HV8lRxZC4l2cr3Zq1LvtOsi/ThTgWnUk/y64QSs8GwA=
|
||||
golang.org/x/mod v0.29.0/go.mod h1:NyhrlYXJ2H4eJiRy/WDBO6HMqZQ6q9nk4JzS3NuCK+w=
|
||||
golang.org/x/sync v0.17.0 h1:l60nONMj9l5drqw6jlhIELNv9I0A4OFgRsG9k2oT9Ug=
|
||||
golang.org/x/sync v0.17.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=
|
||||
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.37.0 h1:fdNQudmxPjkdUTPnLn5mdQv7Zwvbvpaxqs831goi9kQ=
|
||||
golang.org/x/sys v0.37.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
|
||||
golang.org/x/text v0.29.0 h1:1neNs90w9YzJ9BocxfsQNHKuAT4pkghyXc4nhZ6sJvk=
|
||||
golang.org/x/text v0.29.0/go.mod h1:7MhJOA9CD2qZyOKYazxdYMF85OwPdEr9jTtBpO7ydH4=
|
||||
golang.org/x/tools v0.38.0 h1:Hx2Xv8hISq8Lm16jvBZ2VQf+RLmbd7wVUsALibYI/IQ=
|
||||
golang.org/x/tools v0.38.0/go.mod h1:yEsQ/d/YK8cjh0L6rZlY8tgtlKiBNTL14pGDJPJpYQs=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
|
||||
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
modernc.org/cc/v4 v4.27.1 h1:9W30zRlYrefrDV2JE2O8VDtJ1yPGownxciz5rrbQZis=
|
||||
modernc.org/cc/v4 v4.27.1/go.mod h1:uVtb5OGqUKpoLWhqwNQo/8LwvoiEBLvZXIQ/SmO6mL0=
|
||||
modernc.org/ccgo/v4 v4.30.1 h1:4r4U1J6Fhj98NKfSjnPUN7Ze2c6MnAdL0hWw6+LrJpc=
|
||||
modernc.org/ccgo/v4 v4.30.1/go.mod h1:bIOeI1JL54Utlxn+LwrFyjCx2n2RDiYEaJVSrgdrRfM=
|
||||
modernc.org/fileutil v1.3.40 h1:ZGMswMNc9JOCrcrakF1HrvmergNLAmxOPjizirpfqBA=
|
||||
modernc.org/fileutil v1.3.40/go.mod h1:HxmghZSZVAz/LXcMNwZPA/DRrQZEVP9VX0V4LQGQFOc=
|
||||
modernc.org/gc/v2 v2.6.5 h1:nyqdV8q46KvTpZlsw66kWqwXRHdjIlJOhG6kxiV/9xI=
|
||||
modernc.org/gc/v2 v2.6.5/go.mod h1:YgIahr1ypgfe7chRuJi2gD7DBQiKSLMPgBQe9oIiito=
|
||||
modernc.org/gc/v3 v3.1.1 h1:k8T3gkXWY9sEiytKhcgyiZ2L0DTyCQ/nvX+LoCljoRE=
|
||||
modernc.org/gc/v3 v3.1.1/go.mod h1:HFK/6AGESC7Ex+EZJhJ2Gni6cTaYpSMmU/cT9RmlfYY=
|
||||
modernc.org/goabi0 v0.2.0 h1:HvEowk7LxcPd0eq6mVOAEMai46V+i7Jrj13t4AzuNks=
|
||||
modernc.org/goabi0 v0.2.0/go.mod h1:CEFRnnJhKvWT1c1JTI3Avm+tgOWbkOu5oPA8eH8LnMI=
|
||||
modernc.org/libc v1.67.6 h1:eVOQvpModVLKOdT+LvBPjdQqfrZq+pC39BygcT+E7OI=
|
||||
modernc.org/libc v1.67.6/go.mod h1:JAhxUVlolfYDErnwiqaLvUqc8nfb2r6S6slAgZOnaiE=
|
||||
modernc.org/mathutil v1.7.1 h1:GCZVGXdaN8gTqB1Mf/usp1Y/hSqgI2vAGGP4jZMCxOU=
|
||||
modernc.org/mathutil v1.7.1/go.mod h1:4p5IwJITfppl0G4sUEDtCr4DthTaT47/N3aT6MhfgJg=
|
||||
modernc.org/memory v1.11.0 h1:o4QC8aMQzmcwCK3t3Ux/ZHmwFPzE6hf2Y5LbkRs+hbI=
|
||||
modernc.org/memory v1.11.0/go.mod h1:/JP4VbVC+K5sU2wZi9bHoq2MAkCnrt2r98UGeSK7Mjw=
|
||||
modernc.org/opt v0.1.4 h1:2kNGMRiUjrp4LcaPuLY2PzUfqM/w9N23quVwhKt5Qm8=
|
||||
modernc.org/opt v0.1.4/go.mod h1:03fq9lsNfvkYSfxrfUhZCWPk1lm4cq4N+Bh//bEtgns=
|
||||
modernc.org/sortutil v1.2.1 h1:+xyoGf15mM3NMlPDnFqrteY07klSFxLElE2PVuWIJ7w=
|
||||
modernc.org/sortutil v1.2.1/go.mod h1:7ZI3a3REbai7gzCLcotuw9AC4VZVpYMjDzETGsSMqJE=
|
||||
modernc.org/sqlite v1.46.1 h1:eFJ2ShBLIEnUWlLy12raN0Z1plqmFX9Qe3rjQTKt6sU=
|
||||
modernc.org/sqlite v1.46.1/go.mod h1:CzbrU2lSB1DKUusvwGz7rqEKIq+NUd8GWuBBZDs9/nA=
|
||||
modernc.org/strutil v1.2.1 h1:UneZBkQA+DX2Rp35KcM69cSsNES9ly8mQWD71HKlOA0=
|
||||
modernc.org/strutil v1.2.1/go.mod h1:EHkiggD70koQxjVdSBM3JKM7k6L0FbGE5eymy9i3B9A=
|
||||
modernc.org/token v1.1.0 h1:Xl7Ap9dKaEs5kLoOQeQmPWevfnk/DM5qcLcYlA8ys6Y=
|
||||
modernc.org/token v1.1.0/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM=
|
||||
|
||||
Reference in New Issue
Block a user