leanovate/gopter

Problem Shrinking *time.Time

Closed this issue · 2 comments

WithShrinker(func(v interface{}) gopter.Shrink {

Really sorry about this, turns out I've messed up on the types of the Shrinker. Shrunk values are still time.Time rather than *time.Time. I'll make some time to fix this up over the next few days.

I kind of realized the same, because there already is a way to convert a generator to a pointer-generator.

The current version should fix this problem

Oh nice, had no idea about gen.PtrOf.