(f *testing.F)
| 12 | } |
| 13 | |
| 14 | func FuzzParseArray(f *testing.F) { |
| 15 | for _, a := range []string{ |
| 16 | `{"hello","world"}`, |
| 17 | `{1,2}`, |
| 18 | `{}`, |
| 19 | `{NULL}`, |
| 20 | `{a}`, |
| 21 | `{a,b}`, |
| 22 | `{{a,b}}`, |
| 23 | `{{a},{b}}`, |
| 24 | `{{{a,b},{c,d},{e,f}}}`, |
| 25 | `{""}`, |
| 26 | `{","}`, |
| 27 | `{",",","}`, |
| 28 | `{{",",","}}`, |
| 29 | `{{","},{","}}`, |
| 30 | `{{{",",","},{",",","},{",",","}}}`, |
| 31 | `{"\"}"}`, |
| 32 | `{"\"","\""}`, |
| 33 | `{{"\"","\""}}`, |
| 34 | `{{"\""},{"\""}}`, |
| 35 | `{{{"\"","\""},{"\"","\""},{"\"","\""}}}`, |
| 36 | } { |
| 37 | f.Add([]byte(a)) |
| 38 | } |
| 39 | |
| 40 | f.Fuzz(func(t *testing.T, array []byte) { |
| 41 | parseArray(array, []byte{','}) |
| 42 | }) |
| 43 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…