type reqTest … var noError … var noBodyStr … var noTrailer … var reqTests … func TestReadRequest(t *testing.T) { … } // reqBytes treats req as a request (with \n delimiters) and returns it with \r\n delimiters, // ending in \r\n\r\n func reqBytes(req string) []byte { … } var badRequestTests … func TestReadRequest_Bad(t *testing.T) { … }