Documentation ¶
Index ¶
- Variables
- func MkdirTemp(t *testing.T) string
- func RandData(rng *mrand.Rand, size int) []byte
- func RandTime(rng *mrand.Rand) time.Time
- func RemoveArbitraryFiles(rng *mrand.Rand, rootdirname string) error
- func RetryCopy(rng *mrand.Rand, w io.Writer, r io.Reader) (int64, error)
- func Rng(t *testing.T) *mrand.Rand
- type Checksum
- type SmallPReader
- type UnreliableWriter
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type SmallPReader ¶
SmallPReader reads with a small p.
func (*SmallPReader) Read ¶
func (spr *SmallPReader) Read(p []byte) (int, error)
type UnreliableWriter ¶
type UnreliableWriter struct { Rng *mrand.Rand io.Writer // contains filtered or unexported fields }
func (*UnreliableWriter) Failed ¶
func (uw *UnreliableWriter) Failed() int
func (*UnreliableWriter) Fix ¶
func (uw *UnreliableWriter) Fix()
func (*UnreliableWriter) Write ¶
func (uw *UnreliableWriter) Write(p []byte) (int, error)
Click to show internal directories.
Click to hide internal directories.