Move init and test results data to separate repo.
This commit is contained in:
parent
96cc6d15b5
commit
d5466a91e6
21 changed files with 21 additions and 414048 deletions
|
|
@ -5,7 +5,7 @@ import (
|
|||
"github.com/go-jet/jet/internal/testutils"
|
||||
"github.com/go-jet/jet/tests/.gentestdata/mysql/test_sample/model"
|
||||
. "github.com/go-jet/jet/tests/.gentestdata/mysql/test_sample/table"
|
||||
"github.com/go-jet/jet/tests/testdata/common"
|
||||
"github.com/go-jet/jet/tests/testdata/results/common"
|
||||
"github.com/google/uuid"
|
||||
"time"
|
||||
|
||||
|
|
@ -193,7 +193,7 @@ FROM test_sample.all_types;
|
|||
|
||||
assert.NilError(t, err)
|
||||
|
||||
testutils.AssertJSONFile(t, dest, "./testdata/common/bool_operators.json")
|
||||
testutils.AssertJSONFile(t, dest, "./testdata/results/common/bool_operators.json")
|
||||
}
|
||||
|
||||
func TestFloatOperators(t *testing.T) {
|
||||
|
|
@ -290,7 +290,7 @@ LIMIT ?;
|
|||
|
||||
assert.NilError(t, err)
|
||||
|
||||
testutils.AssertJSONFile(t, dest, "./testdata/common/float_operators.json")
|
||||
testutils.AssertJSONFile(t, dest, "./testdata/results/common/float_operators.json")
|
||||
}
|
||||
|
||||
func TestIntegerOperators(t *testing.T) {
|
||||
|
|
@ -429,7 +429,7 @@ LIMIT ?;
|
|||
|
||||
//testutils.PrintJson(dest)
|
||||
|
||||
testutils.AssertJSONFile(t, dest, "./testdata/common/int_operators.json")
|
||||
testutils.AssertJSONFile(t, dest, "./testdata/results/common/int_operators.json")
|
||||
}
|
||||
|
||||
func TestStringOperators(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ ORDER BY actor.actor_id;
|
|||
|
||||
//testutils.PrintJson(dest)
|
||||
//testutils.SaveJsonFile(dest, "mysql/testdata/all_actors.json")
|
||||
testutils.AssertJSONFile(t, dest, "mysql/testdata/all_actors.json")
|
||||
testutils.AssertJSONFile(t, dest, "./testdata/results/mysql/all_actors.json")
|
||||
}
|
||||
|
||||
func TestSelectGroupByHaving(t *testing.T) {
|
||||
|
|
@ -138,7 +138,7 @@ ORDER BY payment.customer_id, SUM(payment.amount) ASC;
|
|||
assert.Equal(t, len(dest), 174)
|
||||
|
||||
//testutils.SaveJsonFile(dest, "mysql/testdata/customer_payment_sum.json")
|
||||
testutils.AssertJSONFile(t, dest, "mysql/testdata/customer_payment_sum.json")
|
||||
testutils.AssertJSONFile(t, dest, "./testdata/results/mysql/customer_payment_sum.json")
|
||||
}
|
||||
|
||||
func TestSubQuery(t *testing.T) {
|
||||
|
|
@ -174,7 +174,7 @@ func TestSubQuery(t *testing.T) {
|
|||
assert.NilError(t, err)
|
||||
|
||||
//testutils.SaveJsonFile(dest, "mysql/testdata/r_rating_films.json")
|
||||
testutils.AssertJSONFile(t, dest, "mysql/testdata/r_rating_films.json")
|
||||
testutils.AssertJSONFile(t, dest, "./testdata/results/mysql/r_rating_films.json")
|
||||
}
|
||||
|
||||
func TestSelectAndUnionInProjection(t *testing.T) {
|
||||
|
|
@ -405,7 +405,7 @@ LIMIT ?;
|
|||
|
||||
//testutils.SaveJsonFile(dest, "./mysql/testdata/lang_film_actor_inventory_rental.json")
|
||||
|
||||
testutils.AssertJSONFile(t, dest, "./mysql/testdata/lang_film_actor_inventory_rental.json")
|
||||
testutils.AssertJSONFile(t, dest, "./testdata/results/mysql/lang_film_actor_inventory_rental.json")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
1202
tests/mysql/testdata/all_actors.json
vendored
1202
tests/mysql/testdata/all_actors.json
vendored
File diff suppressed because it is too large
Load diff
3134
tests/mysql/testdata/customer_payment_sum.json
vendored
3134
tests/mysql/testdata/customer_payment_sum.json
vendored
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
9469
tests/mysql/testdata/r_rating_films.json
vendored
9469
tests/mysql/testdata/r_rating_films.json
vendored
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue