go/src/io/multi_test.go

func TestMultiReader(t *testing.T) {}

func TestMultiReaderAsWriterTo(t *testing.T) {}

func TestMultiWriter(t *testing.T) {}

func TestMultiWriter_String(t *testing.T) {}

// Test that a multiWriter.WriteString calls results in at most 1 allocation,
// even if multiple targets don't support WriteString.
func TestMultiWriter_WriteStringSingleAlloc(t *testing.T) {}

type writeStringChecker

func (c *writeStringChecker) WriteString(s string) (n int, err error) {}

func (c *writeStringChecker) Write(p []byte) (n int, err error) {}

func TestMultiWriter_StringCheckCall(t *testing.T) {}

func testMultiWriter(t *testing.T, sink interface {}

type writerFunc

func (f writerFunc) Write(p []byte) (int, error) {}

// Test that MultiWriter properly flattens chained multiWriters.
func TestMultiWriterSingleChainFlatten(t *testing.T) {}

func TestMultiWriterError(t *testing.T) {}

// Test that MultiReader copies the input slice and is insulated from future modification.
func TestMultiReaderCopy(t *testing.T) {}

// Test that MultiWriter copies the input slice and is insulated from future modification.
func TestMultiWriterCopy(t *testing.T) {}

type readerFunc

func (f readerFunc) Read(p []byte) (int, error) {}

// callDepth returns the logical call depth for the given PCs.
func callDepth(callers []uintptr) (depth int) {}

// Test that MultiReader properly flattens chained multiReaders when Read is called
func TestMultiReaderFlatten(t *testing.T) {}

type byteAndEOFReader

func (b byteAndEOFReader) Read(p []byte) (n int, err error) {}

// This used to yield bytes forever; issue 16795.
func TestMultiReaderSingleByteWithEOF(t *testing.T) {}

// Test that a reader returning (n, EOF) at the end of a MultiReader
// chain continues to return EOF on its final read, rather than
// yielding a (0, EOF).
func TestMultiReaderFinalEOF(t *testing.T) {}

func TestMultiReaderFreesExhaustedReaders(t *testing.T) {}

func TestInterleavedMultiReader(t *testing.T) {}