Expand description
Risk assessment and testing priority analysis.
This module calculates risk scores for functions based on complexity, test coverage, and contextual factors. It provides prioritized testing recommendations with ROI estimates to guide test investment decisions.
§Risk Factors
- Complexity: Cyclomatic and cognitive complexity
- Coverage: Test coverage percentage and gaps
- Context: Critical paths, change frequency, dependencies
§Key Components
- RiskAnalyzer: Main entry point for risk calculation
- Coverage analysis: LCOV parsing and coverage gap detection
- ROI calculation: Estimate testing effort vs. risk reduction
- Context aggregation: Combine multiple risk signals
Modules§
- context
- correlation
- coverage_
gap - coverage_
index - delegation
- effects
- Effect-wrapped coverage operations for risk analysis.
- evidence
- evidence_
calculator - Evidence-based risk calculator for function analysis.
- function_
name_ matching - insights
- lcov
- LCOV coverage data parsing and querying.
- path_
normalization - Pure functions for cross-platform path normalization
- priority
- roi
- strategy
- thresholds