Skip to main content

Module fuzz

Module fuzz 

Source
Expand description

Fuzz Testing Integration (PMAT-023)

Property-based testing and fuzz-like input validation per section 36.3 to address the Resilience score. Uses proptest for stable Rust compatibility.

§Fuzz Targets

TargetComponentDescription
fuzz_syscall_breakdownTracingEscalationSyscall name/duration inputs
fuzz_workload_metricsRooflineAnalysisFLOP/byte/time values
fuzz_escalation_thresholdsTracingEscalationThreshold configurations
fuzz_hardware_profileHardwareProfilePeak GFLOPS/bandwidth values
fuzz_brick_scoringBrickScoreScore calculation inputs

§Falsification Criteria

F1081-F1095: Input validation and error path testing

Structs§

FuzzFailure
Details of a fuzz failure
FuzzInputValidator
Input validator for fuzz testing
FuzzResult
Result of a fuzz test run
FuzzSuite
Fuzz testing suite for cbtop components
FuzzSummary
Summary of fuzz testing results
FuzzTargetConfig
Fuzz target configuration

Enums§

FuzzValidationError
Validation errors from fuzz testing

Functions§

bound_value
Bound a value to a range
checked_add_u64
Checked addition that returns None on overflow
checked_mul_u64
Checked multiplication that returns None on overflow
safe_div
Safe division that returns None on division by zero
sanitize_float
Sanitize a float value for safe computation
test_float_edge_cases
Test a function with edge case float inputs
test_u64_edge_cases
Test a function with edge case u64 inputs