Commit graph

19 commits

Author SHA1 Message Date
Patrick O'brien cd7e45efaa Fix bugs for table only containing composite pkey
* Add more tables to test schema
* Add string slice match helper
2016-08-21 15:44:49 +10:00
Aaron L 79520d27fb Use new randomize package 2016-08-18 00:06:28 -07:00
Patrick O'brien 76d4b84019 Convert all tests to go 1.7 Run format
* This fixes postgres deadlocks
2016-08-15 19:36:38 +10:00
Aaron L 1caa8afa73 Change seed to start at a random value.
- Insert at least some randomness.
2016-08-14 20:44:59 -07:00
Aaron L 6f963d518c Make all tests create random seed and use MustTx
- Mark Upsert/Find for parallelism
2016-08-14 20:14:39 -07:00
Aaron L 8188648a11 Delete randomize slice 2016-08-14 02:11:32 -07:00
Aaron L d25712f929 Change entire project tests. 2016-08-14 01:58:36 -07:00
Aaron L f40688cfe3 Refactor Update & Insert tests.
- Added additional checking to statements for drivers that support a
  number of results affected.
- Changed the way we keep imports around for compare values
2016-08-13 23:38:41 -07:00
Aaron L a4c34dd7af Tests fail every ~16 hours or so. 2016-08-13 21:38:37 -07:00
Aaron L ab88d8511d Move string set operations to strmangle
- Delete MakeDBName (unused)
- Rename HasElement to SetInclude
2016-08-13 16:34:02 -07:00
Patrick O'brien 18029166c0 Add FilterColumnsByUnique, finish UpdateAll slice
* Add FilterColumnsByUnique
* Fix lots of broken tests
* Made CompareVals less stupid

Note: UpdateAll tests still broken because Unique
is not being fetched correctly for INDEX types,
it is only working for UNIQUE constraints.
2016-08-11 22:26:49 +10:00
Patrick O'brien feb85a2a44 Finish upsert and upsert tests
* Fix find bug in query generator
2016-08-05 12:59:40 +10:00
Patrick O'brien 488e203c0b Change objectSlice to be exported (ObjectSlice) 2016-07-17 00:15:14 +10:00
Patrick O'brien 4278d21b37 Fixed whitespace on template output 2016-07-16 22:11:10 +10:00
Patrick O'brien c424780458 Refactored and finished insert tests 2016-07-14 15:09:05 +10:00
Patrick O'brien 4036786b6a Got insert testing in a better state
* Split up insert function for testing
* Add DBType to global state
* Move test reflection helpers to testing.go
* Add incremental seed to randomizeField to avoid duplicate constraint
  error messages
* Fixed Viper SSL default bug
* Fixed pgpass SSL inclusion bug
* Add MakeStringMap strmangle helper
* Change test errors from error to skip
2016-07-14 02:51:40 +10:00
Aaron L 119e683952 Use extensive piping throughout the templates
- Haskell ftw
2016-06-19 22:22:50 -07:00
Patrick O'brien 3352220c53 Merge branch 'master' of github.com:nullbio/sqlboiler 2016-06-12 16:50:38 +10:00
Aaron L 8757c8a184 Refactor entire project :D
- Move most files to root
- Remove cmds directory in favor of cmd directory with binary
- Remove all cobra from main
2016-06-11 18:25:00 -07:00
Renamed from cmds/templates_test/helpers.tpl (Browse further)