rewrite fuzz tests of decoders in order to get deterministic results (#261)

This commit is contained in:
Alessandro Ros
2023-04-26 12:30:51 +02:00
committed by GitHub
parent d6a55f882a
commit d56ae1f600
63 changed files with 192 additions and 99 deletions

View File

@@ -0,0 +1,5 @@
go test fuzz v1
[]byte("")
bool(false)
[]byte("")
bool(false)

View File

@@ -0,0 +1,5 @@
go test fuzz v1
[]byte("\xf8\x9a\x9f000")
bool(true)
[]byte(" 00000")
bool(false)

View File

@@ -1,3 +0,0 @@
go test fuzz v1
[]byte("0")
bool(false)

View File

@@ -1,3 +0,0 @@
go test fuzz v1
[]byte(" 000")
bool(false)