From 6c296681684608aad04fd1a68314c0467fa27674 Mon Sep 17 00:00:00 2001 From: Chase Hutchins Date: Fri, 29 Jan 2016 04:42:16 -0800 Subject: [PATCH] adding testing for c.store nil --- context_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/context_test.go b/context_test.go index 1185496f..157f0945 100644 --- a/context_test.go +++ b/context_test.go @@ -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) {