diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2024-03-11 19:35:06 -0400 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2024-03-11 19:35:06 -0400 |
| commit | 591e74c57cdfb9cd380e401ed9c43fd8dfe6f47d (patch) | |
| tree | 50a772b399b4b77f65b81ae1844827ddc3f54641 /internal/storage/postgresql_test.go | |
| parent | Fix driver name in tutorial (diff) | |
| download | cli-591e74c57cdfb9cd380e401ed9c43fd8dfe6f47d.zip | |
Add support for sqlite3
Diffstat (limited to 'internal/storage/postgresql_test.go')
| -rw-r--r-- | internal/storage/postgresql_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/storage/postgresql_test.go b/internal/storage/postgresql_test.go index 8218cc1..ef89cff 100644 --- a/internal/storage/postgresql_test.go +++ b/internal/storage/postgresql_test.go @@ -13,7 +13,7 @@ import ( "github.com/eugenetriguba/checkmate/assert" ) -func TestConvertGenericPlaceholders(t *testing.T) { +func TestPostgresql_ConvertGenericPlaceholders(t *testing.T) { type test struct { query string argCount int @@ -44,7 +44,7 @@ func TestConvertGenericPlaceholders(t *testing.T) { } } -func TestTableExists(t *testing.T) { +func TestPostgresql_TableExists(t *testing.T) { cfg := bolttest.NewTestConnectionConfig() adapter := storage.PostgresqlAdapter{} db, err := sql.Open("pgx", adapter.CreateDSN(cfg)) @@ -67,7 +67,7 @@ func TestTableExists(t *testing.T) { assert.True(t, exists) } -func TestDatabaseName(t *testing.T) { +func TestPostgresql_DatabaseName(t *testing.T) { cfg := bolttest.NewTestConnectionConfig() adapter := storage.PostgresqlAdapter{} db, err := sql.Open("pgx", adapter.CreateDSN(cfg)) @@ -82,7 +82,7 @@ func TestDatabaseName(t *testing.T) { assert.Equal(t, name, cfg.DBName) } -func TestCreateDSN(t *testing.T) { +func TestPostgresql_CreateDSN(t *testing.T) { cfg := configloader.ConnectionConfig{ Driver: "postgres", Host: "db1", |