Expand description
Shared step-pattern parsing utilities for rstest-bdd.
The crate exposes placeholder parsing helpers reused by both the runtime and proc-macro crates so they can share validation logic without duplicating the regex construction code paths.
Structs§
- Placeholder
Error Info - Additional context for placeholder-related parsing errors.
Enums§
- Pattern
Error - Errors surfaced while converting step patterns into regular expressions.
Functions§
- build_
regex_ from_ pattern - Build an anchored regular expression from lexed pattern tokens.
- compile_
regex_ from_ pattern - Build and compile a
Regex
from a step pattern. - extract_
captured_ values - Extract the placeholder capture groups when
text
matchesre
, returningNone
otherwise. - get_
type_ pattern - Translate a placeholder type hint into a regular-expression fragment.