Skip to main content

Crate perl_tdd_support

Crate perl_tdd_support 

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

NodeKind
Comprehensive enumeration of all Perl language constructs supported by the parser.
ParseError
Comprehensive error types that can occur during Perl parsing workflows

Functions§

must
Safe unwrap replacements for tests. Re-exported from perl-test-must for backward compatibility. Extract the value from a Result, or panic with the error.
must_err
Safe unwrap replacements for tests. Re-exported from perl-test-must for backward compatibility. Extract the error from a Result, or panic if Ok.
must_some
Safe unwrap replacements for tests. Re-exported from perl-test-must for backward compatibility. Extract the value from an Option, or panic.

Type Aliases§

ParseResult
Result type for parser operations in the Perl parsing workflow pipeline
SourceLocation
Type alias for backward compatibility with SourceLocation.