Repository navigation
Move ALP kernel logic out of dispatch macros - #11529
Conversation
cargo-mutants does not mutate code inside macro invocations, so logic written inside `match_each_*!` bodies is never mutation tested. Keep the macro calls as thin type dispatch and move the logic into private generic functions that cargo-mutants can mutate: - `decode_and_patch_chunks` holds the chunked decode-and-patch loop that `decompress_chunked_core` ran inside three nested dispatch macros. The now-unfulfilled `clippy::cognitive_complexity` expectation is removed. - `between_patched_impl` holds the patched between kernel body, including the combined lower/upper bound predicate. - `set_patched_bits` holds the loop in `apply_patch_predicate` that re-evaluates patched rows within the slice range. Behavior and operation order are unchanged; the helpers use static dispatch and are monomorphized exactly as the inline bodies were. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UeniBAvrcuvbZMgsM2XrTM Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
Merging this PR will not alter performance1 warning
Comparing Footnotes
|
|
CI status: the failing "Integration smoke tests" job fails on Generated by Claude Code |
Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
cargo-mutants can't mutate code inside macros, so logic in ALP's
match_each_*!bodies was never mutation tested. This moves the chunked decode-and-patch loop, the patchedbetweenand the patch-bit loop into generic helpers.🤖 Generated with Claude Code
https://claude.ai/code/session_01UeniBAvrcuvbZMgsM2XrTM