go/src/mime/multipart/multipart_test.go

func TestBoundaryLine(t *testing.T) {}

func escapeString(v string) string {}

func expectEq(t *testing.T, expected, actual, what string) {}

func TestNameAccessors(t *testing.T) {}

var longLine

func testMultipartBody(sep string) string {}

func TestMultipart(t *testing.T) {}

func TestMultipartOnlyNewlines(t *testing.T) {}

func TestMultipartSlowInput(t *testing.T) {}

func testMultipart(t *testing.T, r io.Reader, onlyNewlines bool) {}

func TestVariousTextLineEndings(t *testing.T) {}

type maliciousReader

const maxReadThreshold

func (mr *maliciousReader) Read(b []byte) (n int, err error) {}

func TestLineLimit(t *testing.T) {}

func TestMultipartTruncated(t *testing.T) {}

type slowReader

func (s *slowReader) Read(p []byte) (int, error) {}

type sentinelReader

func (s *sentinelReader) Read([]byte) (int, error) {}

// TestMultipartStreamReadahead tests that PartReader does not block
// on reading past the end of a part, ensuring that it can be used on
// a stream like multipart/x-mixed-replace. See golang.org/issue/15431
func TestMultipartStreamReadahead(t *testing.T) {}

func TestLineContinuation(t *testing.T) {}

func TestQuotedPrintableEncoding(t *testing.T) {}

func testQuotedPrintableEncoding(t *testing.T, cte string) {}

func TestRawPart(t *testing.T) {}

// Test parsing an image attachment from gmail, which previously failed.
func TestNested(t *testing.T) {}

type headerBody

func formData(key, value string) headerBody {}

type parseTest

var parseTests

func TestParse(t *testing.T) {}

func partsFromReader(r *Reader) ([]headerBody, error) {}

func TestParseAllSizes(t *testing.T) {}

func roundTripParseTest() parseTest {}

func TestNoBoundary(t *testing.T) {}