1
0
mirror of https://github.com/labstack/echo.git synced 2025-03-17 21:08:05 +02:00

adding testing for c.store nil

This commit is contained in:
Chase Hutchins 2016-01-29 04:42:16 -08:00
parent ad525c22a0
commit 6c29668168

View File

@ -229,6 +229,10 @@ func TestContext(t *testing.T) {
// reset
c.reset(req, NewResponse(httptest.NewRecorder(), e), e)
// after reset (nil store) set test
c.Set("user", "Joe")
assert.Equal(t, "Joe", c.Get("user"))
}
func TestContextPath(t *testing.T) {