MCPcopy
hub / github.com/buger/jsonparser / FuzzEachKey

Function FuzzEachKey

fuzz.go:13–30  ·  view source on GitHub ↗

SYS-REQ-008

(data []byte)

Source from the content-addressed store, hash-verified

11
12// SYS-REQ-008
13func FuzzEachKey(data []byte) int {
14 paths := [][]string{
15 {"name"},
16 {"order"},
17 {"nested", "a"},
18 {"nested", "b"},
19 {"nested2", "a"},
20 {"nested", "nested3", "b"},
21 {"arr", "[1]", "b"},
22 {"arrInt", "[3]"},
23 {"arrInt", "[5]"},
24 {"nested"},
25 {"arr", "["},
26 {"a\n", "b\n"},
27 }
28 EachKey(data, func(idx int, value []byte, vt ValueType, err error) {}, paths...)
29 return 1
30}
31
32// SYS-REQ-010
33func FuzzDelete(data []byte) int {

Callers 1

Calls 1

EachKeyFunction · 0.85

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…