sqlboiler/randomize
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
..
random.go Move everything to better package structure 2016-09-14 20:45:09 -07:00
random_test.go Move everything to better package structure 2016-09-14 20:45:09 -07:00
randomize.go Fix randomization for enums with single value 2017-06-14 16:53:55 +03:00
randomize_test.go Fix randomization for enums with single value 2017-06-14 16:53:55 +03:00