formatprocessor: add fuzz tests (#2612)

This commit is contained in:
Alessandro Ros
2023-10-30 19:52:45 +01:00
committed by GitHub
parent 7fb3b749d5
commit a2c092ea44
12 changed files with 32 additions and 4 deletions
@@ -0,0 +1,2 @@
go test fuzz v1
[]byte("800")
@@ -0,0 +1,2 @@
go test fuzz v1
[]byte("8\x00\x00")
@@ -0,0 +1,2 @@
go test fuzz v1
[]byte("")
@@ -0,0 +1,2 @@
go test fuzz v1
[]byte("80")
@@ -0,0 +1,2 @@
go test fuzz v1
[]byte("a00")
@@ -0,0 +1,2 @@
go test fuzz v1
[]byte("a0\x00\x00")
@@ -0,0 +1,2 @@
go test fuzz v1
[]byte("0")
@@ -0,0 +1,2 @@
go test fuzz v1
[]byte("a000")