Page MenuHomePhabricator

fuzz: Introduce CallOneOf helper to replace switch-case
ClosedPublic

Authored by PiRK on Jan 15 2024, 11:37.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABCc42127bc3ced: fuzz: Introduce CallOneOf helper to replace switch-case
Summary

Can be reviewed with --ignore-all-space

This is a backport of core#20828

Test Plan

ninja bitcoin-fuzzers

Event Timeline

PiRK requested review of this revision.Jan 15 2024, 11:37
Fabien requested changes to this revision.Jan 15 2024, 13:11
Fabien added a subscriber: Fabien.
Fabien added inline comments.
src/test/fuzz/crypto.cpp
40 ↗(On Diff #44166)

That's not from this PR

src/test/fuzz/util.h
335 ↗(On Diff #44166)

you might want to turn clang-format off here

This revision now requires changes to proceed.Jan 15 2024, 13:11

revert unrelated changes in crypto.cpp, disable clang-format for a couple of CallOneOf calls

This revision is now accepted and ready to land.Jan 15 2024, 17:11