MCPcopy
hub / github.com/gin-gonic/gin / TestRenderIndentedJSONPanics

Function TestRenderIndentedJSONPanics

render/render_test.go:65–72  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

63}
64
65func TestRenderIndentedJSONPanics(t *testing.T) {
66 w := httptest.NewRecorder()
67 data := make(chan int)
68
69 // json: unsupported type: chan int
70 err := (IndentedJSON{data}).Render(w)
71 require.Error(t, err)
72}
73
74func TestRenderSecureJSON(t *testing.T) {
75 w1 := httptest.NewRecorder()

Callers

nothing calls this directly

Calls 2

RenderMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected