plus and minus infinity keyword tests implemented range table tests added skip cockroach db added select test case added for range fields generator modified to generate correct types generator tests modified to include sample range table model and template generators modified to support range fields returning the T in UPPER and LOWER functions raw ranges implemented bounds set as optional dep modified dependencies modified and issue fixed range expression with templates implemented rangeExpression change to make it more type safe third parameter of constructor function fixed literals removed, functions added tests modified constructor functions used for creating range expressions NumRange converted to a constructor function from literal range_lower and range_upper renamed to lower_bound and upper_bound range literal removed PlusInfinity and MinusInfinity implemented int4 and int8 castings added issues fixed and tests checked number, ts, tstz literal and cast implemented date range literal expression modified and raw function used parent type converted from RangeExpression to Expression range type implemented for postgres range column type, function and literal expression implemented CONTAINS and OVERLAP operations added for range expressions range expressions implemented |
||
|---|---|---|
| .. | ||
| dbconfig | ||
| init | ||
| internal/utils | ||
| mysql | ||
| postgres | ||
| sqlite | ||
| testdata@915bdc16b7 | ||
| docker-compose.yaml | ||
| Makefile | ||
| Readme.md | ||
Integration tests
This folder contains integration tests intended to test jet generator, statements and query result mapping with a running database.
How to run tests?
Before we can run tests, we need to set up and initialize test databases. To simplify the process there is a Makefile with a list of helper commands.
# We first need to checkout testdata from separate repository into git submodule,
# then download docker image for each of the databases listed in docker-compose.yaml file, and
# finally run and initialize databases with downloaded test data.
# Note that on the first run this command might take a couple of minutes.
make setup
# When databases are ready, we can generate sql builder and model types for each of the test databases
make jet-gen-all
Then we can run the tests the usual way:
go test -v ./...
To removes test containers, volumes, and images:
make cleanup