Aaron L
6e18bbd5f1
Remove random from generation
2016-08-14 21:13:24 -07: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
490cdef5bc
Force local seeds for randomize struct.
...
- Global data is actually a bad idea
2016-08-14 20:12:01 -07:00
Patrick O'brien
75e28d3f5b
Refactor RandomizeField
...
* Fix randomize arg in relationship helper
* Fix param name for RandomizeStruct
2016-08-15 01:32:57 +10:00
Aaron L
6a040bc11c
Fix wording of testing
2016-08-14 03:07:23 -07:00
Aaron L
ff981ee885
Make counters atomic
2016-08-14 02:31:51 -07:00
Aaron L
8188648a11
Delete randomize slice
2016-08-14 02:11:32 -07:00
Aaron L
b34a8e3212
Destruct ugly code bits from boil package
2016-08-14 00:25:30 -07:00
Aaron L
5360d3094e
Use errors package all over the project
...
In general:
errors.New("thing") -> errors.New
fmt.Errorf("thing %s", arg) -> errors.Errorf
fmt.Errorf("thing %v", err) -> errors.Wrap
fmt.Errorf("thing %s %v", arg, err) -> errors.Wrapf
2016-08-13 11:37:16 -07:00
Patrick O'brien
39eebe7a91
Fix broken u u i d
2016-08-14 04:26:11 +10:00
Patrick O'brien
f823dfc757
Fix broken exists test for UUID PRIMARY KEYS
2016-08-14 03:42:58 +10:00
Patrick O'brien
33286e648a
Update repo to add vattle org paths
2016-08-09 17:59:30 +10:00
Patrick O'brien
fa8e431349
Add ReloadAll for ObjectSlice
...
* Fix RandomizeSlice bug overwriting blacklisted columns
* Add GroupAt param to param flags generator
2016-08-08 23:30:29 +10:00
Patrick O'brien
70b2dcfbb2
Boilerplate for upsert
2016-08-05 00:25:35 +10:00
Patrick O'brien
afedc92224
Change Enforced to Validated
2016-08-03 14:22:32 +10:00
Patrick O'brien
c7c0fe5c0d
Add provision for enforced types, eg uuid
...
* Add enforced to column data
* Add enforced list to driver
* Fix bug in TitleCase (now uses regexp)
* Fix broken zero-value enforced type inserts by using RandomizeEnforcedStruct
2016-08-03 12:05:05 +10:00
Patrick O'brien
39fe91f2cb
Add RandomizeEnforcedStruct
...
* Fix broken Select QM test
2016-08-03 10:53:34 +10:00
Aaron L
757aaf3a4d
Fix tests for uuid string types
2016-07-31 21:56:49 -07:00
Patrick O'brien
81883d5f75
Finish update tests
...
* Add SetMerge helper
* Add quotes around all column names in statements
* Fix blacklist bug in RandomizeStruct
* Split up update helper
2016-07-15 20:14:47 +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