Comments (2)
Rather than global settings, I think a good solution would be to use the depth of the generator when determining length. Basically the deeper the value, the more likely the generated length will be on the lower end.
I plan on exploring something like this in the coming weeks.
from bolero.
Basically the deeper the value, the more likely the generated length will be on the lower end.
I like that; I think that is something like what Hypothesis does, and it seems to work fairly well.
from bolero.
Related Issues (20)
- Trophy case? HOT 6
- `cargo bolero repro` command? HOT 2
- Detangling Driver and DriverMode HOT 2
- `#derive(TypeGenerator)` for recursive `enum`s HOT 1
- `cargo bolero test --engine kani <test>` fails to match harness HOT 3
- Add a script for patching integration tests HOT 1
- Use try_from_fn for array generator implementation once stable
- New generic array impls require higher unwinding bounds for Kani
- `reduce` command causes tool to crash HOT 5
- `cargo bolero test --help` is wrong, or test searching is broken HOT 4
- AFL fuzzer: The job output directory already exists and contains the results of more than 25 minutes worth of fuzzing.
- Upgrade syn to v2
- How to use `Arbitrary` generators? HOT 7
- Use `ThreadRng` as the driver to generate `String` HOT 3
- Differences between `DirectRng` and `ForcedRng` HOT 11
- Issues to combine `Arbitrary` and `ForcedRng`
- Workflow for Debugging/Reproducing Crashes (AFL)
- Improve UX for nonexistent profile
- msrv 1.57.0 may need to be bumped
- new "random" engine
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bolero.