Skip to content
Myr

reader_test.go

This file

Path

render/reader_test.go

23 lines · 504 bytes · Go

Last changed by

chore: update go.mod and remove space from copyright (#3158)thinkeroubefore adoption4b68a5f

History of this file

Take it

The walk stopped after 200 commits: lines older than a550c56 point at it.

chore: update go.mod and remove space from copyright (#3158)thinkeroubefore adoption4b68a5f

line 1why, one step back
1// Copyright 2019 Gin Core Team. All rights reserved.

chore: Add go1.17 for testing (#2828)Bo-Yi Wubefore adoptiona550c56

lines 2–23why, one step back
2// Use of this source code is governed by a MIT style
3// license that can be found in the LICENSE file.45package render67import (8 "net/http/httptest"9 "strings"10 "testing"1112 "github.com/stretchr/testify/require"13)1415func TestReaderRenderNoHeaders(t *testing.T) {16 content := "test"17 r := Reader{18 ContentLength: int64(len(content)),19 Reader: strings.NewReader(content),20 }21 err := r.Render(httptest.NewRecorder())22 require.NoError(t, err)23}