Context
The brace validation logic in src/manifest/glob.rs is complex with significant cyclomatic complexity (~47 conditional/control flow statements), but currently has only 3 test functions covering this code.
Problem
Before undertaking refactoring work proposed in #171 and #172, we need comprehensive test coverage to:
- Ensure current behaviour is well-documented through tests
- Provide a safety net during refactoring
- Prevent regressions
- Validate edge cases in brace matching, escape sequences, and state transitions
Requirements
Expand test coverage for:
CharContext and BraceValidationState structures
BraceValidator implementation including all state transitions
- Edge cases in brace matching (nested braces, escaped braces, malformed patterns)
- Platform-specific logic (Windows vs Unix path handling)
validate_brace_matching function
process_escape_sequence function
Acceptance Criteria
Blocked Issues
This issue blocks:
References
Context
The brace validation logic in
src/manifest/glob.rsis complex with significant cyclomatic complexity (~47 conditional/control flow statements), but currently has only 3 test functions covering this code.Problem
Before undertaking refactoring work proposed in #171 and #172, we need comprehensive test coverage to:
Requirements
Expand test coverage for:
CharContextandBraceValidationStatestructuresBraceValidatorimplementation including all state transitionsvalidate_brace_matchingfunctionprocess_escape_sequencefunctionAcceptance Criteria
Blocked Issues
This issue blocks:
References
src/manifest/glob.rs(525 lines)