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
|
|
@ -6,7 +6,7 @@ import (
|
|||
. "github.com/go-jet/jet/postgres"
|
||||
"github.com/go-jet/jet/tests/.gentestdata/jetdb/test_sample/model"
|
||||
. "github.com/go-jet/jet/tests/.gentestdata/jetdb/test_sample/table"
|
||||
"github.com/go-jet/jet/tests/testdata/common"
|
||||
"github.com/go-jet/jet/tests/testdata/results/common"
|
||||
"github.com/google/uuid"
|
||||
"gotest.tools/assert"
|
||||
"testing"
|
||||
|
|
@ -308,7 +308,7 @@ LIMIT $5;
|
|||
|
||||
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) {
|
||||
|
|
@ -406,7 +406,7 @@ LIMIT $35;
|
|||
|
||||
//testutils.PrintJson(dest)
|
||||
|
||||
testutils.AssertJSONFile(t, dest, "./testdata/common/float_operators.json")
|
||||
testutils.AssertJSONFile(t, dest, "./testdata/results/common/float_operators.json")
|
||||
}
|
||||
|
||||
func TestIntegerOperators(t *testing.T) {
|
||||
|
|
@ -545,7 +545,7 @@ LIMIT $23;
|
|||
|
||||
//testutils.SaveJsonFile("./testdata/common/int_operators.json", dest)
|
||||
//testutils.PrintJson(dest)
|
||||
testutils.AssertJSONFile(t, dest, "./testdata/common/int_operators.json")
|
||||
testutils.AssertJSONFile(t, dest, "./testdata/results/common/int_operators.json")
|
||||
}
|
||||
|
||||
func TestTimeExpression(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ func TestJoinEverything(t *testing.T) {
|
|||
|
||||
assert.NilError(t, err)
|
||||
assert.Equal(t, len(dest), 275)
|
||||
testutils.AssertJSONFile(t, dest, "./postgres/testdata/joined_everything.json")
|
||||
testutils.AssertJSONFile(t, dest, "./testdata/results/postgres/joined_everything.json")
|
||||
}
|
||||
|
||||
func TestSelfJoin(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -62,5 +62,5 @@ func TestNorthwindJoinEverything(t *testing.T) {
|
|||
assert.NilError(t, err)
|
||||
|
||||
//jsonSave("./testdata/northwind-all.json", dest)
|
||||
testutils.AssertJSONFile(t, dest, "./postgres/testdata/northwind-all.json")
|
||||
testutils.AssertJSONFile(t, dest, "./testdata/results/postgres/northwind-all.json")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1061,7 +1061,7 @@ ORDER BY customer.customer_id, SUM(payment.amount) ASC;
|
|||
assert.Equal(t, len(dest), 104)
|
||||
|
||||
//testutils.SaveJsonFile(dest, "postgres/testdata/customer_payment_sum.json")
|
||||
testutils.AssertJSONFile(t, dest, "postgres/testdata/customer_payment_sum.json")
|
||||
testutils.AssertJSONFile(t, dest, "./testdata/results/postgres/customer_payment_sum.json")
|
||||
}
|
||||
|
||||
func TestSelectGroupBy2(t *testing.T) {
|
||||
|
|
@ -1506,7 +1506,7 @@ ORDER BY actor.actor_id ASC, film.film_id ASC;
|
|||
assert.NilError(t, err)
|
||||
|
||||
//jsonSave("./testdata/quick-start-dest.json", dest)
|
||||
testutils.AssertJSONFile(t, dest, "./postgres/testdata/quick-start-dest.json")
|
||||
testutils.AssertJSONFile(t, dest, "./testdata/results/postgres/quick-start-dest.json")
|
||||
|
||||
var dest2 []struct {
|
||||
model.Category
|
||||
|
|
@ -1519,7 +1519,7 @@ ORDER BY actor.actor_id ASC, film.film_id ASC;
|
|||
assert.NilError(t, err)
|
||||
|
||||
//jsonSave("./testdata/quick-start-dest2.json", dest2)
|
||||
testutils.AssertJSONFile(t, dest2, "./postgres/testdata/quick-start-dest2.json")
|
||||
testutils.AssertJSONFile(t, dest2, "./testdata/results/postgres/quick-start-dest2.json")
|
||||
}
|
||||
|
||||
func TestQuickStartWithSubQueries(t *testing.T) {
|
||||
|
|
@ -1571,7 +1571,7 @@ func TestQuickStartWithSubQueries(t *testing.T) {
|
|||
assert.NilError(t, err)
|
||||
|
||||
//jsonSave("./testdata/quick-start-dest.json", dest)
|
||||
testutils.AssertJSONFile(t, dest, "./postgres/testdata/quick-start-dest.json")
|
||||
testutils.AssertJSONFile(t, dest, "./testdata/results/postgres/quick-start-dest.json")
|
||||
|
||||
var dest2 []struct {
|
||||
model.Category
|
||||
|
|
@ -1584,7 +1584,7 @@ func TestQuickStartWithSubQueries(t *testing.T) {
|
|||
assert.NilError(t, err)
|
||||
|
||||
//jsonSave("./testdata/quick-start-dest2.json", dest2)
|
||||
testutils.AssertJSONFile(t, dest2, "./postgres/testdata/quick-start-dest2.json")
|
||||
testutils.AssertJSONFile(t, dest2, "./testdata/results/postgres/quick-start-dest2.json")
|
||||
}
|
||||
|
||||
func TestExpressionWrappers(t *testing.T) {
|
||||
|
|
|
|||
1978
tests/postgres/testdata/customer_payment_sum.json
vendored
1978
tests/postgres/testdata/customer_payment_sum.json
vendored
File diff suppressed because it is too large
Load diff
252320
tests/postgres/testdata/joined_everything.json
vendored
252320
tests/postgres/testdata/joined_everything.json
vendored
File diff suppressed because it is too large
Load diff
135339
tests/postgres/testdata/northwind-all.json
vendored
135339
tests/postgres/testdata/northwind-all.json
vendored
File diff suppressed because it is too large
Load diff
6067
tests/postgres/testdata/quick-start-dest.json
vendored
6067
tests/postgres/testdata/quick-start-dest.json
vendored
File diff suppressed because it is too large
Load diff
1769
tests/postgres/testdata/quick-start-dest2.json
vendored
1769
tests/postgres/testdata/quick-start-dest2.json
vendored
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue