Expand description
Test-driven development helpers and generators for Perl.
This crate provides tools to support TDD workflows when working with Perl code, including test generation, execution runners, and validation utilities for Perl parser and LSP development.
§Overview
The TDD support crate offers:
- Test case generators for Perl syntax patterns
- Test execution runners with result capture
- Basic TDD workflow helpers for parser development
- Utilities for validating parser behavior against expected outcomes
§Example
use perl_tdd_support::tdd_basic;
// Use TDD helpers to validate parser behavior
// (specific APIs depend on tdd module implementation)Re-exports§
pub use tdd::tdd_basic;pub use tdd::tdd_workflow;pub use tdd::test_generator;pub use tdd::test_runner;
Modules§
- ast
- Abstract Syntax Tree (AST) definitions for Perl parsing. AST facade for the core parser engine.
- error
- Error types and recovery strategies for parser failures. Error types and recovery helpers for the parser engine.
- governance
- CI Guardrail Ignored Test Monitoring and Governance. CI Guardrail Ignored Test Monitoring and Governance
- parser
- Core parser implementation for Perl source. Recursive descent Perl parser.
- position
- Position tracking types and UTF-16 mapping utilities. Enhanced position tracking for incremental parsing
- tdd
- Test-driven development helpers and generators. Test-driven development helpers and generators.
Structs§
- Node
- Core AST node representing any Perl language construct within parsing workflows.
- Parser
- Parser state for a single Perl source input.
Enums§
- Node
Kind - Comprehensive enumeration of all Perl language constructs supported by the parser.
- Parse
Error - Comprehensive error types that can occur during Perl parsing workflows
Functions§
- must
- Safe unwrap replacements for tests.
Re-exported from
perl-test-mustfor backward compatibility. Extract the value from aResult, or panic with the error. - must_
err - Safe unwrap replacements for tests.
Re-exported from
perl-test-mustfor backward compatibility. Extract the error from aResult, or panic ifOk. - must_
some - Safe unwrap replacements for tests.
Re-exported from
perl-test-mustfor backward compatibility. Extract the value from anOption, or panic.
Type Aliases§
- Parse
Result - Result type for parser operations in the Perl parsing workflow pipeline
- Source
Location - Type alias for backward compatibility with
SourceLocation.