Skip to main content

perl_test_generators/
lib.rs

1//! Property-based test generators for Perl domain objects.
2//!
3//! This crate provides reusable [`proptest::Strategy`] implementations for
4//! generating Perl variables, module paths, code snippets, and Unicode
5//! strings suitable for fuzzing parsers and LSP components.
6//!
7//! # Example
8//!
9//! ```rust
10//! use proptest::prelude::*;
11//! use perl_test_generators::{variable, module_path, unicode_string};
12//!
13//! proptest! {
14//!     #[test]
15//!     fn vars_parse(sym in variable()) {
16//!         assert!(sym.starts_with('$') || sym.starts_with('@') || sym.starts_with('%'));
17//!     }
18//! }
19//! ```
20
21mod module;
22mod unicode;
23mod variable;
24
25pub use module::{module_path, module_path_segments};
26pub use unicode::unicode_string;
27pub use variable::variable;