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.

Re-exports§

pub use pattern::build_regex_from_pattern;

Modules§

pattern
Step-pattern lexing and compilation helpers.

Structs§

PlaceholderErrorInfo
Additional context for placeholder-related parsing errors.
SpecificityScore
Specificity score for a step pattern.
StepKeywordParseError
Error returned when parsing a StepKeyword from a string fails.
UnsupportedStepType
Error raised when converting a parsed Gherkin StepType into a StepKeyword fails.

Enums§

PatternError
Errors surfaced while converting step patterns into regular expressions.
StepKeyword
Keyword used to categorise a step definition.

Functions§

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.
requires_quote_stripping
Check whether a type hint requires quote stripping.