MCPcopy
hub / github.com/tsenart/vegeta / FuzzGobDecoder

Function FuzzGobDecoder

lib/results_fuzz.go:25–32  ·  view source on GitHub ↗

FuzzGobDecoder tests decoding a gob format result list.

(fuzz []byte)

Source from the content-addressed store, hash-verified

23
24// FuzzGobDecoder tests decoding a gob format result list.
25func FuzzGobDecoder(fuzz []byte) int {
26 decoder := NewDecoder(bytes.NewReader(fuzz))
27 ok := readAllResults(decoder)
28 if !ok {
29 return 0
30 }
31 return 1
32}
33
34// FuzzCSVDecoder tests decoding a CSV format result list.
35func FuzzCSVDecoder(fuzz []byte) int {

Callers

nothing calls this directly

Calls 2

NewDecoderFunction · 0.85
readAllResultsFunction · 0.85

Tested by

no test coverage detected