func TestReadForm(t *testing.T) { … }
func TestReadFormWithNamelessFile(t *testing.T) { … }
func TestReadFormWitFileNameMaxMemoryOverflow(t *testing.T) { … }
func TestReadFormMaxMemoryOverflow(t *testing.T) { … }
func TestReadFormWithTextContentType(t *testing.T) { … }
func testFile(t *testing.T, fh *FileHeader, efn, econtent string) File { … }
const fileaContents …
const filebContents …
const textaValue …
const textbValue …
const boundary …
const messageWithFileWithoutName …
const messageWithFileName …
const messageWithTextContentType …
const message …
func TestReadForm_NoReadAfterEOF(t *testing.T) { … }
type failOnReadAfterErrorReader …
func (r *failOnReadAfterErrorReader) Read(p []byte) (n int, err error) { … }
func TestReadForm_NonFileMaxMemory(t *testing.T) { … }
func TestReadForm_MetadataTooLarge(t *testing.T) { … }
func TestReadForm_ManyFiles_Combined(t *testing.T) { … }
func TestReadForm_ManyFiles_Distinct(t *testing.T) { … }
func testReadFormManyFiles(t *testing.T, distinct bool) { … }
func TestReadFormLimits(t *testing.T) { … }
func TestReadFormEndlessHeaderLine(t *testing.T) { … }
type neverendingReader …
func (r neverendingReader) Read(p []byte) (n int, err error) { … }
func BenchmarkReadForm(b *testing.B) { … }