Skip to content
Myr

reader_test.go

This file

Path

render/reader_test.go

23 lines · 504 bytes · Go

Last changed by

Not known.

History of this file

Take it

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

chore(deps): bump github.com/pelletier/go-toml/v2 from 2.2.2 to 2.2.4 (#4212)dependabot[bot]before adoptioncf32d2d

lines 1–23why, one step back
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}