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 c61e2cf commit ab99948
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 @@ -100,7 +100,7 @@ func TestSelect(t *testing.T) {

t.Run("where", func(t *testing.T) {
t.Run("and", func(t *testing.T) {
expected, err := os.ReadFile("./testcases/select/where_and.sql")
expected, err := os.ReadFile("./testcases/select/where/and.sql")

if err != nil {
t.Fatal(err)
Expand All @@ -124,7 +124,7 @@ func TestSelect(t *testing.T) {
})

t.Run("or", func(t *testing.T) {
expected, err := os.ReadFile("./testcases/select/where_or.sql")
expected, err := os.ReadFile("./testcases/select/where/or.sql")

if err != nil {
t.Fatal(err)
Expand All @@ -144,7 +144,7 @@ func TestSelect(t *testing.T) {
})

t.Run("and or", func(t *testing.T) {
expected, err := os.ReadFile("./testcases/select/where_and_or.sql")
expected, err := os.ReadFile("./testcases/select/where/and_or.sql")

if err != nil {
t.Fatal(err)
Expand Down Expand Up @@ -383,7 +383,7 @@ func TestSelect(t *testing.T) {

t.Run("where", func(t *testing.T) {
t.Run("and", func(t *testing.T) {
expected, err := os.ReadFile("./testcases/select/where_and_pretty.sql")
expected, err := os.ReadFile("./testcases/select/where/and_pretty.sql")

if err != nil {
t.Fatal(err)
Expand All @@ -407,7 +407,7 @@ func TestSelect(t *testing.T) {
})

t.Run("or", func(t *testing.T) {
expected, err := os.ReadFile("./testcases/select/where_or_pretty.sql")
expected, err := os.ReadFile("./testcases/select/where/or_pretty.sql")

if err != nil {
t.Fatal(err)
Expand All @@ -427,7 +427,7 @@ func TestSelect(t *testing.T) {
})

t.Run("and or", func(t *testing.T) {
expected, err := os.ReadFile("./testcases/select/where_and_or_pretty.sql")
expected, err := os.ReadFile("./testcases/select/where/and_or_pretty.sql")

if err != nil {
t.Fatal(err)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ab99948

Please sign in to comment.