Skip to content

Commit

Permalink
move test files
Browse files Browse the repository at this point in the history
  • Loading branch information
aacebo committed Nov 22, 2024
1 parent 3a11beb commit 74af33b
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sqlx/select_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 74af33b

Please sign in to comment.