Documentation ¶
Overview ¶
util/readers exists to provide convenient and composable io.Reader compatible streams to allow testing without having to check in large binary files.
Index ¶
- func InjectedReader(offsetFromStart int64, base io.Reader, inject io.Reader) io.Reader
- func NewNonRepeatingSequence(i int) io.Reader
- func NewSizedNonRepeatingSequence(i int, s int64) io.Reader
- func OneReader(length int) io.Reader
- func SequenceLimit(size int64, readers ...io.Reader) io.Reader
- func ZeroReader(length int) io.Reader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InjectedReader ¶
Injects the second reader into the first at an offset
func NewNonRepeatingSequence ¶
func SequenceLimit ¶
read from 'readers' in sequence up to a limit of 'size'
func ZeroReader ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.