More unit tests

This commit is contained in:
Manu Mtz-Almeida
2015-04-08 14:24:49 +02:00
parent 8b26264574
commit 4d315f474b
7 changed files with 173 additions and 59 deletions

View File

@ -13,7 +13,6 @@ import (
"testing"
"github.com/gin-gonic/gin/binding"
"github.com/julienschmidt/httprouter"
"github.com/stretchr/testify/assert"
)
@ -33,7 +32,7 @@ func TestContextReset(t *testing.T) {
c.index = 2
c.Writer = &responseWriter{ResponseWriter: httptest.NewRecorder()}
c.Params = httprouter.Params{httprouter.Param{}}
c.Params = Params{Param{}}
c.Error(errors.New("test"), nil)
c.Set("foo", "bar")
c.reset()