MCPcopy Create free account
hub / github.com/brimdata/super / GenByte

Function GenByte

fuzz/fuzz.go:373–380  ·  view source on GitHub ↗
(b *bytes.Reader)

Source from the content-addressed store, hash-verified

371}
372
373func GenByte(b *bytes.Reader) byte {
374 // If we're out of bytes, return 0.
375 byte, err := b.ReadByte()
376 if err != nil && !errors.Is(err, io.EOF) {
377 panic(err)
378 }
379 return byte
380}
381
382func GenBytes(b *bytes.Reader, n int) []byte {
383 bytes := make([]byte, n)

Callers 6

GenValuesFunction · 0.85
GenValueFunction · 0.85
GenTypesFunction · 0.85
GenTypeFunction · 0.85
GenBytesFunction · 0.85
GenAsciiFunction · 0.85

Calls 2

IsMethod · 0.80
ReadByteMethod · 0.45

Tested by

no test coverage detected