Skip to main content

BENCH_NAME_PATTERN

Constant BENCH_NAME_PATTERN 

Source
pub const BENCH_NAME_PATTERN: &'static str;
Expand description

Regex pattern describing the set of valid benchmark-name characters.

The pattern allows lowercase ASCII letters, digits, underscores, dots, hyphens, and forward slashes.

ยงExamples

use perfgate_validation::BENCH_NAME_PATTERN;

assert_eq!(BENCH_NAME_PATTERN, r"^[a-z0-9_.\-/]+$");
assert!(BENCH_NAME_PATTERN.starts_with('^'));
assert!(BENCH_NAME_PATTERN.ends_with('$'));