View Source Zest.Faking (bonfire_umbrella v0.9.8-cooperation-beta.15)
Helpers to make random generator functions more useful in tests
Summary
Functions
Partner to unused
. Adds a list of values to the list of used
values under a key.
Returns the next unused integer id for name
starting from start
.
Permits jumping by artificially increasing start - if start is
higher than the last used id, it will return start and set it as the
last used id
Reruns a faker until a predicate passes. Default limit is 10 tries.
Reruns a faker until an unseen value has been generated. Default limit is 10 tries. Stores seen things in the process dict (yes, that process dict)
Functions
Partner to unused
. Adds a list of values to the list of used
values under a key.
Returns the next unused integer id for name
starting from start
.
Permits jumping by artificially increasing start - if start is
higher than the last used id, it will return start and set it as the
last used id
Reruns a faker until a predicate passes. Default limit is 10 tries.
Reruns a faker until an unseen value has been generated. Default limit is 10 tries. Stores seen things in the process dict (yes, that process dict)