Module zebra_test::prelude::prop::string
Expand description
Strategies for generating strings and byte strings from regular expressions.
Structs§
- Strategy which generates values (i.e.,
String
orVec<u8>
) matching a regular expression. ValueTree
corresponding toRegexGeneratorStrategy
.- Wraps the regex that forms the
Strategy
forString
so that a sensibleDefault
can be given. The default is a string of non-control characters.
Enums§
- Errors which may occur when preparing a regular expression for use with string generation.
Functions§
- Creates a strategy which generates byte strings matching the given regular expression.
- Like
bytes_regex()
, but allows providing a pre-parsed expression. - Creates a strategy which generates strings matching the given regular expression.
- Like
string_regex()
, but allows providing a pre-parsed expression.