From 74af33b1c79964079ff28f1a6a9fe0eec4406c28 Mon Sep 17 00:00:00 2001 From: aacebo Date: Fri, 22 Nov 2024 16:11:11 -0500 Subject: [PATCH] move test files --- sqlx/select_test.go | 12 ++++++------ .../select/{column_select.sql => column/select.sql} | 0 .../select_pretty.sql} | 0 .../select/{column_string.sql => column/string.sql} | 0 .../string_pretty.sql} | 0 .../string_select.sql} | 0 .../string_select_pretty.sql} | 0 7 files changed, 6 insertions(+), 6 deletions(-) rename sqlx/testcases/select/{column_select.sql => column/select.sql} (100%) rename sqlx/testcases/select/{column_select_pretty.sql => column/select_pretty.sql} (100%) rename sqlx/testcases/select/{column_string.sql => column/string.sql} (100%) rename sqlx/testcases/select/{column_string_pretty.sql => column/string_pretty.sql} (100%) rename sqlx/testcases/select/{column_string_select.sql => column/string_select.sql} (100%) rename sqlx/testcases/select/{column_string_select_pretty.sql => column/string_select_pretty.sql} (100%) diff --git a/sqlx/select_test.go b/sqlx/select_test.go index cb50465..ce402f9 100644 --- a/sqlx/select_test.go +++ b/sqlx/select_test.go @@ -11,7 +11,7 @@ import ( func TestSelect(t *testing.T) { t.Run("column", func(t *testing.T) { t.Run("string", func(t *testing.T) { - expected, err := os.ReadFile("./testcases/select/column_string.sql") + expected, err := os.ReadFile("./testcases/select/column/string.sql") if err != nil { t.Fatal(err) @@ -29,7 +29,7 @@ func TestSelect(t *testing.T) { }) t.Run("select", func(t *testing.T) { - expected, err := os.ReadFile("./testcases/select/column_select.sql") + expected, err := os.ReadFile("./testcases/select/column/select.sql") if err != nil { t.Fatal(err) @@ -45,7 +45,7 @@ func TestSelect(t *testing.T) { }) t.Run("string and select", func(t *testing.T) { - expected, err := os.ReadFile("./testcases/select/column_string_select.sql") + expected, err := os.ReadFile("./testcases/select/column/string_select.sql") if err != nil { t.Fatal(err) @@ -294,7 +294,7 @@ func TestSelect(t *testing.T) { t.Run("pretty", func(t *testing.T) { t.Run("column", func(t *testing.T) { t.Run("string", func(t *testing.T) { - expected, err := os.ReadFile("./testcases/select/column_string_pretty.sql") + expected, err := os.ReadFile("./testcases/select/column/string_pretty.sql") if err != nil { t.Fatal(err) @@ -312,7 +312,7 @@ func TestSelect(t *testing.T) { }) t.Run("select", func(t *testing.T) { - expected, err := os.ReadFile("./testcases/select/column_select_pretty.sql") + expected, err := os.ReadFile("./testcases/select/column/select_pretty.sql") if err != nil { t.Fatal(err) @@ -328,7 +328,7 @@ func TestSelect(t *testing.T) { }) t.Run("string and select", func(t *testing.T) { - expected, err := os.ReadFile("./testcases/select/column_string_select_pretty.sql") + expected, err := os.ReadFile("./testcases/select/column/string_select_pretty.sql") if err != nil { t.Fatal(err) diff --git a/sqlx/testcases/select/column_select.sql b/sqlx/testcases/select/column/select.sql similarity index 100% rename from sqlx/testcases/select/column_select.sql rename to sqlx/testcases/select/column/select.sql diff --git a/sqlx/testcases/select/column_select_pretty.sql b/sqlx/testcases/select/column/select_pretty.sql similarity index 100% rename from sqlx/testcases/select/column_select_pretty.sql rename to sqlx/testcases/select/column/select_pretty.sql diff --git a/sqlx/testcases/select/column_string.sql b/sqlx/testcases/select/column/string.sql similarity index 100% rename from sqlx/testcases/select/column_string.sql rename to sqlx/testcases/select/column/string.sql diff --git a/sqlx/testcases/select/column_string_pretty.sql b/sqlx/testcases/select/column/string_pretty.sql similarity index 100% rename from sqlx/testcases/select/column_string_pretty.sql rename to sqlx/testcases/select/column/string_pretty.sql diff --git a/sqlx/testcases/select/column_string_select.sql b/sqlx/testcases/select/column/string_select.sql similarity index 100% rename from sqlx/testcases/select/column_string_select.sql rename to sqlx/testcases/select/column/string_select.sql diff --git a/sqlx/testcases/select/column_string_select_pretty.sql b/sqlx/testcases/select/column/string_select_pretty.sql similarity index 100% rename from sqlx/testcases/select/column_string_select_pretty.sql rename to sqlx/testcases/select/column/string_select_pretty.sql