(t *testing.T)
| 41 | } |
| 42 | |
| 43 | func TestRenderJSONError(t *testing.T) { |
| 44 | w := httptest.NewRecorder() |
| 45 | data := make(chan int) |
| 46 | |
| 47 | // json: unsupported type: chan int |
| 48 | require.Error(t, (JSON{data}).Render(w)) |
| 49 | } |
| 50 | |
| 51 | func TestRenderIndentedJSON(t *testing.T) { |
| 52 | w := httptest.NewRecorder() |