Commit graph

5 commits

Author SHA1 Message Date
Aaron L
82bffe9144 Adjust import paths 2017-07-30 20:34:54 -07:00
Genadi Samokovarov
64206cfe07 Fix randomization for enums with single value
Hey there,

I hit a bug that panicked the tests with:

    panic: invalid argument to Intn

The problem happened, because I have a Postgres `ENUM` with a single
value, that caused a `rand.Intn(0)` call, which panics on zero.

See: https://golang.org/src/math/rand/rand.go?s=4112:4142#L129
2017-06-14 16:53:55 +03:00
Patrick O'brien
d891bcb9f0 Add randomize support for enums, add enums for pq 2016-11-12 15:47:24 +10:00
Patrick O'brien
86ca3bbcea Fixed import paths for null package, add byte typ 2016-11-12 12:02:44 +10:00
Aaron L
5149df8359 Move everything to better package structure 2016-09-14 20:45:09 -07:00
Renamed from boil/randomize/randomize_test.go (Browse further)