mirror of
https://github.com/gin-gonic/gin.git
synced 2025-07-15 04:00:21 +08:00
More unit tests
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user