mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:27:35 +00:00
LibTest: Add the RandomnessSource abstraction
This will be a foundational part of bootstrapping generators: this is the way they'll get prerecorded values from / record random values into RandomRuns. (Generators don't get in contact with RandomRuns themselves, they just interact with the RandomnessSource.)
This commit is contained in:
parent
d4e4189a34
commit
7e5a3650fe
5 changed files with 91 additions and 0 deletions
|
@ -17,6 +17,10 @@ enum class TestResult {
|
|||
|
||||
// Didn't get through EXPECT(...).
|
||||
Failed,
|
||||
|
||||
// Ran out of RandomRun data (in a randomized test, when shrinking).
|
||||
// This is fine, we'll just try some other shrink.
|
||||
Overrun,
|
||||
};
|
||||
|
||||
// Used eg. to signal we've ran out of prerecorded random bits.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue