Skip to main content

Module risk

Module risk 

Source
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

Structs§

FunctionRisk
RiskAnalyzer
RiskDistribution
RiskInsight
TestEffort
TestingRecommendation

Enums§

Difficulty
RiskCategory