TestContextStream() — gin Function Reference
Architecture documentation for the TestContextStream() function in context_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD da7e00db_34ed_6aba_d337_0bc558b7182e["TestContextStream()"] ebe0ae48_a62b_a38f_5bac_5bbbd96fc508["context_test.go"] da7e00db_34ed_6aba_d337_0bc558b7182e -->|defined in| ebe0ae48_a62b_a38f_5bac_5bbbd96fc508 645c655a_dc18_fccd_ada0_7323c93f1406["CreateTestResponseRecorder()"] da7e00db_34ed_6aba_d337_0bc558b7182e -->|calls| 645c655a_dc18_fccd_ada0_7323c93f1406 style da7e00db_34ed_6aba_d337_0bc558b7182e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
context_test.go lines 3006–3023
func TestContextStream(t *testing.T) {
w := CreateTestResponseRecorder()
c, _ := CreateTestContext(w)
stopStream := true
c.Stream(func(w io.Writer) bool {
defer func() {
stopStream = false
}()
_, err := w.Write([]byte("test"))
require.NoError(t, err)
return stopStream
})
assert.Equal(t, "testtest", w.Body.String())
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does TestContextStream() do?
TestContextStream() is a function in the gin codebase, defined in context_test.go.
Where is TestContextStream() defined?
TestContextStream() is defined in context_test.go at line 3006.
What does TestContextStream() call?
TestContextStream() calls 1 function(s): CreateTestResponseRecorder.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free