reader_test.go — gin Source File
Architecture documentation for reader_test.go, a go file in the gin codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR dad98e71_59fb_8a13_b69d_b8e0525c0a51["reader_test.go"] 73708583_aa09_563d_b16b_5076982efa7c["httptest"] dad98e71_59fb_8a13_b69d_b8e0525c0a51 --> 73708583_aa09_563d_b16b_5076982efa7c style dad98e71_59fb_8a13_b69d_b8e0525c0a51 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
// 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)
}
Domain
Subdomains
Functions
Dependencies
- httptest
Source
Frequently Asked Questions
What does reader_test.go do?
reader_test.go is a source file in the gin codebase, written in go. It belongs to the ResponseRendering domain, TemplateEngine subdomain.
What functions are defined in reader_test.go?
reader_test.go defines 1 function(s): TestReaderRenderNoHeaders.
What does reader_test.go depend on?
reader_test.go imports 1 module(s): httptest.
Where is reader_test.go in the architecture?
reader_test.go is located at render/reader_test.go (domain: ResponseRendering, subdomain: TemplateEngine, directory: render).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free