Home / Function/ CreateTestResponseRecorder() — gin Function Reference

CreateTestResponseRecorder() — gin Function Reference

Architecture documentation for the CreateTestResponseRecorder() function in context_test.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  0e74e95c_7721_b1fe_e017_3622be489053["CreateTestResponseRecorder()"]
  c4041480_1ce7_a951_259c_9e49c2236507["TestContextStream()"]
  c4041480_1ce7_a951_259c_9e49c2236507 -->|calls| 0e74e95c_7721_b1fe_e017_3622be489053
  1d802afe_6f74_0cad_2a06_57611a654140["TestContextStreamWithClientGone()"]
  1d802afe_6f74_0cad_2a06_57611a654140 -->|calls| 0e74e95c_7721_b1fe_e017_3622be489053
  a3b4adfd_95d2_24f7_72e7_dfb3b58ef6c7["TestContextResetInHandler()"]
  a3b4adfd_95d2_24f7_72e7_dfb3b58ef6c7 -->|calls| 0e74e95c_7721_b1fe_e017_3622be489053
  style 0e74e95c_7721_b1fe_e017_3622be489053 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

context_test.go lines 2999–3004

func CreateTestResponseRecorder() *TestResponseRecorder {
	return &TestResponseRecorder{
		httptest.NewRecorder(),
		make(chan bool, 1),
	}
}

Domain

Subdomains

Frequently Asked Questions

What does CreateTestResponseRecorder() do?
CreateTestResponseRecorder() is a function in the gin codebase.
What calls CreateTestResponseRecorder()?
CreateTestResponseRecorder() is called by 3 function(s): TestContextResetInHandler, TestContextStream, TestContextStreamWithClientGone.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free