/
githubmirror
/
gin
Обзор
Документация
Войти
/
githubmirror
/
gin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
render/reader_test.go
23 строки
504 B
thinkerou
chore: update go.mod and remove space from copyright (#3158)
28 май 2022, 05:42
Не верифицирован
28 май 2022, 05:42
4b68a5f
Код
Авторство
О чём код?
// Copyright 2019 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package render import ( "net/http/httptest" "strings" "testing" "github.com/stretchr/testify/require" ) func TestReaderRenderNoHeaders(t *testing.T) { content := "test" r := Reader{ ContentLength: int64(len(content)), Reader: strings.NewReader(content), } err := r.Render(httptest.NewRecorder()) require.NoError(t, err) }