(t *testing.T)
| 113 | } |
| 114 | |
| 115 | func TestContextResponse(t *testing.T) { |
| 116 | e := New() |
| 117 | req := httptest.NewRequest(http.MethodPost, "/", strings.NewReader(userJSON)) |
| 118 | rec := httptest.NewRecorder() |
| 119 | |
| 120 | c := e.NewContext(req, rec) |
| 121 | |
| 122 | assert.NotNil(t, c.Response()) |
| 123 | } |
| 124 | |
| 125 | func TestContextRenderTemplate(t *testing.T) { |
| 126 | e := New() |
nothing calls this directly
no test coverage detected
searching dependent graphs…