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
+10
View File
@@ -15,6 +15,16 @@ import (
"github.com/gin-gonic/gin/render"
)
const (
MIMEJSON = binding.MIMEJSON
MIMEHTML = binding.MIMEHTML
MIMEXML = binding.MIMEXML
MIMEXML2 = binding.MIMEXML2
MIMEPlain = binding.MIMEPlain
MIMEPOSTForm = binding.MIMEPOSTForm
MIMEMultipartPOSTForm = binding.MIMEMultipartPOSTForm
)
const AbortIndex = math.MaxInt8 / 2
// Context is the most important part of gin. It allows us to pass variables between middleware,