Skip to content
New issue

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

Add streaming generators #11

Open
DalekBaldwin opened this issue Jun 20, 2015 · 0 comments
Open

Add streaming generators #11

DalekBaldwin opened this issue Jun 20, 2015 · 0 comments

Comments

@DalekBaldwin
Copy link
Owner

Streaming generators would return a function that the test body can call to get as many times as it needs to get the values as it needs.

https://hypothesis.readthedocs.org/en/latest/data.html#infinite-streams

The generation history could be stored as a list paired with a function that iteratively produces values from it so that the list could be shrunk/saved as a regression case.

These would probably only make sense as top-level generators, not as subgenerators of some other generator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant