We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ptr generator can generate either nil pointer or pointer to a type defined by it's "element" generator:
// This will generate either <*int>(nil) or <*int>(10) (or any other int value) generator.Ptr(generator.Int())
However Ptr doesn't provide shrinker that can shrink pointer to nil. (it only shrinks the value that it points to).
PtrTo generator on the other hand will always generate a non-nil pointer.
It makes sense to merge these two generators into a single generator and add aforementioned shrinking capabilities.
The text was updated successfully, but these errors were encountered:
a368063
Successfully merging a pull request may close this issue.
Ptr generator can generate either nil pointer or pointer to a type defined by it's "element" generator:
However Ptr doesn't provide shrinker that can shrink pointer to nil. (it only shrinks the value that it points to).
PtrTo generator on the other hand will always generate a non-nil pointer.
It makes sense to merge these two generators into a single generator and add aforementioned shrinking capabilities.
The text was updated successfully, but these errors were encountered: