gossamer icon indicating copy to clipboard operation
gossamer copied to clipboard

Add fuzz tests to `pkg/scale`

Open qdm12 opened this issue 2 years ago • 0 comments

Task summary

#2629 was found randomly by adding a bad test case when writing tests for the trie proofs; this should not be found randomly and we should make use of fuzz tests instead. This is especially more important since we export it as pkg/scale, so other projects would be potentially affected.

  • Add fuzz tests to check for panics for the decoder
  • Add fuzz tests for the encoder + decoder
  • Add fuzz tests to CI workflow

qdm12 avatar Jun 29 '22 18:06 qdm12