Skip to content

Move aggregate kernel logic out of type-dispatch macros - #11605

Merged
connortsui20 merged 6 commits into
developfrom
ct/aggregate-dispatch-kernels
Nov 18, 2026
Merged

connortsui20 merged 6 commits into
developfrom
ct/aggregate-dispatch-kernels

Conversation

@connortsui20

Copy link
Copy Markdown
Member

cargo-mutants skips macro bodies, so it cannot mutate predicates and loops inside type dispatch. Generic helpers make that logic available to mutation testing and preserve static dispatch.

This follows the approach in #11528 and #11532.

This change was prepared with assistance from Codex.

Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>
Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>
Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>
Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>
Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>
Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>
@connortsui20
connortsui20 merged commit 5581fa0 into develop Nov 18, 2026
127 of 129 checks passed
@connortsui20
connortsui20 deleted the ct/aggregate-dispatch-kernels branch November 18, 2026 19:03
connortsui20 added a commit that referenced this pull request Nov 18, 2026
`cargo-mutants` skips macro bodies, which hides the choice between
scanning patches and searching the lane prefix. A generic helper exposes
both paths to mutation testing while keeping static dispatch.

Follow-up to #11605.

Prepared and opened with Codex.

Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>
connortsui20 added a commit that referenced this pull request Nov 18, 2026
`cargo-mutants` skips macro bodies, which hides VarBin’s choice between
validating the whole byte range and checking non-null strings
individually. A generic helper exposes that decision and the per-string
loop to mutation testing.

Follow-up to #11605.
Stacked on #11606.

Prepared and opened with Codex.

Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>
connortsui20 added a commit that referenced this pull request Nov 18, 2026
`cargo-mutants` skips macro bodies, which hides the choice between
chunked and flat patch searches. Generic helpers expose that decision
and the flat search’s offset handling to mutation testing.

Follow-up to #11605.
Stacked on #11607.

Prepared and opened with Codex.

Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/chore A trivial change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants