From 591e74c57cdfb9cd380e401ed9c43fd8dfe6f47d Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Mon, 11 Mar 2024 19:35:06 -0400 Subject: Add support for sqlite3 --- internal/storage/postgresql_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'internal/storage/postgresql_test.go') 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", -- cgit v1.2.3