reader_test.go
This file
Path
render/reader_test.go
23 lines · 504 bytes · Go
Last changed by
Not known.
History of this fileTake it
1// Copyright 2019 Gin Core Team. All rights reserved.2// Use of this source code is governed by a MIT style3// 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}