just fuzz-save

This commit is contained in:
Ian Gulliver
2023-07-13 21:51:33 -07:00
parent f23523e4ae
commit 607812fcaa
9 changed files with 44 additions and 0 deletions

View File

@@ -22,5 +22,9 @@ polytest:
fuzz:
{{go}} test -fuzz FuzzParser
fuzz-save:
cp ~/.cache/go-build/fuzz/github.com/gopatchy/bkl/FuzzParser/* testdata/fuzz/FuzzParser/
rm ~/.cache/go-build/fuzz/github.com/gopatchy/bkl/FuzzParser/*
todo:
-git grep -e TODO --and --not -e ignoretodo

View File

@@ -0,0 +1,5 @@
go test fuzz v1
string("0.yaml")
[]byte("---\n---\n---\n")
string("0.yaml")
[]byte("$match: 0")

View File

@@ -0,0 +1,5 @@
go test fuzz v1
string("0.yaml")
[]byte("?\n 7:\n 010:\r 20:\n 11:\n 0:\r 2:\r 1:\r 10:\r ?\n 12:")
string("ckkk0")
[]byte("CB1")

View File

@@ -0,0 +1,5 @@
go test fuzz v1
string("0.yaml")
[]byte("$encode:0")
string("0")
[]byte("0")

View File

@@ -0,0 +1,5 @@
go test fuzz v1
string("0.yaml")
[]byte("A:\r 0:")
string("0")
[]byte("0")

View File

@@ -0,0 +1,5 @@
go test fuzz v1
string("2.yaml")
[]byte("?\n Y:\n 081:\n 90:\n 0:\r 2:\r a:\r 7b:\r ?d 27:")
string("c\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf4")
[]byte("1")

View File

@@ -0,0 +1,5 @@
go test fuzz v1
string("0.yaml")
[]byte("?\n 7:\n 010:\r 20:\n 11:\n 0:\r 2:\r 1:\r 10:\r ?\n 12:")
string("k0")
[]byte("B0z")

View File

@@ -0,0 +1,5 @@
go test fuzz v1
string("0.yaml")
[]byte("- - ?")
string("0")
[]byte("0")

View File

@@ -0,0 +1,5 @@
go test fuzz v1
string("000010")
[]byte("0")
string("220010000000002000000100001100000000101000111010000101000000000000100100021010000000002002110101000000000100111010000110000000100000000001101010010010000010200277010101020071100000000100000001000200000")
[]byte("1")