Home / Function/ TestRenderAsciiJSONFail() — gin Function Reference

TestRenderAsciiJSONFail() — gin Function Reference

Architecture documentation for the TestRenderAsciiJSONFail() function in render_test.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  c539ce3b_5583_984a_b679_4416f59c6736["TestRenderAsciiJSONFail()"]
  067a4839_481a_7bd8_fc59_5c8c3313879c["render_test.go"]
  c539ce3b_5583_984a_b679_4416f59c6736 -->|defined in| 067a4839_481a_7bd8_fc59_5c8c3313879c
  style c539ce3b_5583_984a_b679_4416f59c6736 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

render/render_test.go lines 232–238

func TestRenderAsciiJSONFail(t *testing.T) {
	w := httptest.NewRecorder()
	data := make(chan int)

	// json: unsupported type: chan int
	require.Error(t, (AsciiJSON{data}).Render(w))
}

Subdomains

Frequently Asked Questions

What does TestRenderAsciiJSONFail() do?
TestRenderAsciiJSONFail() is a function in the gin codebase, defined in render/render_test.go.
Where is TestRenderAsciiJSONFail() defined?
TestRenderAsciiJSONFail() is defined in render/render_test.go at line 232.

Analyze Your Own Codebase

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

Try Supermodel Free