Unverified Commit 18b49a87 authored by pscott's avatar pscott Committed by GitHub
Browse files

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: default avatarBastian Köcher <bkchr@users.noreply.github.com>

* Put comments before derive

Co-Authored-By: default avatarBastian Köcher <bkchr@users.noreply.github.com>

* Put comments before derive

Co-Authored-By: default avatarBastian 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: default avatarBastian Köcher <bkchr@users.noreply.github.com>

* Remove useless mut

Co-authored-by: default avatarBastian Köcher <bkchr@users.noreply.github.com>
parent 2ce46f44
Pipeline #88553 passed with stages
in 24 minutes and 8 seconds
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment