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

Function NewDecoder

lib/results.go:145–148  ·  view source on GitHub ↗

NewDecoder returns a new gob Decoder for the given io.Reader.

(rd io.Reader)

Source from the content-addressed store, hash-verified

143
144// NewDecoder returns a new gob Decoder for the given io.Reader.
145func NewDecoder(rd io.Reader) Decoder {
146 dec := gob.NewDecoder(rd)
147 return func(r *Result) error { return dec.Decode(r) }
148}
149
150// Decode is an an adapter method calling the Decoder function itself with the
151// given parameters.

Callers 2

TestResultDecodingFunction · 0.85
FuzzGobDecoderFunction · 0.85

Calls 1

DecodeMethod · 0.95

Tested by 1

TestResultDecodingFunction · 0.68