the midi2 crate is a really good candidate for a fuzz testing round. Especially while in this early alpha phase, where many of the message wrappers are potentially quite unstable.
Sysex wrappers and also dynamically sized wrappers are particularly in need of some thorough testing. Such tests might simply create a mutable message, write in a payload of randomised bytes of random length copy the data into a buffer and then ensure that the message can be recreated from that buffer again, to complete the full round trip.
the midi2 crate is a really good candidate for a fuzz testing round. Especially while in this early alpha phase, where many of the message wrappers are potentially quite unstable.
Sysex wrappers and also dynamically sized wrappers are particularly in need of some thorough testing. Such tests might simply create a mutable message, write in a payload of randomised bytes of random length copy the data into a buffer and then ensure that the message can be recreated from that buffer again, to complete the full round trip.
More Resources