Crate rstest_bdd_patterns

Crate rstest_bdd_patterns 

Source
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§

PlaceholderErrorInfo
Additional context for placeholder-related parsing errors.

Enums§

PatternError
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 matches re, returning None otherwise.
get_type_pattern
Translate a placeholder type hint into a regular-expression fragment.