MCPcopy Create free account
hub / github.com/buger/jsonparser / runWithCapture

Function runWithCapture

fuzz_native_test.go:103–110  ·  view source on GitHub ↗
(target string, data []byte, fn func([]byte))

Source from the content-addressed store, hash-verified

101}
102
103func runWithCapture(target string, data []byte, fn func([]byte)) {
104 defer func() {
105 if r := recover(); r != nil {
106 recordCrash(target, r, debug.Stack(), data)
107 }
108 }()
109 fn(data)
110}
111
112// Verifies: SYS-REQ-035
113func FuzzDeleteNative(f *testing.F) {

Callers 14

FuzzDeleteNativeFunction · 0.85
FuzzParseStringNativeFunction · 0.85
FuzzEachKeyNativeFunction · 0.85
FuzzSetNativeFunction · 0.85
FuzzObjectEachNativeFunction · 0.85
FuzzParseFloatNativeFunction · 0.85
FuzzParseIntNativeFunction · 0.85
FuzzParseBoolNativeFunction · 0.85
FuzzTokenStartNativeFunction · 0.85
FuzzGetStringNativeFunction · 0.85
FuzzGetFloatNativeFunction · 0.85
FuzzGetIntNativeFunction · 0.85

Calls 1

recordCrashFunction · 0.85

Tested by

no test coverage detected