Extend Fuzzer with Encoding (#191)
* Verify bytes after encoding an object that was decoded from original bytes * Add BinaryHeapWrapper to allow PartialEq trait impl * Add Arbitrary crate and derives * Add prototype for encoding testing * Add partial encode fuzz testing * Derive arbitrary to compact * Add types for encode fuzzing * Simplify macro * Remove BitVec from Encoding macro * Add comments about sorting * Add comment for BinaryHeapWrapper * Update bytes sorting and move type display to the end * Make raw1 immutable * Hide arbitrary crate behind feature 'fuzz' * Indent macro * Impl Arbitrary for BitVecWrapper * Differentiate flows depending on fuzzing input * Update comments and add TODO * Change minimal to only_decode * Use more straightforward code for defining eq trait Co-Authored-By:Bastian Köcher <bkchr@users.noreply.github.com> * Put comments before derive Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com> * Put comments before derive Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com> * Use match in macros; Remove comments on into_iter_sorted and fix compile for paritaleq trait * Use match in fuzz_encode * Fix typo in comments * Apply suggestions from code review Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com> * Remove useless mut Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com>
Please register or sign in to comment